How many trades does a backtest need?
There is no single number. A strategy with a large edge per trade can show it in under a hundred trades; a thin edge can need thousands. What decides it is the average trade compared with how much trades vary.
Count trades, not years
Each closed trade is one observation. Ten years of history with forty trades is forty observations, and the uncertainty of an average shrinks with the square root of their number, not with the calendar. A strategy that trades 55 times a year needs about two and a half years to collect 139 trades and about 39 years to collect the 2,168 in the last example below.
The quantity that matters
Divide the average trade by the standard deviation of trades. That is the Sharpe ratio per trade. The number of trades needed before a result can be told apart from luck, the minimum track record length (Bailey and López de Prado, 2012), grows with the inverse square of it. For returns that are roughly symmetric and a 95% confidence level:
trades needed ≈ 2.7 / (Sharpe per trade)²
The full formula adds a correction for skewness and fat tails, which we explain in The Sharpe ratio per trade, and how many trades you need. The square is the important part: halve the edge and you need four times the trades.
Estimating it from your MT5 report
The MetaTrader 5 tester report gives you what you need for a first estimate:
- p: the share of winning trades, from “Profit Trades (% of total)”;
- W: “Average profit trade”;
- L: “Average loss trade”, without the minus sign.
If every win were exactly W and every loss exactly L, the Sharpe ratio per trade would be:
Sharpe per trade = (p·W − (1 − p)·L) / ((W + L) · √(p·(1 − p)))
Real wins and losses vary in size, so the true spread is larger and this estimate is optimistic. Treat the number of trades it gives as a lower bound.
The PSR calculator does this from the four numbers, with the skewness correction, or exactly from a pasted list of trade results.
Worked examples
These use the formula above with the skewness correction, the risk of one losing trade as the unit (1R), and a 95% confidence level. They are calculations, not results of any strategy.
| Win rate | Average win | Average trade | Sharpe per trade | Trades needed |
|---|---|---|---|---|
| 60% | 1.0R | 0.20R | 0.20 | 71 |
| 40% | 2.0R | 0.20R | 0.14 | 139 |
| 55% | 1.0R | 0.10R | 0.10 | 274 |
| 50% | 1.2R | 0.10R | 0.09 | 328 |
| 90% | 0.15R | 0.035R | 0.10 | 340 |
| 70% | 0.5R | 0.05R | 0.07 | 545 |
| 35% | 2.0R | 0.05R | 0.03 | 2,168 |
Two things stand out. The same average trade can need very different evidence: the first two rows both make 0.2R per trade, but the 40% system needs about twice as many trades because its results vary more. And a thin edge is expensive to prove: at 0.05R per trade, the trend-following profile in the last row needs over two thousand trades.
The 90% row looks reassuring at 340 trades, but this calculation assumes every loss is exactly 1R. Strategies with a high win rate and small wins often have rare losses far larger than that, and a backtest may contain none of them. Then no count of trades is enough on its own; the size of the worst losses matters more.
Costs move the answer a lot
Costs come off the average trade but barely change the spread. A strategy at 0.10R per trade before costs that pays 0.05R per trade in spread, commission and swap is left with 0.05R, and the number of trades needed roughly quadruples. Check that the costs in your test match your broker before you count trades.
When the count in the report is too high
- Several positions at once. Trades opened together in the same direction behave like one bigger trade. Grid and averaging strategies are the extreme case: dozens of trades, one decision.
- Many variants tried. This calculation assumes one strategy tested once. If it is the best of many, the result needs more evidence, as we explain in Why one good backtest proves little.
- A held-out period. The trades in it are fewer and are used for a different check, so a backtest needs enough trades in both parts.
How we use this
Below 30 trades we give no verdict. Above that, our reports compute the minimum track record length from the actual trade returns, including skewness and tails, and show it next to your number of trades. If you have fewer, the verdict is Sample too small, and the report says roughly how many would be needed. See the methodology or check your file for free.
Sources
- Bailey, D. H. and López de Prado, M. (2012). The Sharpe Ratio Efficient Frontier. Journal of Risk, 15(2).
- Lo, A. W. (2002). The Statistics of Sharpe Ratios. Financial Analysts Journal, 58(4).