Level 4 · Course 4.3
Not fooling yourself
Overfitting. Look-ahead bias. Cherry-picking. Testing on data you didn't build on. Walk-forward testing. Checking robustness. Shuffling trade order to see the range of outcomes.
0 of 18 lessons done
Join free to tick off each lesson as you go and get your certificate.
Module 1
Biases that flatter a test
- Why tests lie to usWe want a strategy to work, and that wish quietly bends how we test.
- Look-ahead biasUsing information that wasn't available yet at the time of the trade makes a test look better than it was.
- Cherry-pickingShowing only the good examples from a long history gives a false picture.
- Survivorship and selection biasIf you only study what is still around or what you noticed, you miss what failed.
- Repainting indicators and hindsightSome indicators change their past drawings, which makes old signals look perfect.
Module 2
Overfitting
- What overfitting isA strategy tuned too tightly to old data fits the past and fails on new data.
- Too many rules, too few tradesEach added rule and setting makes a perfect-looking past more likely and a useful future less likely.
- Optimizing settings without fooling yourselfLooking for a stable zone of settings beats picking the single top result.
- Data mining and the many-tests problemTest enough ideas and one will look great by chance alone.
Module 3
Testing on fresh data
- In-sample and out-of-sample dataBuild on one slice of history and judge on a slice you haven't touched.
- Walk-forward testingRepeat the build-then-check step over and over, moving forward through time.
- Testing other markets and timeframesA real idea usually shows some life on similar markets, not just one chart.
- Testing different market conditionsCheck how a strategy behaves in trends, ranges, calm and wild periods.
Module 4
Robustness checks
- Nudging the settingsIf a small change in a setting wrecks the result, the result probably wasn't solid.
- Shuffling trade orderReordering your trades many times shows the range of drawdowns you could have had.
- Adding worse costs on purposeMake costs higher than expected and see whether the strategy still stands.
- Removing the best tradesIf the result vanishes when you remove the top few trades, it relied on a few rare trades.
- A checklist before you believe a testA final list of questions to ask every result before trusting it.
Course quiz
10 questions on the whole course. Pick your answers, then check them. You pass with 80% or more.
1. A candle closes above the prior high at 10:05, so your rule says buy. Your test buys at that same candle's open. What is wrong?
2. A chart shows trades 21 to 35, with 10 wins of +2R and 5 losses of −1R. The other 45 trades had 8 wins of +2R and 37 losses of −1R. What do all 60 trades total?
3. A swing low forms at 10:10, but the arrow only appears at 10:25. Where does an honest test enter?
4. You add three skip rules. Each one improves the past results, but on new prices the strategy does worse. What does the lesson say probably happened?
5. Length 20 and its two neighbors give −0.05R, +0.30R and +0.02R. Length 45 and its neighbors give +0.12R, +0.14R and +0.10R. Which group is easier to trust?
6. You build rules on January to August and keep September to December back. Why judge the kept-back months only once?
7. A walk-forward test joins four test stretches that made +2.0R, −1.0R, +0.5R and +3.5R. What is the joined result?
8. A test has 100 trades, 35 wins of +2R and 65 losses of −1R, and 1R = $40. Costs are $1.50 a trade. Costs then double to $3.00. What is the net result?
9. A test has 30 trades. 20 lost 1R, 8 won +1R, and two big wins made +10R and +6R. What do the trades total without the best two?
10. A test's 20 trades total +4R. You shuffle their order 20 times. What stays the same in every shuffle?
0 of 10 answered.
Every lesson is free and open. Sign up free to save your progress
Next course
Trading futures carries risk. You can lose money.