Backtesting vs Forward Testing on MT5: What Each One Proves
A backtest answers one question: had these rules been applied to these historical prices, what would have happened? A forward test answers a different one: does the EA behave the same when it cannot see the future and trades with real execution? Mixing up the two is the most common reason an Expert Advisor that shines in the tester disappoints on a live account.
What a backtest does tell you
- Whether the logic does what you think: entries, exits, stops and trading hours.
- How the strategy reacts to very different regimes (trend, range, volatility shocks) if the history is long enough.
- The order of magnitude of drawdown and trade frequency.
What a backtest cannot tell you
- Whether the parameters are overfitted. If you picked them by looking at that same history, the result is inflated by construction.
- Real execution: slippage, requotes, rejected orders and spreads that widen around news.
- Operations: VPS outages, terminal restarts, broker updates or an EA that silently stops trading.
Setting up the MT5 tester so it misleads you less
The MetaTrader 5 Strategy Tester has a few options that make a real difference and that many traders leave at their defaults:
- "Every tick based on real ticks" modelling. Open-price or M1 OHLC modes are fine for fast iteration, not for validating an EA with tight stops.
- Execution delay. The tester can simulate a random delay. If results collapse with a modest delay, the edge depends on perfect execution you will not get.
- Real commissions and swaps for the account type you will trade. On ECN accounts the per-lot commission can eat much of the expectancy of a high-frequency EA.
- Forward period. The "Forward" option holds back the last part of the history (1/2, 1/3, 1/4 or a custom date) to check optimised parameters on data the optimisation never saw.
Forward testing on demo: how long and what to log
"Four weeks" is a convenient rule, but what matters is the number of trades. An EA that opens two trades a week needs months to tell you anything; one with ten trades a day, a few days. As a rule of thumb, below 30–50 trades any difference from the backtest is consistent with chance.
During the demo, keep a simple log: EA version and inputs, every disconnection or restart, average slippage on entries and exits, and any trade you did not expect. That log is what lets you tell "the market is not cooperating" apart from "the EA is broken".
How to compare the two results
| Metric | Warning sign |
|---|---|
| Trade frequency | Very different from the backtest in similar market conditions: something is wrong with the logic or the data. |
| Win rate | Drops by more than 8–10 points in a sustained way. |
| Average result per trade | Turns from positive to negative once real costs are included. |
| Average slippage | Becomes a meaningful share of the average profit per trade. |
| Drawdown | Approaches the historical maximum after very few trades. |
When to drop an EA
If the forward test contradicts the backtest on two or more of those metrics, it is not bad luck: most likely the backtest was overfitted or real execution eats the edge. Re-optimising on the new data until it "fits again" usually makes things worse. Go back to the original hypothesis or drop the strategy.
As a next step, Monte Carlo validation helps you estimate what drawdown is reasonable to expect, and the guide to dynamic lot sizing helps you size risk before going live.
Frequently asked questions
How many trades do I need in a forward test?
Count trades, not weeks: with fewer than 30–50 trades, any gap versus the backtest is usually statistical noise.
Is the MT5 tester's forward period enough?
It is a good first out-of-sample check, but it is still a simulation and does not replace a demo with real execution.
Does a demo behave exactly like a live account?
Not quite. Prices usually match, but slippage, rejections and liquidity around news can differ.