How Many Trades Make a Backtest Statistically Real?
How many trades a backtest needs depends on the edge per trade, not a magic 30. The t-stat, standard error and the overlap trap that inflates significance.
Part 10 of 20 · How to Algo · Previous: Win rate vs expectancy · Next: Multiple testing
A backtest’s average trade is an estimate, and every estimate has an error bar. The t-statistic is the average trade divided by that error bar. It answers one question: how likely is a result this good if the true edge were zero? It does not tell you the edge is large, stable or tradable. It only tells you whether you have enough data to distinguish it from nothing.
The formula fits on one line and drives most of what follows:
t ≈ (mean trade / standard deviation of trades) × √(number of independent trades)
The first factor is the per-trade Sharpe. The second is where people get the sample wrong.

How many trades a given edge needs
Rearranging the formula, the number of independent trades needed for t = 2 is 4 divided by the per-trade Sharpe squared:
| Per-trade Sharpe | Trades for t = 2 |
|---|---|
| 0.30 | 44 |
| 0.20 | 100 |
| 0.10 | 400 |
| 0.05 | 1,600 |
| 0.03 | 4,444 |
| 0.02 | 10,000 |
The folklore that 30 trades are enough fits only an edge above the top row. Intraday futures strategies typically live in the bottom half of this table. A strategy earning a few ticks a trade with a stop of a few dozen ticks has a per-trade Sharpe well under 0.1, so it needs thousands of trades.
A concrete case: one of our NQ machine-learning configurations showed t = +1.42 on 1,500 trades. That is a per-trade Sharpe of about 0.037, and reaching t = 2 at the same edge would take about 3,000 trades, roughly twenty years of NQ at one trade a day. We did not have twenty years. We had a pre-registered replication on ES instead, and it came back at t = +0.22 (Part 1 tells that story).
The same arithmetic in annual terms: t ≈ annual Sharpe × √years. A true Sharpe of 1 needs about four years of data to reach t = 2; a Sharpe of 0.5 needs about sixteen. A seven-year backtest cannot confirm a Sharpe-0.5 strategy at t = 2, no matter how many trades it contains, if those trades are correlated within each year.
Count independent observations, not rows
The square root in the formula assumes independent observations. Most backtests violate that in one of three ways.
Overlapping forward windows. If you correlate a signal with the next 20 days’ return and sample every day, consecutive observations share 19 of their 20 days. You have about one twentieth of the independent information the row count suggests, and the naive t is inflated by roughly √20 ≈ 4.5.
We measured this on a question about oil and the Nasdaq: does a falling crude price predict NQ over the following weeks? Daily-sampled 20-day windows gave a correlation of −0.089 at t = −3.7, which looks like a finding. Counted on non-overlapping windows, 86 of them, the same relationship was −0.073 at t = −0.7. The sign of the yearly correlation also flipped back and forth. Nothing was there. The only thing the overlapping version measured was how many times each day had been counted.

