Glossary
Risk & strategy

What is Look-ahead bias?

Using a price in a test that you couldn't have known at the moment of the trade. It makes a backtest look better than real trading can be.

Learn it in 60 secondsFrom your pathLesson 4.1.4 · Backtesting and Overfitting

Think of it like

Marking your own exam with the answer sheet open: the score looks great, but you couldn't do it on the day.

Real example

Rule: buy at today's close when it closes above the average. That close is only known once the day is over. The fix: buy at the next day's open.

Key takeaway

  • One great result from 200 tries is what luck predicts.
  • So an honest backtest counts every version tried and tests once on unseen data.
  • It also checks for prices you couldn't have known, for markets that vanished and for costs.

Lesson 4.1.4 · Backtesting and Overfitting

Frequently asked questions

What does look-ahead bias mean?

Using a price in a test that you couldn't have known at the moment of the trade. It makes a backtest look better than real trading can be.

What is an example of look-ahead bias?

Rule: buy at today's close when it closes above the average. That close is only known once the day is over. The fix: buy at the next day's open.

Related words

All 477 words in the glossary