Why your MT5 backtest may be lying: real ticks vs generated ticks
The single most common reason a gold expert advisor looks great in the strategy tester and disappoints live is not overfitting. It is the tick data. MetaTrader 5 will happily run a test on ticks it made up itself, and it only tells you so in one line of the report.
What the tester does when real ticks are missing
In the modelling mode 'Every tick based on real ticks', MetaTrader 5 replays the ticks your broker's server recorded. But the tester does not refuse to run when part of that history is missing. For every period without real ticks it generates ticks from one-minute bars and carries on as if nothing happened.
Generated ticks follow a fixed, tidy path through each one-minute bar: from the open to one extreme, then to the other, then to the close. Real prices do not move like that. Inside a minute they jump back and forth, spreads widen and narrow, and several price levels can be skipped in a single tick.
Why it matters most for short-term gold strategies
For a strategy that holds trades for days, the path inside a minute hardly matters. For a strategy that trades breakouts, uses a trailing stop or takes small targets, it is everything. A tidy path is exactly the path in which a trailing stop rides the whole move and a stop order fills right at its level.
In our own tests, strategies with short holding times regularly looked several times more profitable on generated ticks than on real ticks over the same period. One of them looked solidly profitable and turned out to be close to zero on real data. Nothing about the strategy changed, only the ticks.
How to check your own report
The tester report states the data quality in its header. Look for the line that reads 'History quality' followed by a percentage of real ticks.
- Below 99% real ticks: treat every number in the report as unreliable. We throw such reports away, without exception.
- Each broker server keeps its own tick history in its own folder. A test that ran on real ticks last month can run on generated ticks today if you switched account or server.
- Some brokers have days on which the recorded ticks do not match the bars. MetaTrader then discards the real ticks for that day and generates them, so a long test can end at 98% even when you downloaded everything. Test around those days, or leave the trades on them out.
- Download the missing history before testing: open the symbol in the terminal, scroll the tick chart back, or let the tester pull it, and then check the percentage again.
Real ticks are necessary, not sufficient
Even a test on 100% real ticks assumes that an order fills on the first tick that reaches it, with no delay. Live, orders arrive later and fill at whatever price the market offers by then. For fast strategies on gold that difference alone can decide whether a strategy makes money.
That is why the strategies on this site are also tested with deliberately delayed or shifted order timing, from shifted start dates and on years outside the period they were built on, and why we compare live trades with the tester before we trust either.
Questions to ask before you buy an expert advisor
If a seller shows you a backtest, three questions tell you most of what you need to know:
- What was the history quality, in percent real ticks, and on which broker's data?
- How does the result change when every order is executed a few seconds later?
- Is there a live account, and does it match the backtest over the same weeks?
Follow along
We post new notes, monthly results and updates on Swift and Saker on Telegram first.
More from our research
Trading CFDs on gold and currencies with leverage carries a high risk of losing money. Backtested results are hypothetical and do not guarantee future results. Nothing on this site is investment advice or an invitation to invest.