Your Backtest Is Lying to You — 7 Ways It Flatters You

· Source: Machine Learning on Medium · Field: Finance & Economics — Capital Markets & Investment Management, FinTech & Digital Financial Services · Depth: Expert, long

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

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

Topics

Best for: Data Scientist, Research Scientist, Consultant

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning on Medium.