Backtesting your strategy: the mistakes that flatter results
A backtest runs a strategy over past data and reports what it would have earned. Most backtests overstate reality, and the gap between the reported number and live results is where accounts die. The fix is knowing which mistakes inflate the number.
Overfitting to the past
The largest flatterer is tuning rules until they fit history perfectly. Add enough conditions — this filter, that exception, this date range — and any strategy can be made profitable on past data. The tuned strategy has memorized noise, not learned a pattern. If changing a parameter by a small amount collapses results, the strategy fitted noise, not a pattern.
Biases that inflate results
- Look-ahead bias. Using data the strategy could not have known at decision time — the close of the day to decide the open, or revised data instead of what was published.
- Survivorship bias. Testing only on assets that survived. Delisted and failed coins vanish from history, making any strategy look better.
- Selection bias. Testing the period you remember fondly. A strategy that worked in a bull run says nothing about a bear market.
- Small samples. A handful of trades proves nothing. Results built on fewer than a few hundred trades are anecdotes with decimals.
Costs the backtest forgets
Real trading pays spreads, fees, funding, and slippage. A strategy that trades frequently can be profitable in a frictionless backtest and unprofitable live. Every backtest should subtract realistic costs — and frequent strategies should be tested with conservative slippage assumptions.
Testing the way you will trade
- Out-of-sample data. Tune on one period, then test on a period the tuning never saw. If the edge survives, it is real.
- Walk-forward validation. Re-fit on recent data and test on the next chunk, repeating, to simulate living through the strategy.
- Worst-case stress. Check what the strategy did in the harshest conditions, not just the average.
The takeaway
Backtests flatter through overfitting, look-ahead and survivorship bias, and ignored costs. Trust a strategy only when it survives out-of-sample testing, realistic fees, and the worst periods. A beautiful backtest is a hypothesis — the market has not approved it yet.