How to Backtest an MT5 Expert Advisor
Before you trust any robot with real money, you have to backtest it. A backtest replays an MT5 Expert Advisor over historical data so you can see its profit, drawdowns and trade frequency. This is the verification step we recommend in the best MT5 EAs and safe-EA guides.
Step-by-step in the Strategy Tester
- Open the Strategy Tester –
Ctrl+R. - Select the EA from the Expert dropdown.
- Set the symbol and timeframe – e.g.
XAUUSD,M15. - Choose a multi-year date range (trending, ranging, news-heavy).
- Set modelling to "Every tick based on real ticks".
- Set a realistic deposit/leverage and the EA inputs.
- Disable optimisation; run; review the report.
The metrics that matter
| Metric | Rough guide |
|---|---|
| Profit factor | >1.3 decent, >1.5 good |
| Max drawdown % | Lower is better – can you stomach it? |
| Total trades | 100+ for meaning |
| Recovery factor | Net profit ÷ max drawdown |
The trap: huge profit with 70% drawdown and 25 trades is not a good EA – it's a small, lucky (or curve-fit) sample.
5 common mistakes
- Curve fitting – optimising until the past looks perfect.
- Ignoring spread & commission.
- Too short a period.
- Lowest-quality modelling.
- Trusting the backtest alone.
Backtest, then forward-test on demo
A backtest is necessary but never sufficient. After a solid multi-year test, forward-test on demo for several weeks, then go live small under the 1% rule. See also EA vs manual trading.
Backtesting Gold Scalpers EA
One advantage of Gold Scalpers EA is that the EMA indicator it uses is bundled inside the EA – so it runs in the Strategy Tester and on any PC with no extra files. Drop it on XAUUSD / M15, pick a multi-year range with real ticks, and verify it on your own data before going live.
An EA you can actually backtest – no extra files
The EMA indicator is bundled inside, so it runs in the Strategy Tester anywhere. One-time $220, 14-day money-back guarantee.