NQ · LIVE ENGINE Algomyth
Testing & evidence

Backtest Sample Size: How Many Trades Before It Means Anything

Backtest sample size decides whether a result is real or luck: why 30 trades prove nothing, what a meaningful sample looks like, and how a small one fools you.

Published 6 min read By the Algomyth desk

Illustration for the Algomyth guide on backtest sample size

A strategy with a 70% win rate over 30 trades tells you almost nothing. The same 70% over 4,000 trades tells you a great deal. The difference between the two is not the win rate. It is the count underneath it, and it is the first thing you should look for in any backtest.

Most people read a track record from the top down: the total profit, then the win rate, then maybe the drawdown. The trade count sits at the bottom of the report, ignored. That is backwards. Sample size is what decides whether the numbers above it are evidence or noise.

Why the trade count comes first

Any strategy, including a completely random one, will produce impressive short runs. Flip a fair coin ten times and getting seven or eight heads is ordinary; it happens constantly. Flip the same coin four thousand times and you will land within a whisker of 50%, every time. The more trials you run, the harder luck has to work to hide the truth.

A backtest behaves the same way. A short one is a short run of coin flips, and a short run can look brilliant for no reason at all. Thirty trades that happened to fall right prove nothing about the thirty-first. Only when the sample grows into the hundreds, and then the thousands, do the results start to describe the strategy instead of the sample.

The one thing to remember

The credibility of a backtest is mostly a function of how many trades produced it, not how good the headline looks. A spectacular result over 40 trades is weaker evidence than an ordinary result over 4,000. Read the trade count before you read anything else.

What a small sample hides

Three things hide inside a small sample, and all three flatter the strategy.

  • Variance. Small samples swing hard. A 55% win rate over 40 trades could easily be a 45% strategy having a good week, or a 65% strategy having a bad one. The error bars are so wide the number barely means anything.
  • A few outsized winners. Take out the two best trades and a short, glowing backtest often collapses to break-even. A large sample cannot be rescued by two lucky days; a small one frequently is.
  • Cherry-picking. The shorter the window, the easier it is to find a flattering one. Almost every mediocre track record contains a great-looking quarter somewhere inside it.

That last trap runs in both directions, and it is worth being honest about. A genuinely sound system can show a short stretch at double its long-run average purely because the stretch is small and the conditions were kind. We walked through exactly that in how much a trading bot makes: a single strong year that looks like the future but is really just a small, favorable sample.

How few is too few

You may have heard that thirty is the magic number for statistics. That rule comes from estimating the average of a well-behaved distribution, and trading returns are not well-behaved: they have fat tails, losing streaks, and stretches that cluster together. For a trading edge you want hundreds of trades at an absolute floor, and preferably thousands, spread across different market conditions.

Trades in the sampleWhat you can honestly conclude
Under 50Almost nothing. Luck dominates. A great result here is a coin toss that landed well.
50 to 200A hint, not evidence. The error bars are still wide enough to swallow the edge.
200 to 1,000A real signal starts to show, but it stays fragile to a change in market regime.
1,000 to a few thousandThe numbers begin to describe the strategy rather than the sample.
Several thousand, across yearsAbout as much confidence as a backtest can give, which is still not a promise about tomorrow.

These bands are judgment, not a formula, and they assume the trades are reasonably independent. A hundred trades taken from a single afternoon are really closer to one event than to a hundred.

Why a big sample forces a small edge

Here is the part that surprises people. A large, believable sample almost guarantees the edge per trade is small. If a system genuinely made $500 a trade over four thousand trades, it would be one of the most famous strategies on earth, and it would stop working the moment anyone noticed. Real systems that survive thousands of trades run on thin, repeatable advantages, not on jackpots.

A big sample is necessary, not sufficient

Thousands of trades earn your attention, but they do not settle the question on their own. You can still ruin a large sample by tuning the strategy to the very data you test it on, so that it fits the past perfectly and predicts nothing. That failure is called overfitting, and it is the reason a serious test holds back data the strategy has never seen and checks the result there too. Sample size and honest testing are two separate defenses, and you need both. The basics of how a backtest is built, and where it can lie, are covered in what a backtest is.

How to judge a sample in two minutes

  1. Find the trade count first, before the profit figure catches your eye.
  2. Divide the period into years and ask whether each year works, or whether one lucky year is carrying the rest.
  3. Ask whether the test was run on the same data the strategy was built on, or on data it had never seen.
  4. Re-run it yourself. A track record you can reproduce is worth more than one you have to believe.

Do those four things and most impressive-looking systems fall apart in front of you, which is the point. The wider approach to telling a real record from a manufactured one is in how to spot a fake track record, and the general logic of rule-based systems is in the algorithmic trading guide.

Frequently asked questions

How many trades does a backtest need before I can trust it?

There is no single cutoff, but treat a few hundred trades as a floor and several thousand as a comfortable sample, ideally spread across several years and different market conditions. Below about fifty trades the result is dominated by luck and tells you almost nothing. The count matters more than the headline profit, so always find it first and weigh everything else against it.

Is thirty trades really useless?

For judging a trading edge, more or less yes. The idea that thirty is enough comes from basic statistics about estimating a simple average from a tidy distribution, and trading returns are anything but tidy: they have fat tails, losing runs, and results that cluster together. Thirty trades can make a random strategy look like genius, so it is nowhere near enough to act on.

Does a large sample mean the strategy will keep working?

No. A large sample raises your confidence that the edge was real in the past; it says nothing certain about the future. Markets change, and a strategy that worked across thousands of past trades can still degrade. A big sample is necessary to take a backtest seriously, but it is never a guarantee, which is why the results here are always described as hypothetical.

Can a small sample ever be trusted?

Rarely, and only with heavy caveats. A small sample can rule a strategy out quickly, for example if it loses badly over a hundred trades, but it can almost never rule one in. If all you have is a short, glowing run, the honest position is that you do not yet know whether it is skill or luck, and the only fix is more trades over more time.

Sources and further reading
  • David Aronson, "Evidence-Based Technical Analysis," on statistical significance and data-mining bias.
  • CFTC, "Customer Advisory: Be Cautious of Trading Systems and Robots."
  • NinjaTrader, Strategy Analyzer documentation, performance report and trade statistics.

Educational content, not investment advice. Trading futures involves substantial risk of loss and is not suitable for every investor. Any reference to Algomyth results is hypothetical, simulated over historical data, and shown in full on the performance page; past performance does not guarantee future results.

The record

Twenty years, drawdowns included

Every engine publishes its full history repriced at today's values, with the losing years and the deepest drawdowns printed as plainly as the profits. Verify first, decide later.