On this page
Back to tutorials

Strategy Tester vs Live MT5 (2026) | Why Results Differ

Why your EA wins in backtest but loses live: spread, tick mode, slippage, overfitting, and a checklist before real money on MetaTrader 5.

📖 15 min read

📝 2,900 words

🏷️ MQL5 & Expert Advisors

Share this article:

Want to build a no-code strategy right now?

Create your free account in seconds and start building immediately.


Strategy Tester vs Live: Why MT5 Results Do Not Match

Short answer: The MetaTrader 5 Strategy Tester simulates history with assumptions (ticks, spread, fills). Live trading adds real spread widening, slippage, latency, and broker rules. If your EA looks perfect in backtest but fails on a real account, the gap is usually settings or execution, not “bad luck.” Fix tick mode, spread, forward validation, and Demo — before changing strategy logic.

Related guides: Backtest EA in Strategy Tester · Deploy and Maintain EA · EA Risk Management · MT5 Error 10016 · Why Learning MQL5 Is Hard


Short Answer: Why Results Differ

Per MetaTrader 5 Help — testing: "The entire operation of the Strategy Tester is based on historical quotes. During testing, the Expert Advisor goes through the accumulated quotes and performs virtual transactions according to its algorithm."

That sentence explains the core issue: the tester is historical simulation, not your broker’s live server at 8:30am with widening gold spread.

FactorStrategy TesterLive / Demo account
SpreadOften fixed or averagedWidens in news, rollover, low liquidity
FillsIdealized at test pricesSlippage, requotes, partial fills
LatencyNoneVPS, internet, broker execution
Stops levelMay be ignored in rough testsEnforced — 10016 invalid stops
EmotionsNoneManual interference, disabling EA

Spread, Slippage, and Execution

Scalping and gold EAs are especially sensitive. A backtest with tight spread can show profit while live spread eats edge — see Scalping EA for MT5 and Gold EA (XAUUSD).

What to do:

  • Enable current or realistic spread in tester settings when available.
  • Add a spread filter in code (or in Strategy Builder filters step).
  • Increase deviation in OrderSend modestly for volatile symbols — log retcodes in Journal.

Tick Mode and Data Quality

The fastest test modes are the least trustworthy:

ModeSpeedRealism
Open prices onlyFastestLowest — skips intrabar path
1 minute OHLCMediumModerate
Every tick / real ticksSlowerBest for scalping and tight stops

For EAs that trade on M1/M5 or use intrabar SL/TP, Every tick based on real ticks is the baseline — detailed steps in backtest guide.

Download enough history: Tools → History Center — incomplete data creates false signals.


Overfitting and Optimization

Genetic optimization can find parameters that fit noise in one period. Symptoms:

  • Amazing backtest, poor forward segment
  • Hundreds of trades only in one year
  • Extreme input values (period 3, SL 2 points)

Fix: Use forward testing in Strategy Tester; require stable results on the forward window; avoid trusting a single optimized set without Demo validation.


Broker and Symbol Differences

  • Symbol suffixEURUSD vs EURUSD.a — EA attached to wrong symbol trades nothing or wrong specs.
  • Stops level — live broker may reject stops that backtest “accepted.”
  • Margin and lot step — use SymbolInfoDouble for volume — risk management.
  • Prop firms — daily loss and news rules not modeled in standard tester — prop firm EA rules.

Checklist Before Going Live

StepAction
1Re-run backtest with Every tick (real ticks if available)
2Compare spread settings vs typical live session
3Run forward or out-of-sample period
4Forward test on Demo 2–4+ weeks (your criteria)
5Journal clean — no repeated 10016 / 134 / 10004
6VPS if EA must run 24/7 — VPS for EA
7Start live with minimum lot and risk caps

Mobile vs Desktop Testing

Desktop: run Strategy Tester, optimization, and full Journal review in MetaEditor.

Mobile: use the MT5 app to monitor Demo/live (equity, open trades, alerts) — do not rely on phone for tick-mode backtests. Design and backtest on desktop; verify execution on Demo from mobile if you travel.


Next Steps

A good backtest is necessary — Demo validation is what bridges the gap to live.

Build your no-code trading strategy now — free

Create your account and start building a complete no-code strategy right now. Add indicators, filters, and risk rules, then export MQL5 in minutes.

Frequently Asked Questions

Common causes: unrealistic tick mode (e.g. Open prices only), spread too low in test, no slippage, over-optimized inputs, or broker stops level breaking orders live (Error 10016). Re-test with Every tick based on real ticks, then forward test and run on Demo.

Per MetaTrader 5 Help — testing, use the highest-quality tick generation available — typically Every tick based on real ticks — and model spread. See our backtest guide.

There is no fixed rule — run Demo until behavior matches your expectations across sessions (spread widening, news, weekends). Combine with deploy checklist and EA risk limits.

Yes. Forward splits the date range so parameters are validated on unseen data — reducing curve-fitting. Configure forward period in Strategy Tester before trusting optimized inputs.

Yes — the gap is about market modeling and execution, not how the MQL5 was written. Export from Strategy Builder, backtest properly, then Demo. See Build EA Without Coding.

Build your no-code strategy now — free

Create Free Account