Candlesview Open charts
Learn › Testing strategies › Lesson 2 of 3

Overfitting and look-ahead bias

Testing strategies · lesson 2 of 3 · 1 minute read · 3 questions at the end

The two main reasons a good-looking backtest fails live.

1

Overfitting

Trying many settings and keeping the best one finds the settings that fit past noise. The more you search, the more the result is luck. Walk-forward testing (tuning on one period and checking on the next) exposes this.

2

Look-ahead bias

Using information that was not known at the time, such as a swing high that is only confirmed later, or the close of a candle to enter at its open. Candlesview checks every rule by recomputing it on shorter histories: the signals must not change.

3

Survivorship

Testing only on markets that exist today ignores the ones that collapsed. Be careful with "it worked on the top 10 coins".

Try it

Check what you took from it

3 questions on this lesson. With at most one wrong answer the lesson is marked as done in this browser; nothing is sent anywhere.

1. What is overfitting?
2. What is look-ahead bias?
3. What does walk-forward testing do?

Terms in this lesson

Education only. Nothing here is financial advice or a recommendation to buy or sell anything; trading involves a high risk of losing money.