FRENESDE

Look-ahead bias

Look-ahead bias: your backtest uses information that was not yet known at the time of the decision. It is cheating with the future, often without noticing.
Classic case: the signal is computed on a candle's close, but the backtest buys at that same close, or even at the candle's low. Live, you only know the close once the candle is finished: the honest entry is at the next open.
Other traps: using the day's high and low to decide during the day; dating company results at quarter-end when they are published weeks later; using revised economic data instead of the first release.
Measured effect: if one signal in two comes before a +0.7% gap, buying at the close instead of the open overstates the gain by 0.5 × 0.7 = 0.35% per trade; over 200 trades, a 70-point gap (without compounding). Rule: each piece of data is dated when you could have known it.

Examples

Key terms

Look-ahead bias
Using future information in a past decision
Next open
First price available after the signal candle
Revised data
A figure corrected after its first release
Publication date
When a piece of information actually becomes available
Take the mission on Doji Academy

← Back to the index