"How many trades do I need?" usually gets a single number in reply: 30, 100, 200. Any fixed number is misleading. The trade count you need depends on how large your edge is compared with how noisy each trade's result is, and on how many strategies you tried before picking this one.
This guide explains the reasoning, shows how to calculate it from your own trade list, and covers the trap that makes most backtest statistics look stronger than they are.
One point up front: statistical tests on a backtest measure how surprising the result would be if the strategy had no edge, given the data you tested. They don't measure whether the edge will continue, and a statistically strong backtest can still lose money live.
Why a fixed number doesn't work
Imagine two strategies with the same average profit per trade. One wins or loses small, similar amounts every time. The other has occasional huge winners among many small losers. The first one's average settles down quickly. The second one's average can swing a long way depending on whether a few big winners happen to fall inside the test.
So the question is never just "how many trades?" It is "how many trades, given how much each trade's result varies compared with the average?"
The core idea: standard error
Take the result of each trade, for example in R-multiples (profit or loss divided by the amount risked). Three numbers summarise it:
- The mean: the average result per trade.
- The standard deviation: how spread out individual results are.
- The standard error of the mean: the standard deviation divided by the square root of the number of trades.
The standard error is how uncertain your estimate of the average is. It shrinks as trades accumulate, but only with the square root of the count: to halve the uncertainty, you need four times as many trades.
The t-statistic
Divide the mean by its standard error and you get a t-statistic. It answers: how many standard errors above zero is the average trade?
- Around 2 is the conventional rough threshold for a result that would be unusual (about 5% likely) if the true average were zero, for a single test decided in advance.
- Below that, the data is consistent with no edge at all.
- Well above it is stronger evidence, with the caveats below.
import numpy as np
def trade_stats(r):
"""r: per-trade results, e.g. in R-multiples."""
r = np.asarray(r, dtype=float)
n = len(r)
mean, sd = r.mean(), r.std(ddof=1)
se = sd / np.sqrt(n)
return {"trades": n, "mean": mean, "sd": sd, "se": se, "t": mean / se}
print(trade_stats(r_multiples))
How many trades would you need?
Rearranging the same formula gives a rough guide. To reach a t-statistic of about 2, the trade count needs to be around four times the square of the ratio of standard deviation to mean:
def trades_needed(mean, sd, t_target=2.0):
return int(np.ceil((t_target * sd / mean) ** 2))
The practical message: if your average trade is small compared with the spread of results, the trades needed grow quickly. A strategy whose average trade is a small fraction of its standard deviation can need many hundreds or thousands of trades before the backtest says much. A strategy with a large, consistent edge needs far fewer.
Win rate needs its own range
Win rate is a proportion, and proportions from small samples are rough. As a purely hypothetical arithmetic illustration, not a strategy result: 6 wins from 10 trades is consistent with a true win rate well below or well above 60%. The Wilson interval gives a sensible range:
from math import sqrt
def wilson_interval(wins, n, z=1.96):
p = wins / n
centre = (p + z**2 / (2 * n)) / (1 + z**2 / n)
half = z * sqrt(p * (1 - p) / n + z**2 / (4 * n**2)) / (1 + z**2 / n)
return centre - half, centre + half
Compare the lower end with the break-even win rate implied by the strategy's payoff ratio. If the range comfortably includes win rates below break-even, the backtest hasn't shown the strategy is on the right side of the line.
The bigger problem: how many things you tried
Every statistic above assumes you tested one strategy, decided in advance. Real development rarely works that way. Parameters get optimized, filters get added and removed, and automated builders can generate thousands of candidates.
If you test enough strategies with no edge at all, some will clear a t-statistic of 2 by chance. The more you try, the higher the best one's statistics climb. That is why the threshold for a heavily searched strategy has to be much higher than for a single idea tested once.
Practical responses:
- Count your trials. Record how many variants, parameter sets and filters you tested. That number belongs in the evaluation.
- Raise the bar with the search. A simple correction divides the significance level by the number of independent trials (the Bonferroni approach). It is conservative, but it shows how quickly the requirement grows. More refined methods, such as the deflated Sharpe ratio, adjust for the number of trials and the shape of the return distribution.
- Judge on untouched data. The cleanest fix is to evaluate the final candidate on data that played no part in the search; see out-of-sample testing for EAs.
This is the statistical side of overfitting. The practical warning signs are covered in how to spot an overfit backtest.
Other assumptions that weaken the numbers
- Trades are not always independent. Results can cluster in certain market conditions. Clustering means the effective sample is smaller than the trade count suggests. The MT5 report's Z-score gives a first check; see how to read an MT5 Strategy Tester report.
- Fat tails. If results include rare, very large trades, the standard deviation is unstable and normal-distribution shortcuts understate uncertainty. A bootstrap, which resamples your own trades, makes fewer assumptions. The same idea, applied to drawdowns, is covered in Monte Carlo testing a trading strategy.
- Regimes. Hundreds of trades from one market environment are weaker evidence than the same number spread across several. Trade count and coverage of conditions both matter; see market regime testing for EAs.
Applying this to out-of-sample segments
Sample size bites hardest on out-of-sample data, because the held-back segment is usually the smaller part.
Illustrative teaching example. In our sample stress-test report, "System A-14", an anonymized, composite daily-bar trend system, produced 212 closed trades in total, about 34 a year, split into 148 in-sample and 64 out-of-sample trades. (Illustrative example only. Historical simulation, not predictive of future or live results.)
A daily-bar system trading a few dozen times a year needs years of data to build a meaningful sample, and each walk-forward window holds far fewer trades than the whole test. That's why the report read its out-of-sample decay as a flag to investigate rather than a verdict, and looked for the same weakness from other angles: walk-forward analysis and parameter sensitivity. See how to walk-forward test an EA.
Ways to get more evidence
When the sample is thin, there are honest ways to add evidence and dishonest ones.
Honest:
- Test over a longer history, if the data and the market structure allow.
- Test the same rules, unchanged, on related instruments where the logic should apply.
- Run the frozen EA on demo to collect genuinely new trades.
Not honest:
- Lowering the timeframe or loosening entry rules just to produce more trades. That changes the strategy; it doesn't add evidence about the original one.
- Counting partial closes or scale-ins as separate trades.
- Re-running the search until something passes the threshold.
Common sample-size mistakes
- Using a fixed trade-count rule regardless of how noisy results are.
- Ignoring the number of variants tested.
- Reading a win rate from a small sample as precise.
- Treating clustered trades as independent.
- Inflating the trade count by changing the strategy.
- Treating significance as a forecast. It measures surprise under "no edge", not future performance.
Sample-size checklist
- Per-trade results expressed in R-multiples or percentage of equity
- Mean, standard deviation, standard error and t-statistic calculated
- Rough trades-needed figure calculated from your own mean and standard deviation
- Wilson range for win rate compared with the break-even win rate
- Number of variants tested recorded, and the bar raised to match
- Bootstrap used where results have fat tails
- Out-of-sample trade count checked separately
- Coverage of different market conditions checked, not just the count
Frequently asked questions
What is the minimum number of trades for a backtest?
There isn't a single minimum. It depends on how large the average trade is compared with how much results vary, and on how many strategies you tested. A small, noisy edge can need far more trades than a large, consistent one.
What does statistical significance mean for a trading strategy?
It means the backtest result would be unlikely if the strategy had no real edge, assuming a single test chosen in advance and independent trades. It doesn't mean the strategy will keep working.
Is 100 trades enough?
Sometimes, sometimes not. Calculate the t-statistic from your own trades and ask how many variants you tested before choosing this one. If the edge is small relative to the noise, or the search was large, 100 trades is unlikely to be enough.
Does optimizing parameters affect statistical significance?
Yes. Optimization is a search across many variants, and the best result of a search looks better than its true quality. The more you search, the stronger the evidence you need, ideally on untouched data.
Can a statistically significant backtest still fail live?
Yes. Significance doesn't account for regime change, execution differences, costs you didn't model or coding errors. It reduces one kind of uncertainty; it doesn't reduce the risk of loss.
Want a second pair of eyes?
Start with our free Sample Stress-Test Report. It walks one anonymized, illustrative strategy through a full stress test, start to finish, so you can see what rigorous validation looks like before you test your own.
Read the Sample Stress-Test ReportWant your own backtest checked? The Strategy Audit + 60-minute call is a paid service at a launch price of £100, credited in full against our build and portfolio offers. You send an MT4/MT5 Strategy Tester report or trade-list CSV; what we can check depends on the files you supply, and walk-forward and parameter sweeps are not included because they need the strategy itself. It is analysis of strategy testing, not investment advice, and does not promise any trading or evaluation outcome. See the Strategy Audit
Disclaimers
CollosoTrading provides educational content and analytical services for retail and professional algorithmic traders. We do not provide regulated investment advice, financial advice, or personal recommendations. Trading derivatives, leveraged products, and CFDs carries a high level of risk and may result in losses exceeding deposits. Past performance, including any verified or unverified historical results referenced on this site, is not indicative of future results. Consult an independent regulated financial adviser before making investment decisions.
All figures are backtests or simulations unless marked LIVE. Hypothetical or backtested performance results have inherent limitations and may not reflect actual trading. No representation is made that any account will or is likely to achieve profits or losses similar to those shown. Individual results vary. All figures in this article come from an anonymized, illustrative teaching example. We do not guarantee the outcome of any prop firm challenge.