The simulation makes the point without any market at all. Between 2,000 pairs of independent random walks, “the past H days predict the next H days”, sampled daily, cleared |t| > 2 5% of the time at H = 1, as it should, 30% at H = 5, 57% at H = 20 and 75% at H = 60.
Clustered intraday trades. Several trades on the same day share the same market move. If the market trends all day, every long that day wins and every short loses. Treating them as independent overstates the sample. Our default for intraday work is to sum P&L per day and compute the t-statistic over days. It is conservative and simple. In a pilot on intraday gamma levels, the naive t for one level was −2.50 and looked significant. A mirrored placebo level produced −2.27, and the sample period simply drifted down: the result was the market’s drift, not the level. Clustered by day, none of the levels came close to significance.
Overlapping positions. If a backtest can hold several positions at once that move together, each trade is not an independent bet. Our first run of an anchored-VWAP rulebook held up to 20 overlapping positions; besides inflating P&L it inflated the t-statistic. Enforce one position, or aggregate by day.
The effective sample is set by the horizon
A machine-learning project on NQ taught us how much the horizon matters. For predictions over seconds, a year of data contains millions of nearly independent decisions, and one year is enough. For predictions over an hour, all decisions within a day share most of their fate. The effective sample is days, not events.
On one year of data at an hourly horizon, test-fold AUCs ranged from 0.32 to 0.70 and one feature looked strong on its own at 0.601. Over ten years, the same feature shrank to 0.5175 and the fold range narrowed to 0.479–0.552. One year was plenty for the seconds-scale question and nowhere near enough for the hour-scale one.
Autocorrelation and Newey-West
Even non-overlapping daily returns can be autocorrelated. NQ daily returns, for example, show negative one-day autocorrelation in our data. Positive autocorrelation in a strategy’s daily P&L makes the naive standard error too small; negative makes it too large. A Newey-West (heteroskedasticity- and autocorrelation-consistent) standard error corrects for both, and in several of our published tests we report the Newey-West t next to the plain one. When they differ a lot, the plain one was wrong.
Sharpe annualisation pitfalls
Annualising a Sharpe ratio multiplies a per-period Sharpe by the square root of periods per year. Three ways it goes wrong:
- Counting only days with trades. A strategy that trades on 50 days a year and is flat otherwise should be annualised over all trading days, with zero P&L on the flat ones. Annualising over trade days alone inflates it.
- Annualising per-trade Sharpe by trades per year when trades overlap or cluster. The correlation makes √n too generous.
- Assuming no autocorrelation. The √252 rule assumes independent days.
The safest route is to compute the Sharpe on daily P&L including zero days, and check it against the t-statistic over the same days: t should be about Sharpe × √years.
What significance does not tell you
A t of 2 means a result this large would appear by chance about 5% of the time if you ran one test. Most research runs many: different sessions, thresholds, holding periods, instruments. The more you run, the more t = 2 results noise produces. Twenty-two calendar cells on ES produced a Monday at t = 2.75; on 1,000 shuffles of the same returns the best cell averaged |t| = 2.72. Part 11 quantifies that.
And significance is not size. The S&P’s overnight drift is significant at t = 2.77 gross and the trade to collect it costs half the edge (Part 8). Significance answers “is it there?”, not “is it worth having?”.
Checklist
- Compute the per-trade Sharpe and the trades needed for t = 2 before celebrating anything.
- Sum intraday P&L by day and compute t over days.
- Never sample overlapping forward windows daily without correcting; use non-overlapping windows or Newey-West.
- Enforce one position or aggregate overlapping trades.
- For hour-scale or longer predictions, count days, not decisions.
- Annualise Sharpe on all trading days, including flat ones.
- Check that t ≈ annual Sharpe × √years; a large gap means a counting error.
- Treat t = 2 as the floor for one pre-planned test, not for the best of many.
The next problem is the one t-statistics cannot solve alone: you rarely test only one idea. Part 11: Multiple testing and data snooping in trading strategy research.
Frequently asked questions
How many trades do you need for a statistically significant backtest?
It depends on the edge relative to the noise. The t-statistic is approximately the per-trade Sharpe (mean trade divided by the standard deviation of trades) times the square root of the number of independent trades. To reach t = 2 you need 4 divided by the per-trade Sharpe squared: 100 trades at 0.2, 400 at 0.1, 1,600 at 0.05, 10,000 at 0.02.
Is 30 trades enough to validate a trading strategy?
Only for a very large edge. Even a per-trade Sharpe of 0.30 needs 44 trades to reach t = 2. Intraday futures strategies typically have a per-trade Sharpe well under 0.1, which puts them in the thousands.
What t-statistic should a trading strategy have?
At least 2 on correctly counted, independent observations, and more if you tried many variants before settling on this one. A t of 2 means a result this large would appear by chance about 5% of the time if you ran one test; most research runs many. Part 11 of this series covers that adjustment.
How do overlapping trades or returns inflate the t-stat?
Each observation is counted many times. A 20-day forward return sampled every day shares 19 days with its neighbour, so the naive t is inflated by roughly the square root of 20, about 4.5. One of our tests showed t = −3.7 on daily-sampled 20-day windows and t = −0.7 on the 86 non-overlapping ones. Intraday trades on the same day have the same problem; sum P&L per day and compute t over days.
How does the Sharpe ratio relate to the t-statistic?
The t-statistic is roughly the annual Sharpe times the square root of the number of years. A strategy with a true annual Sharpe of 1 needs about four years to reach t = 2, and a Sharpe of 0.5 needs about sixteen. That is before any correction for having searched many variants.