Lab · October 2026

You optimized your strategy: how many tests did you run?

If you test 100 strategies with no edge, the best looks good 9 times out of 10. What bar to require depending on how much you test, with a calculator.

If you test 100 strategies with no edge at all, the best one will look good (a t of 2 or more) 9 times out of 10. A Strategy Analyzer optimization tests hundreds or thousands of combinations without you noticing.

The coin and the thousand people

Ask a thousand people to flip a coin ten times. Someone will get nine or ten heads. They don't have a gift: that's what happens when a thousand try. If you're only shown that person, it looks like magic. Strategies are the same: testing many things and keeping the one that did best is the most widespread mistake in the industry, and no backtest warns you how many tests you ran before.

What the t is, in one sentence

The t measures how many times your average profit exceeds its own noise: average profit per day ÷ standard deviation per day × √days. Below 2, a result is easily explained by chance. But that 2 only holds for a single idea decided before looking at the data.

What chance gives you when you test a lot

We generated strategies with no edge at all (random daily results with zero mean, 400 days each, about 19 months) and kept the best one, as anyone testing variants would:

012345t = 20.011.5102.51003.21,0003.910,000no-edge strategies tested (bar: median best t; line: 5% to 95%)
The more no-edge strategies you test, the better the winner looks. The red line is the usual bar, t = 2.
TestedBest t (median)Prob. of t > 2Prob. of t > 3Bar (5%)
10.02%0%1.6
101.520%2%2.6
1002.591%15%3.3
1,0003.2100%77%3.9
10,0003.9100%100%4.4

Testing 100 variants is very easy: 5 values of one parameter, 5 of another and 4 time windows already make 100. The last column is the t you should require to keep the chance of fooling yourself with a no-edge strategy at 5%. It's a conservative rule (it assumes variants are independent, and in practice they look alike), but it's a useful guide. There are finer tools for the same thing, like the deflated Sharpe ratio of Bailey and López de Prado (2014).

Calculator: can you believe your result?

Count every combination the optimizer tested (or you tested by hand) and enter the best one's t. It's calculated in your browser; nothing is sent.

I don't know my t: work it out from my daily results

t = average profit per day ÷ standard deviation per day × √days. Use days, not trades.

The best method: the same control with chance

Since our variants resemble each other, in the lab we prefer to measure directly what chance gives with the same machine: we repeat each search with the trade direction chosen at random and count how many rules "pass" anyway.

The right question is never "how many pass?", but "how many more than chance?".

The tests you don't count

The number that matters isn't the one you wrote down, but all the ones you ran: the ones you eyeballed on the chart before writing the rule, the versions you deleted because they did badly, the time or stop changes "just to see"... and ideas taken from videos and forums, which are already the winners of many tests you don't know about. Their author can be honest and the result still inflated by selection.

What to do before paying for an evaluation

  1. Decide beforehand how many variants you'll test and write it down. If you test more later, add them.
  2. Test families, not points: check what share of neighboring combinations also make money. An isolated peak is easy to manufacture by chance; a wide plateau isn't.
  3. Keep data the optimizer doesn't see and use it only once.
  4. Discount the chosen one's result: if you picked it among many, its future will be worse than its past.
And then, measure whether you'd pass. With your strategy's out-of-sample trades, the free simulator tells you how many accounts you'd pass and how many you'd blow. If the trades come from an optimization, the result will be optimistic: the simulator doesn't know how many tests you ran. An example of what happens when a result is too pretty: the bug that built us a 90% win rate.

How it was calculated

Our own simulation with a fixed seed: random daily results with zero mean, 400 days per strategy, 300 repetitions per size (60 with 10,000). The bar is the value that the best of N no-edge strategies only exceeds 5% of the time; the calculator uses its formula with the normal distribution, which gives the same values. The lab counts come from our futures searches, with the random-direction control.

Simulated and hypothetical results, with the limitations that implies. Not investment advice. Firm rules change: check them on each firm's website. This article contains no affiliate links.