Testing and analysis

Forex Backtest Sample Size: Trades, Periods and Reliability

Published Updated ForeXpert team日本語で読む

Forex backtest sample size has no universal answer: no trade count makes every test reliable. We suggest using around 100 trades as an initial review checkpoint, then checking the period, market conditions and consistency of your rules. The number is a practical stopping point for review, not statistical proof that a strategy works.

This guide explains how to choose a useful sample and what to do when you have too few trades. The aim is to understand what your record can support, rather than to reach a number by taking trades that do not fit the rules.

Forex backtest sample size: why count is not enough

Seven winners out of ten trades and 70 winners out of 100 both produce a 70% win rate. But changing one outcome moves the first rate by ten percentage points and the second by one. Small samples are more sensitive to individual outcomes.

More trades are not automatically more independent information. Repeated entries during one short market move can share the same conditions. They do not necessarily tell you as much about different environments as trades spread across several periods.

Dimension What to record What it helps reveal
Trade count Number of recorded decisions Sensitivity to a few outcomes
Test period Start and end dates Concentration in a short market episode
Market conditions Trend, decline and sideways behavior Selection of only favorable environments
Rule version Conditions used for every trade Mixing different strategies in one result

Report the period, count and rule version alongside win rate. When comparing two results with different sample sizes, do not turn a small difference into a firm ranking without examining the underlying trades.

What a 100-trade checkpoint means

A review point, not a certificate

Around 100 trades gives you a practical point to pause and organize the log. It does not establish a fixed confidence level or guarantee future profit. The frequency of the setup and the distribution of gains and losses determine what else you need to observe.

For example, a sample can have a positive average because one unusually large winner offsets many smaller losses. A stable-looking win rate does not show whether average win, drawdown or dependence on a rare outcome is also stable. Review those measures separately.

Win rates still have uncertainty

For an illustrative calculation, assume independent trades with a constant win probability. If the observed win rate is 50%, a normal-approximation 95% interval has a half-width of about 1.96 × √(0.5 × 0.5 / number of trades).

Fictional sample size Observed win rate Approximate half-width
100 50% ±9.8 percentage points
400 50% ±4.9 percentage points
1,600 50% ±2.45 percentage points

Quadrupling the sample roughly halves the width under those assumptions. Actual trades can be dependent and market probabilities can change, so this table is not a ready-made confidence interval for your future win rate. It only illustrates why additional trades reduce uncertainty gradually.

NIST's explanation of binomial confidence limits also notes limitations of a simple normal approximation, especially with small samples. Avoid treating a convenient calculation as a complete model of trading behavior.

Four steps for choosing a backtest sample

Four steps: define the scope, log every qualifying trade, review around 100 trades and cover other market conditions
Diagram: Choosing trade counts and test periods

1. Define the scope before seeing the results

Write down the pair, timeframe, dates and rules for entry, stop loss and exit. Our five-step backtesting guide explains the process in detail. Also decide when you will review the results.

Stopping when profit looks good or extending a test only until it becomes profitable selects the period using the outcome. Set the review point beforehand and keep a record of any added period. A later review should be able to distinguish the original plan from decisions made after seeing results.

2. Record every qualifying opportunity

Do not pick only setups that look successful after the chart is complete. Count trades using information available at the time. A second attempt made after you know the outcome should not be mixed into the first-pass performance record.

If a setup met the written rule but you hesitated or skipped it, note why. This is not a reason to create a fictional fill. It is a separate observation about whether you could execute the rule consistently. Distinguish actual simulated trades from missed opportunities.

3. Review distributions and concentration

At the checkpoint, calculate win rate, average result, profit factor, drawdown and trade count. Then compare broad chronological blocks, such as the first and second halves of the test. Look for dependence on one period or one large outcome.

If you have the list of results, paste it into our backtest results calculator to get these numbers at once. Pasting each half separately gives you the block comparison too.

Do not divide the record into so many categories that each contains only a few trades. Searching combinations of day, hour and market condition can make random differences look meaningful. Choose one question first and show the count next to every subgroup result.

4. Extend the period with rules unchanged

For a setup that appears rarely, first examine another period using the same pair and timeframe. Loosening entry conditions or switching to a shorter chart solely to collect more trades changes the strategy being tested.

If you add another currency pair, keep its results separate as well as showing any combined summary. Different price behavior and sessions may matter. Increasing the total does not necessarily increase what you know about the original pair by the same amount.

Mistakes that more trades cannot fix

Repeating the same setup as new evidence

Replaying a familiar chart can be useful for practicing an operation or a decision. Once you remember the price path, however, it is not a fresh independent observation. Keep first-pass testing separate from rehearsal.

The same applies to repeatedly testing a short period until you recognize its winning entries. The growing number of practice attempts does not create more historical market conditions. To learn about generality, add genuinely different periods under fixed rules.

Combining rule versions

If you change the rule after 50 trades and add 50 more, you have not tested one rule 100 times. Preserve the two versions separately. The revised rule needs a new check on data not used to create it.

Keeping a version log also helps explain apparent improvements. Without it, a later average can silently mix different stop distances, entry filters and exit behavior, making the headline count difficult to interpret.

Looking ahead while collecting trades

A large set of decisions made with future candles visible can still be biased. Step through the chart one bar at a time and define exits before the outcome is known. Quantity does not repair missing decision-time discipline.

ForeXpert lets you advance historical charts bar by bar and review trade count and average outcomes in its statistics. Use the count to track qualifying decisions, rather than treating it as a quota that requires an order on every chart.

The ForeXpert chart screen used for decisions with only the current historical view visible
ForeXpert chart screen (demo data)

Frequently asked questions

Should I discard a strategy after 100 poor trades?

Check costs, rule adherence, market concentration and recording errors before deciding what the result means. Adding filters repeatedly to remove losses can lead to backtest overfitting. State the reason for a change and evaluate it on another period.

How many years should I test?

It depends on setup frequency and timeframe. Ask whether the sample covers different conditions rather than selecting years alone. When adding older data, also review the recent period separately so a combined average does not conceal a change in behavior.

Does a large sample imply future profit?

No. A large sample can still be biased by hindsight, missing costs or repeated rule changes. Backtest results do not guarantee future performance. Sample size is one dimension of test quality, alongside how the decisions and data were produced.

Summary

Use around 100 trades as an initial review checkpoint, then assess the period, market coverage and rule consistency. Do not take extra trades simply to hit a target count.

Define the scope and review point first, collect qualifying decisions consistently, and identify what is missing. Sometimes you need more trades; sometimes you need evidence from a different market environment instead.