Your Backtest Results Died the Moment You Went Live
You ran an MT5 expert advisor backtest on 5 years of historical data. Perfect entry signals. Clean risk management. 47% annual return. Then you funded a real account at Interactive Brokers and deployed the EA. Six weeks later, you're down 8%.
This isn't a strategy failure. It's a backtesting failure. Your MT5 expert advisor backtesting results ignored three variables that determine whether you make money or lose it: liquidity depth, real spread costs, and execution slippage. Remove them from your model and your backtest is fiction.
Here's the thing: most EA builders optimize for historical accuracy, not for scalability. They backtest with the spread their broker quotes at 9:30 AM when liquidity is peak. Then you deploy the EA at 2:47 PM when spreads are 3x wider. The backtest promised 2% per trade. You're getting destroyed at 6% cost-per-trade.
Why MT5 Expert Advisor Backtesting Results Don't Match Live Performance
MT5's built-in Strategy Tester is powerful but naive. It assumes three things that are never true in live trading:
- Constant spreads. You set spread to 2 pips. That spread exists for maybe 40% of the trading day. At news, during low-volume hours, or on Friday afternoons—spreads spike to 8-15 pips. Your backtest didn't price that.
- Instant execution at market price. The Strategy Tester fills orders at the exact candle close price. Live brokers like Interactive Brokers (IBKR) execute milliseconds later when price has already moved past your entry. That's slippage.
- Infinite liquidity. Your EA wants to open 10 lots at once. The backtest says: "Filled." A real market maker at that spread depth says: "We can do 2 lots at this price, 3 at the next level." That market impact kills your cost basis.
Remove these three false assumptions and your MT5 expert advisor backtesting results collapse from "15% annual" to "8% after costs" or worse.
Liquidity Depth: The Variable Nobody Models
The EUR/USD pair isn't all liquidity. It's stratified.
At the bid-ask spread (the inner layer), you can buy or sell about $1-2 million in volume per pip before the price moves. That's the zone MT5 assumes you're trading in. But what if your EA wants to enter 5 lots on a single bar? At Interactive Brokers' standard lot size of 100,000 units, that's $500,000 of notional exposure. You hit that $2M liquidity cap fast.
Past the bid-ask, you're into the order book layers. Prices get worse. The spread widens. Your "2 pip entry" becomes a "5 pip entry" by the time your order is filled. Over 200 trades per year, that's the difference between "slightly profitable" and "slowly underwater."
The cost isn't a single bad trade. It's the compound effect. 200 trades x 3 extra pips from poor liquidity = 600 pips of annual slippage. At $1/pip on a standard EUR/USD account, that's $600 you didn't budget for. Your 12% return? It's actually 8%.
Spread Creep: The Silent Account Killer
You backtest your MT5 expert advisor with a fixed 2-pip spread. That's the euribor rate at 10 AM New York time during the London session overlap. It's the tightest spread of the day.
But your EA trades around the clock. Here's what spreads look like across US market hours (EST):
- 6:00 AM–9:30 AM (pre-market / Asia close): 3-5 pips. Light volume, wide spreads.
- 9:30 AM–12:00 PM (US morning open / London afternoon): 1-2 pips. Peak liquidity, tight spreads.
- 12:00 PM–3:00 PM (US lunch / London close): 2-3 pips. Moderate liquidity.
- 3:00 PM–5:30 PM (US close / Tokyo open): 2-4 pips. Declining volume, widening spreads.
- 5:30 PM–6:00 AM (NY close to Tokyo): 4-8+ pips. Very low volume.
Your backtest assumes 2 pips on every single trade. In reality, maybe 40% of your trades hit the 2-pip spread, and 60% hit 3-6 pips. That's a 3-pip average across the full day. On an EA that trades 5 times per day, that's 15 extra pips per day in spread cost you never modeled. Over a month: 300 pips of unexpected leakage.
Worse: you're backtesting on daily candles, so you can't see intra-day spread variation at all. Your MT5 expert advisor backtesting results are built on a fantasy.
Slippage Isn't Random—It's Predictable and Expensive
Slippage is the gap between where you expected to fill and where you actually filled. On a $50,000 account, 1 pip of slippage per trade is invisible. Across 300 trades, it's $300 gone. On a $500,000 account (the point where you're actually trying to scale), 1 pip per trade is $3,000 burned.
Here's the relationship most EA builders miss: slippage scales with your account size and lot size. It doesn't scale linearly—it's exponential. Double your lot size and you don't get 2x slippage; you get 3-4x slippage because you're hitting deeper order-book layers.
Your backtest says: "I can open 0.5 lots on EUR/USD." Live, you open 2 lots. The market maker's liquidity provider depth didn't change. Now you're absorbing 4x the slippage per trade. Your backtest promised a 0.5-pip average fill. You're getting 2-3 pips average. That's the gap between "scaling works" and "scaling kills the strategy."
How to Backtest for Real: The Three-Variable Model
Stop testing with fixed spreads. Test with dynamic spreads that match actual market conditions:
- Segment backtests by time of day. Run your EA separately on 6-9 AM trades, 9 AM-3 PM trades, and 3-6 PM trades. Use the average spread for each segment from real broker data. If your EA is profitable in London hours but breaks even in Asia, you know the risk zone.
- Add a slippage tier based on lot size. Backtest with 0.5-pip slippage on 0.1 lots, 1.5-pip slippage on 0.5 lots, 3-pip slippage on 2 lots. This models real market impact. Your returns will drop, but they'll be real.
- Test at scale, not at micro-account size. Don't backtest your strategy on a $5,000 account. Test it on the account size you'll actually deploy (e.g., $50K or $100K). A lot that represents 5% of your $5K account is invisible in spreads. The same lot on a $50K account will slip.
Run this model and your MT5 expert advisor backtesting results will shrink by 30-50% from the naive backtest. That's when they become predictive of live performance.
When to Rebuild vs. When to Optimize (And When Alorny Helps)
If your backtest shows 2% annual return after adjusting for real spread, slippage, and liquidity—keep the strategy and optimize execution. Improve entry precision, reduce lot size volatility, trade only in high-liquidity windows.
If your backtest shows negative returns after real-cost modeling, the strategy is broken. You can optimize forever and still lose. The time to rebuild is now.
Here's where most traders mess up: they keep optimizing broken strategies instead of recognizing the gap early. They'll spend six months tweaking parameters, chasing that fictional 15% return from the original backtest. All while their live account bleeds.
We've seen this exact pattern. A trader will have a strategy that looks perfect in backtest but fails live. The EA needs a rebuild from the ground up—better entry logic, risk logic tied to market microstructure, time-of-day filters. That's a $300-500 custom EA build, not a $50 indicator tweak.
The cost of that rebuild is a fraction of what the trader will lose trying to salvage a broken strategy with parameter tweaks. A custom MT5 Expert Advisor from Alorny delivers a working demo in 45 minutes so you can backtest it properly before deploying live.
Key Takeaways
- Your MT5 expert advisor backtesting results ignore real spreads, slippage, and liquidity depth—three variables that can cut returns in half.
- Spreads vary 4-5x across US trading hours (EST). Testing with fixed 2-pip spread is guaranteed to disappoint live.
- Slippage scales exponentially with lot size. Double your lots and slippage might 4x. Your backtest doesn't model this.
- Backtest at your target account size and with dynamic spreads matched to real broker data. Your returns will drop—and become real.
- If your corrected backtest shows negative returns, rebuild. Don't waste six months optimizing a broken strategy.
Frequently Asked Questions
Is backtesting an EA for US market traders legal?
Yes. Backtesting your own strategy is legal under FINRA and CFTC rules. However, if you're trading forex with leverage greater than 50:1, you're subject to CFTC restrictions. US brokers like Interactive Brokers cap forex leverage at 50:1. Check your broker's compliance docs—most publish them clearly. The rule applies to live trading, not backtesting, so you can test any strategy you want.
What's the best MT5 platform for US traders?
Interactive Brokers (IBKR) and TD Ameritrade's thinkorswim both support MT4/MT5, have tight spreads (0.5-2 pips on EUR/USD), and offer real market data for backtesting. IBKR is generally tighter on spreads; thinkorswim has better charting. For pure strategy testing, IBKR wins.
How do I get real spread data into MT5 backtests?
Most brokers publish their average spreads on their website or in the broker's historical data. You can also use third-party tools like MyFXBook to log live spreads, then import them into MT5's Strategy Tester via CSV. This takes a few hours to set up but eliminates the "flat spread" fantasy.
Should I rebuild my EA if the corrected backtest shows losses?
If your backtest shows losses after modeling real spreads and slippage, yes—rebuild. Don't optimize further. You can spend three months tweaking and still lose. A professional rebuild from Alorny starts at $300 and takes hours, not months. You get a working demo you can re-backtest properly.