Source Codes

Hey there!

Are you taking the Algorithmic Trading course? If you are, then you’ve come to the right place!

On this page you will find links to all source codes discussed in the course.


I am making you aware that these source codes and any other code and any other programs / scripts / expert advisors / indicators you download and/or copy from this website are being provided exclusively for educational purposes. These source codes are intended for use in the Algorithmic Trading course, which is designed to help you learn how to program in MQL4. Any information is provided ‘as is’ solely for informational purposes and is not intended for trading purposes or advice. Past performance is no guarantee of future results. If you choose to use these source codes on any trading accounts, you are doing so at your own risk.


You will notice that some of the links also contain videos. These are preview videos for students considering taking the MQL4 course. Note that the full course is only available to enrolled students.

Section 1: Introduction
Source Codes Not Applicable
Section 2: Programming Core MQL4
Tutorial 1 A Hello World Program
Tutorial 2 Types Of Variables
Tutorial 3 Using Variables
Tutorial 4 Boolean Operations & Variables
Tutorial 5 The “While” Loop
Tutorial 6 Multi-Line Comments
Tutorial 7 The “For” Loop
Tutorial 8 The “IF” Statement
Tutorial 9 The “Else” Statement
Tutorial 10 The “Else If” Statement
Tutorial 11 The “Switch” Operator
Tutorial 12 Source Code Not Applicable
Section 3: System design and trading functions
Tutorial 13 Source Code Not Applicable
Tutorial 14 Incorporating trader inputs in algorithmic systems
Tutorial 15 Creating Orders With “OrderSend”
Tutorial 16 Functions in MQL4
Tutorial 17 Failsafe programming techniques
Tutorial 18 Closing Orders With “OrderClose”
Tutorial 19 Adjusting Orders With “OrderModify”
Tutorial 20 Getting information with “OrderSelect”
Tutorial 20b Source Code Not Applicable
Section 4: Putting it all together
Tutorial 21 Expert Advisors in MetaTrader 4
Tutorial 22 Rule-Based Decisions in Algorithmic Trading
Tutorial 23 Source Code Not Applicable
Tutorial 24 Algorithmic Trading System Blueprint
Tutorial 25 Coding the time conditions (Blue section)
Tutorial 26 Coding the entry conditions (Green section)
Tutorial 27 Coding the exit conditions (Red section)
Tutorial 28 Testing your first FX Robot
Tutorial 29 Adding The Moving Average Indicator As A Filter
Tutorial 30 Source Code Not Applicable
Tutorial 31 Source Code Not Applicable
Section 5: Course summary
Source Codes Not Applicable

Spanish Version

One Response to “Source Codes”

November 05, 2016 at 5:55 am, Gin Ichimaru said:

thank you


Leave a Reply

Your email address will not be published. Required fields are marked *

as seen on: