Skip to content
Strategy ValidationFlorin Kramer3 min read

How Many Trades Does a Backtest Need?

Enough that luck alone could not easily produce the result. There is no magic number, but a backtest with a few dozen trades says very little, and a few hundred trades say much more. What matters is not only the count, but how large the average trade is compared with how much the trades vary.

Why the count matters

Each trade is partly skill and partly chance. With few trades, chance dominates: a strategy with no edge at all can show a nice profit over 20 trades. As the number of trades grows, the luck tends to cancel out and the real average shows through.

A rough rule from statistics: the uncertainty of the average trade shrinks with the square root of the number of trades. Four times more trades roughly halves the uncertainty. That is why going from 25 to 100 trades helps a lot, and going from 400 to 500 helps much less. The rule assumes the trades are reasonably independent and the strategy behaves the same over time. Trades that cluster or depend on each other count for less than their number suggests.

A simple way to check

Take the strategy's trades and compare:

  • the average trade (net, after commission and slippage), and
  • the standard deviation of the trades (how much they vary).

If the average trade is small next to the variation, many trades are needed before the average can be trusted. If the average is large and the trades are steady, fewer will do. A t-statistic (average ÷ standard deviation × √number of trades) turns this into one number: around 2 or more suggests the average is unlikely to be pure luck — though it says nothing about whether the past will repeat. That is a rough guide for one strategy tested once, not a pass mark: after picking the best of many strategies or settings, a much higher value is needed for the same confidence.

The traps

  • Counting trades across many optimizations. If 1,000 input combinations were tried, the best one's trades are not an honest sample: the selection itself adds luck.
  • Clustered trades. 200 trades in one volatile month are not as informative as 200 trades spread over years.
  • Out-of-sample windows that are too short. In a walk-forward test, each out-of-sample window needs enough trades to mean something; very short windows add noise.

In practice

For intraday futures strategies (ES, NQ, RTY), a long history usually gives hundreds of trades, which is a good start. For slow strategies with a handful of trades a year, more symbols or more years are often the only way to get a meaningful sample.

In WalkStrat

WalkStrat looks at both how often a strategy wins and how much it makes. For each candidate, a binomial test asks whether its win rate beats a coin flip, given the number of trades. That is about win frequency only, not profit: a strategy can make money while winning less than half its trades, or lose while winning most of them. Profit is what the walk-forward result's "Statistical edge" line tests: it gives the t-value of the net daily results over the test's trading days, says how often a strategy with no edge would do as well, and, when the evidence is weak, roughly how much more history would settle it. More in the documentation.

Stay in the loop

Get notified at launch

WalkStrat is almost ready. One short email when it launches and the 14-day free trial opens; after that, only major updates and new TradingApps. No noise, unsubscribe any time.

We only use your address for these updates. See the Privacy Policy.

Related articles

Trading futures carries a substantial risk of loss. Hypothetical and simulated results have inherent limitations, and no backtest or walk-forward result predicts future performance. This article is education, not investment advice.

TradeStation®, TradingApp®, EasyLanguage®, and PowerEditor® are registered trademarks of TradeStation Technologies, Inc. WalkStrat is an independent entity and is not affiliated with, endorsed, sponsored, or certified by TradeStation Technologies, Inc. or any of its affiliates. Nothing here is trading advice.