Glossary / Look-ahead bias
Look-ahead bias
A backtest mistake where the strategy uses information it could not have had at the moment it made a decision. It makes results look better than anything the strategy can do live.
An example
A strategy decides to buy using a bar’s closing price, and the test fills the order at the same bar’s opening price, which happened before the close. In the test it buys low every time. Live, it cannot.
Why it matters
It is the most common reason a strategy that looked excellent in testing falls apart with real orders.
We build this into client work under trading systems.