AlgoBars
How many trades
does a backtest need?
The short answer
Last updated · Trading involves risk of loss.
English · Español · Português · العربية · हिन्दी · Türkçe · Bahasa Indonesia · Tiếng Việt
- Cover different markets: rising, falling and sideways periods.
- Use walk-forward testing: build on one period, test on a later one.
- Run a Monte Carlo test to see a range of possible outcomes.
- Avoid look-ahead bias: only use data known at the time.
- Include realistic costs before you trust the result.
How sample size changes your margin of error
Margin of error on the win rate at 95% confidence, for a strategy that wins about half its trades.
| Trades in backtest | Win rate could be off by |
|---|---|
| 30 | ± 17.9 points |
| 50 | ± 13.9 points |
| 100 | ± 9.8 points |
| 200 | ± 6.9 points |
| 500 | ± 4.4 points |
| 1,000 | ± 3.1 points |
Good to know
Start free. Today.
Every feature, free. No card. No catch.
Is 30 trades enough for a backtest?
Usually not. With 30 trades, a win rate could be off by about 18 points either way, so luck can look like skill.
How many trades make a backtest reliable?
Aim for at least 100 trades, and several hundred if you can, spread over different market conditions.
What else should I check besides the number of trades?
Use walk-forward and Monte Carlo tests, avoid look-ahead bias, and include realistic costs. AlgoBars includes these in its free backtesting.
Start building today.
Exploring is free. Talk to us 24/7 on +1 855-889-6969.
Every feature, free. No card. No catch. · AI at compute cost only · Trading involves risk
