Why Algorithmic Trading Backtests Lie: Six Hidden Traps
Original paper: Where Backtests and Live Trading Part Ways: Six Defects from One Intraday System
"Building a trading strategy is like baking a cake from a brilliant recipe in a pristine test kitchen. But when you move to a high-speed commercial bakery, you realize the oven runs hotter, the flour is coarser, and the mixer has a secret speed limit the recipe never mentioned."
Billions of dollars rely on automated trading systems that are tested using historical simulations. Understanding how these backtests quietly divorce from reality prevents catastrophic financial surprises when algorithms finally meet live markets.
- Summary statistics can hide massive operational defects.
- Data feed discrepancies quietly sabotage live execution.
- A practical ten-point checklist prevents simulation drift.
📑 Original arXiv Technical Abstract
Backtests of intraday strategies can drift away from what the live system actually does; in our case, the drift never showed in summary statistics. We report six defects found while running one intraday US equity system live and comparing its live days with their backtest replay. Three came from data: a default feed that carried a small fraction of real opening volume, historical prices adjusted for dividends that live orders never see, and data the live system downloaded but the backtest never did. Two came from code: a sizing step that exceeded a limit the live account enforces, and UTC timestamps read as New York time. One came from configuration: settings that were switched on but never reached the code that places orders. For each we give the symptom, the size of the error, the cause and the test or control that now guards against it. All six sat where two paths that should agree had drifted apart. We close with a ten-point checklist. We make no claim about whether the system is profitable.
✍️ Are you an author of this paper? Add code/demo links or a note
Help readers explore your work — share your official GitHub repo, Hugging Face weights, affiliation, or a clarification note for our editorial review queue.