Build Your Own AutoTrading MetaTrader 5 Expert Advisor

James Hinton
6 min readJun 11, 2024

Have you ever wanted to build your own MetaTrader 5 Expert Advisor? Took a dive into MT5 EA’s and thought, “Far out, this is flippin’ hard!”

Meanwhile, you’re thinking to yourself, “I really need to get in on this autotrading stuff”

If that’s you, then this series is for you.

About This Series

In this series, I cover everything you need to build your own advanced Expert Advisor from scratch. I cover:

  • How to get started
  • Using built in technical indicators from MetaTrader
  • Making your EA autotrade
  • Adding some simple-yet-powerful risk management techniques to your EA
  • Backtesting and Optimizing your soon-to-be-awesome algorithm
  • Adding some advanced features

All of the code that I use is available on my public GitHub repo, and each episode contains working code snippets you can immediately use in your own trading bot.

If you’d like some more general help, join our Discord server here, and if you prefer content in a video format, you can check out my YouTube channel here.

In This Episode

By the end of this episode, you’ll have an expert advisor up and running, printing the current price of an asset to your Experts tab on MetaTrader.



James Hinton

Passionate algorithmic trader and Cyber Security expert. Love developing helpful content.