Why an EA performs worse live than in backtest, and how to spot drift

An Expert Advisor usually performs worse live than in its backtest because real trading adds costs and conditions the test ignored: wider spreads, slippage, latency, a different market regime, broker differences and, often, overfitting. You detect this drift early by comparing live drawdown, win rate, trade duration and exposure with what the backtest showed.

Why live results drift from the backtest

Trading costs the tester underestimates

The MT5 strategy tester fills orders under simplified conditions. Live, the spread widens at the rollover, around news and in thin sessions. Market orders slip. A VPS far from the broker's server adds latency. For a scalper that targets a few points per trade, these costs can turn a positive expectancy into a negative one. Strategies with larger targets feel them less.

The market regime changed

A backtest describes the market of the test period. Volatility, trend strength and the behaviour of a session can change for months. A trend-following EA tested on trending years will struggle in a range. Its code is unchanged. The market it was built for has faded, for now.

Overfitting

An EA optimized until the equity curve looks perfect has often learned the noise of the past. It shines on the test data and disappoints on anything new. This is the most common cause of a large gap from day one. The article on how to detect overfitting in an MT5 backtest covers the warning signs.

Data quality

A backtest on low-quality history, or run with a coarse modelling mode, misses intrabar moves. Stops and targets that look clean in the test would have been hit in a different order in reality.

Broker differences

Symbols, contract sizes, trading hours, swap rates, commissions and execution rules vary between brokers. A backtest run on one broker's data can differ from live trading on another.

How to detect drift early

Drift is a lasting gap between how a bot behaves live and what its backtest promised. The key word is lasting. A few losing trades are normal; a steady shift in behaviour is a signal.

Before going live, write down the backtest reference values. Then compare live figures with them on a regular schedule.

Metric Backtest reference Drift signal live
Maximum drawdown Largest peak-to-trough fall in the test Live drawdown approaching or passing the backtest maximum
Win rate Share of winning trades A lasting drop well below the tested rate
Average trade duration Typical time in a position Positions held clearly longer than in the test
Exposure Usual number of positions and lot size More positions open at once, or larger total size
Consecutive losses Longest losing streak A streak longer than anything in the test
Average loss Typical losing trade Losses larger than usual, a sign of slippage or missed stops

A few practical rules:

  • Judge on enough trades. A win rate after 15 trades says little. Wait for a meaningful sample before concluding, and use drawdown as the early guardrail.
  • Watch several metrics together. A lower win rate with shorter trades may be harmless. A lower win rate with longer trades and higher exposure is a pattern.
  • Separate costs from logic. Compare your live fills with the tester's. If entries and exits match but costs differ, the issue is execution. If the trades themselves differ, the issue is the strategy or the data.

What to do when an EA drifts

  1. Reduce size. Lower the lot size while you investigate. The EA keeps trading and you keep collecting data with less at stake.
  2. Put it in quarantine. If the gap keeps growing, pause the bot. A quarantine stops it until you decide to restore it.
  3. Re-validate. Rerun the backtest on recent data with realistic spreads and your broker's history. Check whether the edge still exists out of sample.
  4. Restart in steps. Bring the EA back on a small account or small size before giving it full capital again.

Set the stop rules before going live. Under pressure, it is tempting to give a drifting bot "one more week".

How Trading Factory tools help

Crash Guard enforces your risk limits on each MT5 account, such as maximum daily loss, maximum drawdown and consecutive losses. On Crash Guard Pro, a drift detector compares each bot with its backtest. When a bot drifts, it can be quarantined automatically, and a one-click fix is available that you can undo.

Pod Shop goes further for portfolios of bots. Its Promise Checker gives each bot a promise, for example a maximum drawdown and a minimum win rate, and checks it continuously. A bot that falls behind is paused and moves through quarantine and a trial bench before it returns to production.

Neither tool removes the risk of loss. They make the gap visible early and apply the rules you approved. For the wider protection setup, see the guide on how to protect an MT5 Expert Advisor.

In short

  • Live trading adds spread, slippage, latency and broker differences the backtest ignores.
  • Regime change and overfitting explain the largest gaps.
  • Record backtest reference values, then compare drawdown, win rate, trade duration and exposure live.
  • When a bot drifts: reduce size, quarantine it, re-validate, then restart in steps.

Read next

Protect your MT5 accounts automatically

Crash Guard enforces your risk limits in your terminal, with a safety margin before the prop firm limit. Crash Guard Watch is free.

Trading involves a risk of capital loss. Our tools help you monitor that risk; they do not remove it.