AI to find Strategy - best of 200: a strategy picked to fit the window
An AI strategy finder that tries hundreds of rule combinations on the same few years and shows you the winner will always find something that looks strong. The winner is usually the luckiest fit to that window, and it tends to stop working the moment the window ends.
The trap
Trusting a strategy that an AI strategy finder picked as the best of many tried on the same stretch of history. These tools typically test hundreds of indicator combinations on recent history and hand you the winner, ready to trade. Strategy screeners, optimisers and anyone who tweaks parameters until the chart looks good do the same thing: try a large number of rules on one window and keep the winner. With enough tries, a winner is guaranteed, edge or no edge.
How it fools you
- You only see the winner. The 199 rules that failed are never shown, so a strong-looking result seems rare and meaningful. It isn’t: it is the maximum of 200 tries.
- The statistics look convincing. A t-statistic above 2 normally means “probably not luck”. After 200 tries, the best of a set of rules with no edge at all typically shows a t of about 2.7 (see below).
- The rules look sensible. CCI, RSI, MACD, Stochastic, opening ranges: every component is familiar, so the combination feels like a reasoned idea rather than a search result.
- The fit is to the recent past. These tools usually search the last year or two, which is exactly the period you remember. The equity curve matches what you saw happen, which makes it feel right.
A real example
We took five option-buying rules from a public site that generates trading strategies automatically, and tested each one on 1-minute NIFTY option data from November 2021 to July 2026, with full costs. We don’t know how many rules the site tried or which years it searched, but each rule came to us as a finished, ready-to-trade result. Each was then run, unchanged, on the two earlier years it had probably never been fitted to.
| Rule | Nov 2021 – Nov 2023 (held back) | Nov 2023 – Jul 2026 | Jan – Jul 2026 alone |
|---|---|---|---|
| CCI oversold breakdown, buy puts | +31 pts (t 0.06) | +1,760 pts (t 1.65) | +915 pts |
| DI + Williams %R, buy puts | −41 pts (t −0.11) | +1,130 pts (t 1.88) | +605 pts |
| Late-morning breakdown, buy puts | −484 pts | +624 pts (t 0.72) | +834 pts |
| MACD + Stochastic, buy calls | +24 pts (241 trades) | +260 pts | +954 pts |
| Opening-range breakdown, buy puts | +555 pts (t 0.82) | +1,125 pts (t 1.39) | +610 pts |
Points per lot after costs; one lot = 65 units.
- All five did better in the later period than in the held-back years. Three of the five made close to nothing, or lost, in the held-back years.
- The most recent seven months carried them. Together the five rules made 4,986 points over 4.7 years and 1,954 trades. 3,918 of those points (79%) came from January to July 2026. The other 4.1 years made about half a point a trade, less than the cost of a single tick of extra slippage.
- None passed as “beyond luck” on the full period: the best t was 1.6.
That pattern, flat or losing for years and then a strong recent stretch, is exactly what you’d expect if each rule was chosen because it fitted the recent past well.
How strong does pure luck look?
To see what “best of many” does on its own, we simulated 200 rules with no edge at all: each trade’s result is random, with an average of zero. Each rule makes 120 trades, about a year of signals. We kept the one with the best t-statistic, then gave that same rule another 120 random trades, and repeated the whole exercise 2,000 times. (This simulation uses no market data.)
| Rules tried | Typical t of the best one (no edge) |
|---|---|
| 10 | 1.6 |
| 50 | 2.3 |
| 100 | 2.5 |
| 200 | 2.8 |
| 1,000 | 3.3 |
- With 200 tries, the winner showed t above 2 in 99% of runs, and a median of 2.7, without any edge.
- Run on the next 120 trades, the same winner’s median t was 0.0. It cleared 2 in only 2% of runs, about what chance alone gives.
So a “t of 2.5” from a search over 200 rules is not evidence of anything. It is roughly what you get by searching.
How to spot it
- The strategy came from a generator, a screener of “top strategies”, an optimiser, or a long session of tweaking.
- The backtest covers only the last one or two years, or the equity curve is weak for years and strong recently.
- The rule stacks several indicators with precise thresholds (CCI below −200, RSI(2) below 20, a 50-candle low) that nobody can explain beyond “it tested well”.
- Nobody can tell you how many rules or parameter sets were tried before this one.
- Slightly different thresholds, or the same rule on a different period, give a very different result.
How we guard against it
Every strategy we publish is run on held-back years it was not chosen on (the “Holds up out of sample” check on How we score strategies), we vary its parameters (“Not fragile to small parameter changes”), and we ask whether one period carries the result (“Consistent over time”). For rules taken from outside sources, we test them exactly as given, on the longest history we have, and publish the result whether it works or not.
Was this useful?
More to say, or spotted a mistake? Write to [email protected]. We read everything.