Why your backtest looks better than your live results
A backtest is a claim, not a result
Almost every strategy that reaches us looks good on paper. The equity curve climbs, the drawdowns are shallow and the Sharpe ratio is comfortably above two. Then it goes live and the numbers shrink, sometimes to nothing. The strategy usually did not stop working. It never worked as well as the test said.
Most of the gap comes from a short list of mistakes. None of them are exotic, and all of them can be caught before money is at risk.
1. The test knew the future
Look-ahead bias is the most common error we find. A signal uses the daily close to trade at that same close. A fundamentals table is joined on the reporting period instead of the date the numbers were published. An index is tested on today's members, so every company that was later removed is missing from history.
The fix is boring and strict: every input carries the timestamp at which it became known, and the engine only ever reads data with a timestamp before the decision time.
2. Trading was free
Commissions are easy to add. Spread, slippage and market impact are not, and they matter most for exactly the strategies that look best: high turnover, small edges, thin markets. We model fills from order book depth where we have it, and we add a pessimistic cost on top. If the edge disappears at twice the expected cost, it was never robust.
3. The parameters were fitted to the noise
Try enough lookback windows and thresholds and one combination will look brilliant by chance. A single in-sample and out-of-sample split does not fully protect you, because after a few rounds of looking at the out-of-sample result, it is in-sample too.
We use walk-forward testing instead: fit on a rolling window, trade the next unseen window, move forward, repeat. We also look at the neighbourhood around the chosen parameters. A good strategy degrades gently when a parameter moves. A fitted one falls off a cliff.
4. The market changed and the test did not notice
Ten years of data can hide the fact that all the profit came from one regime. We split results by year, by volatility band and by market direction. If one period carries the whole curve, the strategy is a bet on that period returning.
What we check before going live
- Point-in-time data with publish timestamps, including delisted instruments
- Costs modelled from real spreads and depth, then stressed
- Walk-forward results, not a single split
- Stable performance across nearby parameters
- Results broken down by year and regime
- A paper trading period on the production engine
The last step matters more than people expect. Paper trading on the same engine that will place real orders catches the differences between research code and production code: rounding, order types, session times and partial fills.
The honest number
After all of this the backtest usually looks worse. That is the point. A smaller, honest number that survives live trading is worth far more than a beautiful curve that does not. When we hand a strategy over, we hand over the expected live range too, so nobody is surprised in the first month.
