Log in Start free

How many trades to backtest before you trust the results

A no-edge BTC rule showed +0.2R or better in 18% of 30-trade samples and 5% of 100-trade ones. A +0.2R edge needs about 200 trades to confirm.

Published
· upd.
Reading
7 min
Sections
7
By
Backcandle team
Feed
RSS →

"Backtest it on a hundred trades" is common advice and a reasonable start. It is not a rule. The number of trades you need depends on one ratio: how large your average result is compared to how much individual results swing.

We tested how far small samples can mislead on real data, using a Bitcoin rule we already knew had no edge. In almost one 30-trade backtest out of five, it looked like a good strategy.

How many trades should you backtest?

Enough for the uncertainty around your expectancy to stop including zero. The 95% range around an average shrinks with the square root of the sample, which gives a direct formula for the trades you need:

trades needed ≈ (1.96 × standard deviation per trade ÷ expectancy)²

Both numbers are in R, units of risk (R-multiples and expectancy explains them). The standard deviation is how much single trades swing. For a setup that wins 40% at +2R and loses 1R otherwise it is 1.47R; for the real Bitcoin rule below it was 1.30R.

Expectancy per trade Trades needed (1.47R swing) Trades needed (1.30R swing)
+0.05R 3,320 2,595
+0.1R 830 649
+0.2R 208 163
+0.3R 93 73

So the honest answer to "how many trades" is: about 200 for a solid +0.2R edge, several hundred for a modest one, and thousands for a thin one. Halve the edge and you need four times the trades.

Is 100 trades enough?

For a strong edge, sometimes. For proving a typical edge exists, no. Take the +0.2R setup above. After 100 trades the 95% range for its expectancy runs from −0.09R to +0.49R. That range still includes zero, so 100 trades cannot tell this setup apart from one that breaks even. At 400 trades the range narrows to +0.06R to +0.34R and the edge is clearly there.

The win rate is fuzzy in the same way. For a strategy that truly wins 60% of the time, the 95% range of what you will measure is:

  • 30 trades: 42.5% to 77.5%
  • 100 trades: 50.4% to 69.6%
  • 300 trades: 54.5% to 65.5%

At 30 trades, a coin flip and a genuinely good setup produce numbers you cannot tell apart. Even at 100, the bottom of the range is break-even for many reward-to-risk ratios.

Does the win rate change how many trades you need?

Yes, through the swing. The same +0.2R edge needs very different samples depending on how it is earned, because bigger, rarer wins make single trades swing more:

Win rate and payoff Expectancy Swing per trade Trades needed
60% at +1R / −1R +0.2R 0.98R 93
40% at +2R / −1R +0.2R 1.47R 208
30% at +3R / −1R +0.2R 1.83R 323
70% at +0.5R / −1R +0.05R 0.69R 727

A trend-following style that wins 30% of the time needs three to four times the sample of a 60% one with the same edge. A high-win-rate scalp swings little, but its edge is usually thin, and a thin edge is what drives the count up.

How often does a small backtest lie?

The formulas assume clean, independent trades. We wanted to see the effect on real prices, so we used a rule with a known answer. On Bitcoin from January 2020 to August 2026: every day at 00:00 UTC, buy at the open, stop 1% below, target 2% above, close at the end of the day if neither is hit. Resolved on 5-minute candles, that gave 2,422 trades with a 36.7% win rate and an expectancy of −0.012R. In other words, no edge.

We then drew 10,000 random samples of each size from those real trades and recorded what each sample would have reported as a backtest:

Sample Win rate (95% range) Expectancy (95% range) Samples showing +0.1R or better Samples showing +0.2R or better
30 trades 20.0% to 53.3% −0.46R to +0.47R 30.5% 18.1%
100 trades 27.0% to 46.0% −0.26R to +0.25R 19.5% 5.4%
300 trades 31.3% to 42.3% −0.16R to +0.14R 7.0% 0.3%
1,000 trades 33.7% to 39.7% −0.09R to +0.07R 0.3% 0.0%

Almost one 30-trade backtest in five made a strategy with no edge look like a +0.2R winner. At 100 trades, one in twenty still did. Only around 300 trades did the false positives become rare, and even then 7% of samples showed a +0.1R "edge" that was not there.

Do real markets make it worse?

Random samples assume each trade is independent. Real markets have regimes, and a backtest is usually one stretch of consecutive dates, not a random draw. So we also cut the 2,422 trades into 24 consecutive 100-trade blocks in date order:

  • The win rate ranged from 27% to 51% between blocks.
  • Expectancy ranged from −0.19R to +0.34R.
  • 2 of the 24 blocks showed +0.2R or better.

The random samples predict about 5.4% of 24, or 1.3 blocks, at +0.2R or better; the data had 2. The spread in date order was in line with pure chance, slightly to the lucky side. Over a full calendar year the noise was still visible: 2023 alone, 365 trades, came out at +0.133R for the same no-edge rule.

The halves of the run told the truth only roughly: −0.041R for the first 1,211 trades and +0.017R for the second. Both near zero, neither exactly.

What to do with a small sample

  • Treat 30 trades as a smoke test. It can reveal a broken idea; it cannot confirm a good one. Nearly a third of 30-trade samples showed at least +0.1R for a rule with none.
  • Plan for a few hundred occurrences of a setup before sizing up on it. Use the table at the top: the thinner the edge you expect, the more trades.
  • Keep the sample honest. Every occurrence the rules flagged counts, including the ones you skipped. A large sample of hand-picked trades is still a biased sample.
  • Split it. If the first half and the second half disagree badly, you have learned something the total would have hidden.
  • Expect losing streaks inside a good sample. At a 37% win rate, long runs of losses are routine; losing streak probability has the numbers.

How do you get to a few hundred trades?

The obstacle is time, not arithmetic. A setup that appears twice a week takes 100 weeks, almost two years of live trading, to reach 200 occurrences.

Bar replay shortens that. Backcandle replays historical candles at 0.5× to 10× speed, and its journal reports win rate, expectancy and profit factor for every session, so you can watch the numbers settle as the sample grows. Blind mode hides the symbol and shifts the dates until the session ends, which keeps you from recognising a chart you have seen before and quietly picking the winners. The case for compressed practice time makes the argument at length, and how to backtest futures without writing code covers running the sample itself.

Journal KPIs for one replay sessionJournal KPIs for one replay session
One session in the journal: 12 trades, a 25% win rate, a profit factor of 0.40. Twelve trades say almost nothing about the strategy behind them.

A single session is one data point. Pool the sessions that traded the same setup and judge the strategy on the total, against the table above.

The script behind these tables, and the export query for the candle data, are in our repository, so the test can be repeated on any instrument.

Practice it

Try it on
a real chart.

Read it, then replay it — bar by bar, with the right side of the chart hidden.

See all historic days → See all markets →
Keep reading

More from
the team.