← Back to blog
Education8 min read

How to Backtest an Expert Advisor in MT5 (2026): The Right Way

A badly done backtest lies. How to use the MT5 Strategy Tester with real tick data, 99% modelling and realistic spread so the result actually means something.

The MetaTrader 5 Strategy Tester is powerful, but a badly configured backtest produces beautiful curves that mean nothing. The difference between a reliable test and a misleading one is in the data, the modelling and the spread. Here is how to do it right.

Step 1: open the Strategy Tester

In MT5: View β†’ Strategy Tester (or Ctrl+R). Select your EA, the symbol and the period to test.

Step 2: use the correct modelling

Under "Modelling" choose "Every tick based on real ticks". It is the most accurate option: it uses the broker's real historical ticks, not an approximation. Avoid "Open prices" except for a very quick check β€” it is not valid for validation.

Step 3: get quality data

The quality of the backtest depends on the data. MT5 downloads the broker's history, but its quality varies. For serious EAs, many use third-party tick data with 99% modelling quality. Without good data, the result is fiction.

Step 4: set realistic spread and commission

  • Spread: use "Current" or a realistic value from your broker, not an optimistic fixed spread.
  • Commission: add your account's real commission per lot.
  • Deposit and leverage: match your real account.

Step 5: read the report critically

  • Maximum drawdown. More important than profit. Could you stomach that drawdown live?
  • Profit factor and expectancy. Consistency, not a lucky spike.
  • Modelling quality. Aim for 99%. Below 90%, be suspicious.
  • Number of trades. 30 trades prove nothing; hundreds start to be significant.

The step almost nobody takes: walk-forward

An optimised backtest always looks good β€” it is fitted to the past. The real test is walk-forward: you optimise on one period and validate on the next one the EA never saw. If it holds there, you have something. If not, it was overfitting.

EAs with backtests and verifiable results

Master of Liquidity, grid management and drawdown protection for MT5. Transparent risk management, one-time payment.

See EAs β†’

Related: how to install an EA Β· how to choose an MT5 EA.

A backtest does not guarantee future results. Trading involves risk of capital loss.

Frequently asked questions

How do you backtest an EA in MT5?
In the Strategy Tester (Ctrl+R), with 'Every tick based on real ticks' modelling, quality data (99% modelling), and realistic spread and commission matching your account.
Why does my backtest look perfect but the EA fails live?
It is almost always overfitting: parameters fitted to the exact past. Validate it with walk-forward (optimise on one period, test on another the EA never saw).
#MT5#backtest#expert advisor#strategy tester#MetaTrader 5#tick data#algo trading

Manage your risk with precision. Automated portfolios and tools for MT5.

Explore products β†’
Join Discord