You do not need a 2000-line monster to test an idea on MT5. The smallest EA that does something useful is about 40 lines of MQL5.
The five things every EA must have
- An entry condition (when to open)
- An exit condition (when to close)
- A position size rule (how big)
- A stop loss (how much you can lose)
- A take profit (when you are happy)
Build all five in the simplest way you can, backtest it, and only then start optimising.
attach_fileDownload starter template (placeholder)download