Build Your Own MT5 Expert Advisor
A course in building an MT5 Expert Advisor in MQL5, from the first OnTick to a system that manages its own risk and reports its own results. Every module ends at an EA that is running, with its code and its backtests published.
How to use this course
- Read it in order. Each module assumes the one before it.
- Compile and run every module's code before moving on — reading MQL5 teaches you very little.
- Where a module ends at one of our EAs, its live results and its backtests are one click away, including the runs that failed.
-
01Your First EA Places No Trades
Your first Expert Advisor should read the market and publish what it thinks — nothing more. Build the signal-only EA that fills our signals page, from its real source, and learn why every read uses the last closed bar.
-
02One File Decides, Another File Acts
Where you draw the line between deciding and trading is the most consequential decision in an EA. A strategy module you can call with plain numbers, a verdict that explains itself — and the failed strategy that proved it was worth it.