Last time, Jo's filter nearly doubled the average per trade. But it was measured on the same data it was chosen on, and that's exactly when a filter can fool you. By the end of this lesson, you'll have five questions to ask of any filter. And you'll see them used on two made-up filters.
1 of 6
What you'll learn
- Check the reason came first. Any filter can make old results look better.
- Link it to the idea. A good filter connects to the idea at the top of your sheet.
- Count what it removes. The fewer trades it removes, the easier they line up by chance.
- Test it on fresh dates. Use dates you didn't look at when you chose it.
- Nudge the setting. Try it a little either side to see if it breaks.
Exercise
- Take a filter you've tested, or the one from the last lesson's Try this.
- Answer the five questions in writing.
- Then test it on dates you haven't looked at, and nudge its setting a little either side.
Quick check
1. A filter removes 7 trades, all losers, and you found it by scrolling the log. What's the worry?
2. Moving a time filter 15 minutes either way makes results swing wildly. What does that suggest?
3. Why count every filter you tried, including the ones you dropped?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
A A rule in a strategy that skips some trades, even when the setup and entry are there, such as no trades near scheduled news. Every filter means fewer trades.More in the glossary can always make old results look better. Judge it by whether it had a reason first, how many trades it removes, whether it holds on fresh data, and whether a small nudge breaks it, never by the Running a strategy’s exact rules over past prices to see which trades they would have taken.More in the glossary number alone.
- On data you've already seen, there's always some detail the losing trades share. A filter built on it fits the past (Tuning a strategy’s rules so closely to one stretch of past prices that they describe that stretch’s quirks more than anything that carries on.More in the glossary). Old data has chance patterns: Real pattern or random result.
- 1. Reason first? Was it written down before testing?
- 2. Linked to the idea? Does it connect to the idea at the top of the strategy sheet?
- 3. How many trades does it remove? The fewer it removes, the easier it is for them to line up by chance.
- 4. Does it hold on fresh data? Test it on dates you didn't use to choose it: In-sample and out-of-sample data and the guide.
- 5. Does a small nudge break it? Try the setting a little either side: Nudging the settings.
- Count your tries. Every filter tested, kept or not, goes in the version history. See Data mining and the many-tests problem.
- Passing the questions doesn't prove a filter will help in future. It means it survived the checks that catch a fitted one.
Worked example
Made-up numbersFilter A (before 11:00) against filter B (no Wednesdays)
Made-up numbers · results in A result measured in units of the amount at risk. If a trade risks 4 points, 1R is 4 points and a 6-point gain is +1.5R.More in the glossary, before costs · old dates: version 3, 40 trades, +9R · fresh dates: 30 The situation a trading plan says must be on the chart before a trade is considered.More in the glossary, +3R with no filter
- Reason first, linked to the idea? A: yes, the idea needs movement. B: no, spotted in the results.
- Old dates: A removes 12 trades (3 wins, 9 losses): 12 ÷ 28 ≈ 0.43R a trade. B removes 7 losses: (9 + 7) ÷ 33 = 16 ÷ 33 ≈ 0.48R. B looks better.
- Fresh dates: no filter 3 ÷ 30 = 0.10R. A removes 9 trades worth −2R: 5 ÷ 21 ≈ 0.24R. B removes 6 trades (3 wins, 3 losses) worth +3R: 0 ÷ 24 = 0R.
- Nudged: A at 10:45: 10.5 ÷ 25 = 0.42R; 11:00: 0.43R; 11:15: 11 ÷ 32 ≈ 0.34R. All above 0.225R with no filter.
B won on the old data and failed every other check. A passed the checks, which doesn't prove it will help in future.
Trading is risky. You can lose money. The trader and the examples here are made up, and this lesson explains how traders adapt a strategy. It isn't advice.