How many trades to backtest before your win rate means anything
What a small sample does to a win rate, worked out with plain probability and then compared with one mechanical Gold rule over almost six years.
Binomial math plus XAUUSD 5-minute bars, 1,423 rule days, Jan 2021 to Oct 2026
On this page
Short answer
How many trades to backtest? Roughly 100. At a true 50% win rate it takes 99 trades before your result lands within 10 points of the real rate at least 95% of the time, and 399 for 5 points. Below that, luck does most of the talking: a break-even setup shows a 60% win rate or better in 25.2% of 20-trade samples.
Range that at least 95 in 100 samples land in, true win rate 50%. Exact binomial, independent trades, no costs. Checked by a 200,000-run Monte Carlo per cell (largest gap 0.2 points).
How many trades do you need to backtest?
It depends on how close you need to be. If a setup truly wins half the time, at least 95 in 100 traders backtesting 20 trades of it will see anything from 30% to 70%. After 100 trades the range is 40% to 60%. A true 40% or 60% rate is a little tighter, not by much. The same band works roughly the other way too: if you’ve logged 100 trades, the true rate is probably within about ±10 points of the one you see, as long as the trades are independent.
| True win rate | After 30 trades | After 100 trades | Trades for ±10 pts | Trades for ±5 pts |
|---|---|---|---|---|
| 40% | 23–57% | 31–50% | 92 | 376 |
| 50% | 33–67% | 40–60% | 99 | 399 |
| 60% | 43–77% | 50–69% | 92 | 376 |
Exact binomial, independent trades, no costs. Checked by a 200,000-run Monte Carlo per cell (largest gap 0.2 points).
The range shrinks with the square root of the sample, so halving it costs four times the trades. That’s why going from ±10 to ±5 points takes you from about 100 trades to about 400. A 30-trade rule of thumb still leaves a 50% setup reading anywhere from 33.3% to 66.7%.
How often does a break‑even strategy look like a winner?
More often than you’d like. Take a setup with a 1R stop, a 1R target and a true 50% win rate. It makes nothing over time. Over 10 trades it still shows 6 or more wins, a 60% win rate and at least +2R, 37.7% of the time.
Show the numbers
| Trades in the sample | Samples at 60% wins or better |
|---|---|
| 10 | 37.7% |
| 20 | 25.2% |
| 30 | 18.1% |
| 50 | 10.1% |
| 100 | 2.8% |
Exact binomial, independent trades, no costs. Checked by a 200,000-run Monte Carlo per cell (largest gap 0.2 points).
It cuts the other way too. A setup that wins 55% at 1R averages +0.1R a trade. Over 20 trades it still ends flat or down 40.9% of the time.
Exact binomial, independent trades, no costs. Checked by a 200,000-run Monte Carlo per cell (largest gap 0.2 points).
So 20 good trades don’t prove a setup and 20 bad ones don’t kill it. If you rewrite the rules after every rough patch, you’re fitting the rules to noise.
What does a real win rate do on Gold?
The math above assumes coin flips. Real trades come from a market that changes, so here’s one mechanical rule on Gold, taken from the Asian range breakout post: mark the Asian high and low (19:00 to 02:59 New York time), note whichever side trades first from 03:00, and count a win if the day closes beyond it. Over 1,423 days it won 50.7%, close to a coin flip. Cut those days into back-to-back blocks of 20 and the rate jumps around.
Show the numbers
| 20-day blocks, January 2021 to October 2026 (first day shown) | Win rate |
|---|---|
| 2021-01-04 | 40% |
| 2021-02-02 | 70% |
| 2021-03-03 | 50% |
| 2021-03-31 | 55% |
| 2021-04-29 | 50% |
| 2021-05-27 | 45% |
| 2021-06-25 | 25% |
| 2021-07-27 | 30% |
| 2021-08-24 | 50% |
| 2021-09-22 | 35% |
| 2021-10-20 | 50% |
| 2021-11-17 | 50% |
| 2021-12-20 | 40% |
| 2022-01-19 | 75% |
| 2022-02-16 | 65% |
| 2022-03-17 | 80% |
| 2022-04-14 | 60% |
| 2022-05-13 | 30% |
| 2022-06-13 | 40% |
| 2022-07-14 | 60% |
| 2022-08-11 | 75% |
| 2022-09-09 | 35% |
| 2022-10-07 | 45% |
| 2022-11-04 | 35% |
| 2022-12-06 | 60% |
| 2023-01-06 | 45% |
| 2023-02-06 | 35% |
| 2023-03-07 | 55% |
| 2023-04-04 | 50% |
| 2023-05-03 | 45% |
| 2023-06-01 | 40% |
| 2023-06-30 | 45% |
| 2023-07-31 | 30% |
| 2023-08-28 | 35% |
| 2023-09-27 | 50% |
| 2023-10-25 | 30% |
| 2023-11-28 | 65% |
| 2023-12-28 | 40% |
| 2024-01-30 | 30% |
| 2024-02-28 | 55% |
| 2024-03-27 | 50% |
| 2024-04-26 | 60% |
| 2024-05-24 | 70% |
| 2024-06-25 | 55% |
| 2024-07-24 | 60% |
| 2024-08-22 | 65% |
| 2024-09-20 | 60% |
| 2024-10-22 | 50% |
| 2024-11-20 | 60% |
| 2024-12-20 | 85% |
| 2025-01-23 | 45% |
| 2025-02-21 | 40% |
| 2025-03-21 | 50% |
| 2025-04-22 | 65% |
| 2025-05-23 | 50% |
| 2025-06-24 | 45% |
| 2025-07-23 | 60% |
| 2025-08-22 | 50% |
| 2025-09-24 | 60% |
| 2025-10-24 | 40% |
| 2025-11-21 | 35% |
| 2025-12-23 | 40% |
| 2026-01-27 | 65% |
| 2026-02-26 | 55% |
| 2026-03-27 | 65% |
| 2026-04-28 | 60% |
| 2026-05-27 | 60% |
| 2026-06-29 | 45% |
| 2026-07-28 | 70% |
| 2026-08-25 | 50% |
| 2026-09-24 | 45% |
XAUUSD 5m, Candlune spot Gold archive, 1,423 rule days, Jan 4, 2021 to Oct 28, 2026. Last 3 days left out of the blocks.
Same rule, same market, nothing changed. A month of backtesting it read anywhere from 25% to 85%, and about one month in three looked like a 60% setup. Coin flips at the same rate would do that about one time in four (27.3% of 20-day windows).
Do 50 or 100 trades settle it?
Roughly. Over 10 days, Gold’s rule wandered about as much as coin flips at the same rate would. Over 20 to 100 days the spread was somewhat wider than coin flips, though the evidence is thin. The worst 100-day stretch, May 2021 to October 2021, read 36%. The best, December 2021 to May 2022, read 64%.
- 20 daysLowest 20%, highest 85%Coin flips 27.3%, Gold, Asian range rule 32.4%1.2×
- 50 daysLowest 26%, highest 74%Coin flips 12.1%, Gold, Asian range rule 20.9%1.7×
- 100 daysLowest 36%, highest 64%Coin flips 3.9%, Gold, Asian range rule 13%3.3×
XAUUSD 5m, Candlune spot Gold archive, 1,423 rule days, Jan 4, 2021 to Oct 28, 2026. Coin flips: exact binomial at 50.7%.
Don’t read too much into it. Day to day, wins and losses didn’t cluster: a win followed a win about as often as chance would give. Six years hold only about 14 separate 100-day stretches, and shuffling the same days into random order produced a lowest-to-highest 100-day range this wide 15.1% of the time. Calendar years ran from 44.3% in 2023 to 55.3% in 2024. It may be the market shifting, or it may be luck. Either way, 100 trades from one stretch of time can mislead, so spread them across different months and, if you can, different years.
Two days of the rule, bar by bar
The most recent London-take win and loss in the data. Both times London took the Asian low. The replay stops on the 15-minute bar that took it.
London just took the Asian low. Will the 16:45 bar close higher or lower than this one?
50 of 88 bars shown.
Candlune Gold data, 88 bars. A win for the rule.
Same rule, another day. Higher or lower by 16:45?
33 of 88 bars shown.
Candlune Gold data, 88 bars. A loss for the rule.
Each day is one yes or no. On its own, neither says anything about the rule. It takes a hundred of them before the count starts to mean something.
How to practice it
Pick one setup, write the rules down, and log every trade as you backtest Gold in replay, including the ones you’d rather skip. Don’t touch the rules until you reach a checkpoint. Once you have your average win and loss in R, the expectancy calculator shows what your win rate is worth.
- Trade 1One market, one timeframe, rules written down. Future hidden, step bar by bar.
- Trade 20Note the win rate and change nothing. At 50%, anything from 30% to 70% is normal.
- Trade 50Check that the days come from different months, not one hot stretch.
- Trade 100First real read: about ±10 points on paper, more if the market shifts.
- Trade 400Within about 5 points. A rule change can be judged against this.
How we measured
- Math. Exact binomial for independent trades with a fixed true win rate, no spread or fees. “Trades needed” is the smallest sample from which every larger one lands within the margin at least 95% of the time (92, 99 and 92 for ±10 points at 40%, 50% and 60%). Online calculators say 96 and 385 for 50%; this uses the count that every larger sample stays above, because wins come in whole numbers. A seeded Monte Carlo of 200,000 runs per cell matched to within 0.2 points.
- Gold data. XAUUSD 5-minute bars from the Candlune spot Gold archive, January 4, 2021 to October 28, 2026. 48 days with incomplete bars (holiday early closes, one data gap) are dropped, as in the Asian range post. This post uses a newer data version, so it counts 1,423 rule days where that post counted 1,419.
- The rule. Asian range 19:00 to 02:59 ET. From 03:00 ET, the first 5-minute bar beyond either edge sets the side; a win is a close beyond it on the last bar before 17:00 ET. It’s a yes or no, not a P/L: no stop, target or costs. 30 days with no take and 2 that took both edges in one bar are left out.
- Windows. Rolling windows are every run of 10, 20, 50 or 100 rule days in date order, so they overlap: the 1,423 days hold only about 14 separate 100-day stretches. Coin flips use the full-sample rate of 50.7%. In 2,000 random reorderings of the same days, the share of 100-day windows at 60% or more was as high as Gold’s 0.5% of the time, and the lowest-to-highest range was as wide 15.1% of the time. Lag-1 correlation between consecutive outcomes: -0.011.
- Limits. One rule on one market. Another setup may wander more or less. This is arithmetic and past data, not a forecast or trade advice.
Backtest one Gold setup to 100 trades, future hidden
Candlune replays real Gold days one candle at a time and logs every trade to your journal, so your count and win rate build up as you go. 7-day trial, no card.