Here is a problem that catches almost everyone who backtests. Test one idea and get a result that would only happen by luck 5 percent of the time, and it's reasonable to take it seriously. Test 100 ideas and pick the best, and you'd expect about five of them to look that good purely by chance, even if none of them has an edge.
The more variants you try, the better your best result looks, regardless of whether anything works. That includes every indicator setting, every filter you add and remove, every session window you try. They all count as tests.
The Bonferroni correction is the bluntest fix. If you run m tests and want an overall 5 percent chance of a false discovery, require each test to pass at 5 percent divided by m. With 100 variants, that's 0.05 percent. That's a much higher bar, and many backtest results that look exciting won't clear it.
Bonferroni is known to be conservative, especially when the tests are related, which strategy variants almost always are (EMA 20 and EMA 21 aren't independent ideas). Alternatives exist. Holm's method is a step-down version that's a bit less strict. The Benjamini-Hochberg procedure controls the false discovery rate instead, meaning the expected share of your "winners" that are actually flukes, which can be a more practical target in research.
Even if you never compute a formal correction, the idea is worth keeping in mind. Keep a count of how many variants you've tried. If the answer is in the hundreds, a single good-looking backtest is weak evidence on its own. A fresh out-of-sample period, tested once and only once, is still the cleanest check.
How do others here keep track of how many variations they've tried before settling on a setup?
Multiple testing in strategy research: what the Bonferroni correction says about the best of 100 backtests
-
Shadow Trader
- Posts: 6144
- Joined: Wed Sep 09, 2026 5:19 pm