Your Best Trading Strategy Backtest Is Probably Luck
If you ran a trading strategy backtest, changed the settings dozens of times and kept the version with the best equity curve, luck probably made that winner look better than it is. This is called multiple testing bias. The more variations you try on the same price history, the more likely it is that one of them looks great purely by chance. You don't fix this by testing less. You fix it by counting how many things you tried and raising the bar to match.
How a good-looking backtest gets made
Here's a familiar workflow. You see a moving average crossover on YouTube and backtest it. The results are so-so. So you try a 10 and 30 period pair instead of 9 and 21. Then you add a stop. Then a time-of-day filter. Then you skip Mondays. After 40 or 50 tries, one version has a smooth equity curve and a 65% win rate.
Nothing dishonest happened. But you're looking at that version because it did best on that particular slice of history. Some of its performance might be real. Some of it is noise in that specific data that happened to line up with your settings. The backtest alone can't tell you how much is which.
The coin-flip math behind multiple testing
Researchers usually call a result "significant" when there's only about a 5% chance of seeing it if the strategy had no edge at all. A common way to measure this is the t-statistic. In plain words, it tells you how sure you can be that the average trade return isn't really zero. Above about 2 is the usual bar.
That 5% sounds safe, but it only applies to a single test. Say you try 20 variations that genuinely have zero edge, and treat them as independent. The chance that at least one clears the 5% bar by luck is 1 minus 0.95 to the 20th power, which is about 64%. Try 100 and it's above 99%.
Real variations aren't fully independent, since a 20 day average and a 21 day average behave much alike, so the exact figure will differ. The direction won't. Every extra variant buys another lottery ticket, and you usually only look at the winning one.
What published research says
This isn't a fringe worry. Academics have studied it for decades, and what they've found is sobering.
In A Reality Check for Data Snooping, published in Econometrica in 2000, Halbert White looked at the habit of reusing the same data to pick a model. He wrote that "data snooping is a dangerous practice to be avoided, but in fact it is endemic." He proposed a test of whether the best model from a search truly beats a benchmark or just got lucky.
Campbell Harvey, Yan Liu and Heqing Zhu studied the hundreds of factors academics have put forward to explain stock returns in . . . and the Cross-Section of Expected Returns, later published in the Review of Financial Studies. Their estimates suggest a newly discovered factor should clear a t-statistic of about 3.0, not 2.0. They also argue that many published findings in financial economics are likely false.
David Bailey, Jonathan Borwein, Marcos López de Prado and Qiji Jim Zhu took this further in a paper in the Notices of the American Mathematical Society. According to the press release on their study, for a model built on 5 years of data, trying as few as 45 configurations is enough to guarantee at least one that has a good Sharpe ratio in the backtest but a poor one afterwards. The Sharpe ratio is return per unit of risk. The authors also point out that backtests rarely say how many configurations were tried.
That 45 deserves a second look. Plenty of traders go past 45 tweaks in one afternoon with a strategy tester.
Bailey and López de Prado's Deflated Sharpe Ratio, as summarised by CXO Advisory, adjusts the Sharpe ratio for how many strategies were tested and for returns that don't follow a neat bell curve. The key idea: the more alternatives you test, the higher the best Sharpe ratio you'd expect from luck alone.
Why a holdout period isn't a full cure
The standard advice is to hold back some data, build the strategy on the first part and check it on the rest. That helps. But the same CXO summary points out the catch: if you test many strategies on the same holdout data, you're snooping on that data too. Check your "unseen" period ten times, adjusting between looks, and it isn't unseen anymore.
How to judge a trading strategy backtest honestly
You can't remove luck, but you can account for it. These habits do the most work:
- Count every variant. Write down each setting you tried, including the ones you dropped. That number is the size of your lottery.
- Raise the bar as the count grows. A t-statistic of 2 may be fine for one test planned in advance. After dozens of tries, the 3.0 from Harvey, Liu and Zhu is a more sensible starting point.
- Compare against random entries. A random-entry control takes the same trade, with the same stop, target and holding time, at random times. It shows what luck alone produces in that market. If your rule doesn't clearly beat it, the "edge" may just be the market drifting up.
- Use realistic costs. Commissions, spreads and slippage eat small edges. If a strategy only works when trading is free, it doesn't work.
- Check for look-ahead. Every signal should use only information available at that moment, not a daily close that hadn't happened yet.
- Look at the neighbours. If a 20 period setting works but 18 and 22 don't, you've likely found noise. Real effects usually survive small changes.
How we approach this at Synergy Trading
Synergy Trading runs a private research lab that tests popular trading strategies with the same rules for every idea: realistic costs, a random-entry control, a look-ahead check, and a correction for testing many variants. About 290 strategy ideas have been tested this way so far. Only 2 are clean survivors.
We're not sharing that to impress anyone. It sums up this whole post in one number. Under rules like these, most popular strategies that look good in a quick backtest don't hold up. That's not because the people teaching them are dishonest. It's because luck is very good at looking like skill.
What this test can't tell you
This post isn't a lab verdict. We haven't run a test for this article, so there's no data period, market list, cost assumption or forward result to report. It explains a statistical trap and points to published research on it.
The corrections above have limits too. They lower the odds of fooling yourself, but they don't remove them. A strategy can pass every check and still fail later, because markets change. The reverse is also true: a rule that fails a strict correction might still have a small real edge that's too faint to prove with the data available.
Frequently asked questions
What is multiple testing bias in trading?
Multiple testing bias is the tendency for the best of many backtested variations to look better than it really is. Every extra setting you try gives noise another chance to line up with your rules, so the top result is partly picked for luck rather than for real edge.
How many backtest variations is too many?
There's no safe fixed number, but the bar should rise as the count grows. One study reported that with 5 years of data, as few as 45 configurations can produce at least one strategy that looks good in the backtest but does poorly afterwards. Count every variant you try.
What t-statistic should a trading strategy have?
A t-statistic above about 2 is the usual bar for a single test planned in advance, but it's too lenient after testing many variants. Research by Harvey, Liu and Zhu suggests a new finding should clear about 3.0. The t-statistic measures how sure we can be that the average return isn't zero.
Does out-of-sample testing fix overfitting?
It helps, but it isn't a full fix. Holding back data to check a strategy is a useful guard. If you test many strategies on the same holdout period, or adjust things after each look, you end up fitting to that data as well, and the bias comes back.
Sources
- Halbert White, A Reality Check for Data Snooping, Econometrica (Econometric Society)
- Harvey, Liu and Zhu, . . . and the Cross-Section of Expected Returns (NBER Working Paper 20592)
- EurekAlert press release on Pseudo-Mathematics and Financial Charlatanism (Bailey, Borwein, López de Prado, Zhu)
- CXO Advisory, summary of The Deflated Sharpe Ratio (Bailey and López de Prado)
Want an independent verdict on a strategy you've been looking at? Email hello@synergytrading.net with the subject "Verdict request". It's a waitlist: there's no price, no promised date, and nothing is sold yet. Synergy Trading is not a registered broker-dealer or investment adviser, and nothing here is a recommendation to buy or sell.
Educational research only, not investment advice. Past results do not guarantee future results.
Want your strategy tested?
We run the same test on any rule set: realistic costs, a random-entry control and a look-ahead check. Email us the rules to join the waitlist. Nothing is for sale yet.
Request a verdict

