Guide · Backtest
Why your EA performs differently live than in the backtest.
In the backtest it was an almost straight line. Live, the curve wobbles. Before blaming the strategy, it's worth separating what comes from execution from what comes from the market.
Execution causes
These are differences between how each order was simulated and how it was actually filled. They're usually small one by one, but they add up.
- Spread: many backtests use a fixed spread; the real one widens during news, at the daily rollover or when liquidity is thin.
- Slippage: the order gets filled a few points worse than the price the robot saw.
- Commissions and swaps: if the backtest doesn't charge them, the live profit will always be lower.
- Latency: a VPS far from the broker's server gets in later.
- Broker trading hours: a different time zone changes the daily candles the strategy uses.
Strategy causes
- Overfitting: the inputs fit the past, with no real edge behind them.
- Regime change: the market's volatility or trend no longer match those of the tested period.
- Small sample: with few live trades, any result is still noise.
How to find yours
The key is to compare on equal terms: the same dates, the same risk per trade. That way, the difference that remains comes from execution, not from position size.
- Shared signals: does it open live the trades the backtest opened? If many are missing, check trading hours, spread or filters.
- Entry and exit: does it get in at worse prices? That points to slippage or latency.
- Costs: add up commissions and swaps; sometimes they explain almost the entire gap.
- Against its history: if execution is good but the result falls outside the normal range, the strategy is the suspect.
Demo vs live, the same problem
The same EA can perform differently on a demo and on your live account, even with the same broker. Putting them side by side, trade by trade, tells you whether the difference lies in the entry, the exit, the lot size or the costs.
How much difference is normal
No EA copies its simulation exactly. A result somewhat below the backtest is the norm, because live trading always brings some cost the Strategy Tester didn't charge.
The useful question is a different one: whether that gap stays stable or grows over time. A constant gap usually comes from execution. When it widens month after month, it points to the strategy.
The quality of the backtest itself
Sometimes the problem lies in the simulation, not in the account.
- Data: another provider's price history changes the candles, especially at Monday opens or during news.
- Modelling: testing with real ticks comes closer to live execution than using open prices only.
- Spread: a small fixed value favors systems with short targets.
- Time zone: if the history runs on another zone, the daily bars don't match your broker's.
What to do depending on the cause
- If entries are missing, check the EA's trading hours along with its spread filter.
- When it gets in late, move the VPS closer to the broker's server.
- If costs eat up the profit, try another account type.
- When execution is right but it still loses, calmly decide whether it's broken or just in a bad streak.
Frequently asked questions
Is it normal for an EA to make less live than in the backtest?
Yes, up to a point. Live trading brings variable spreads, slippage or commissions. The worrying sign is a gap that keeps growing over time.
Why does my EA work on demo but not on a live account?
Demo accounts usually fill orders with no slippage and unlimited liquidity. On a live account, orders compete for the price. Compare both accounts trade by trade to find the cause.
How do I know if the problem is the broker or the strategy?
Look at execution first: signals, entry prices, costs. If all of that matches the simulation, the problem lies in the strategy.