We use cookiesEssential cookies keep the site working; optional analytics help us improve.
How-To

How to Backtest an MT5 Expert Advisor

June 24, 202610 min read

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

  1. Open the Strategy Tester – Ctrl+R.
  2. Select the EA from the Expert dropdown.
  3. Set the symbol and timeframe – e.g. XAUUSD, M15.
  4. Choose a multi-year date range (trending, ranging, news-heavy).
  5. Set modelling to "Every tick based on real ticks".
  6. Set a realistic deposit/leverage and the EA inputs.
  7. Disable optimisation; run; review the report.

The metrics that matter

MetricRough guide
Profit factor>1.3 decent, >1.5 good
Max drawdown %Lower is better – can you stomach it?
Total trades100+ for meaning
Recovery factorNet 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

  1. Curve fitting – optimising until the past looks perfect.
  2. Ignoring spread & commission.
  3. Too short a period.
  4. Lowest-quality modelling.
  5. 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.

Get Lifetime – $220