Glossary
Look-ahead bias
A leak in a backtest: the rule uses information that was not yet known at the time of the simulated trade, so the result cannot be repeated live.
Look-ahead bias means the rule sees the future. Typical forms: trading at a close using a signal computed from that same close, standardising with full-sample statistics, using a figure on the date it covers instead of the date it was published, and testing only on instruments that survived.
It matters because a small error in timing produces a smooth, convincing equity curve. A simple check is to delay every signal by one extra bar: an honest result falls a little, a leaked one often collapses.
Example: daily returns of +1%, -2%, +1.5%, -1% and +2%. Holding only on days known to be positive earns 4.57%. Holding the day after a positive day loses 2.98%.
Sources
- Advances in Financial Machine Learning. Wiley (Marcos López de Prado), 2018. Accessed 9 Nov 2026