Your Backtest Is Lying to You — 7 Ways It Flatters You
Summary
This article details seven common backtesting mistakes that systematically flatter trading strategies, making them appear more profitable than they are in reality. These errors, ranging from widely known issues like overfitting and lookahead bias to more insidious problems, structurally remove friction, hide risk, or borrow unavailable information. Specific pitfalls include tuning parameters until the backtest "sings," using future data or only surviving instruments, ignoring trading costs like commissions and bid-ask spreads, and testing on in-sample data. Furthermore, the article highlights optimizing for average returns instead of drawdown, assuming clean fills at quoted prices, and using data resolutions too coarse to capture true market dynamics like queue position and slippage. Each mistake biases results positively, emphasizing the need for suspicion towards overly optimistic backtests.
Key takeaway
For quantitative traders and research scientists developing systematic strategies, you must approach backtest results with inherent suspicion. Your backtest is likely overstating profitability and understating risk due to structural biases. Prioritize rigorous validation by honestly modeling costs, using truly out-of-sample data, and evaluating strategies based on drawdown resilience rather than just average returns. This proactive skepticism will help you avoid costly live trading surprises and build more robust, survivable systems.
Key insights
Backtesting errors systematically flatter strategies, making them appear better than real-world performance.
Principles
- Fragility indicates overfitting, not a robust edge.
- Judge strategies by return per unit of drawdown.
- Coarse data cannot reveal granular market truths.
Method
To validate a backtest, sweep parameters for sensitivity, model trading costs honestly, guard out-of-sample data, and reconstruct realistic fills from order-level data.
In practice
- Sweep parameters to check for fragility.
- Model commissions and bid-ask spreads.
- Use order-level data for realistic fills.
Topics
- Backtesting
- Systematic Trading
- Overfitting
- Lookahead Bias
- Slippage
- Drawdown
- Trading Costs
Best for: Data Scientist, Research Scientist, Consultant
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning on Medium.