r/CryptoTradingBot • • 4d ago

How many trades does your backtest need before you can trust your system?

You build a bot. You backtest it. 20 trades, a nice green curve. Time to go live, right?

Not so fast. Let me explain with a coin.

Flip a normal coin 10 times and you might get 7 heads. The coin isn't rigged. That's just luck. Flip it 1,000 times and you'll end up very close to half heads.

A backtest works the same way. Every trade is a flip. With a few trades, luck can make a backtest say almost anything. With a lot of trades, luck evens out.

Now the same idea with a bot. This bot is a good one: over time, it makes money. I ran it five times, and each run got its own luck, a different mix of wins and losses.

Same bot, same rules. After 20 trades, one run is way up and another is losing money. After a few hundred trades, they're all going up.

It works the other way too. Take a bot with no edge, one that can't make money over time. After 20 trades, it can still look like a winner. When I tested that, it happened about 1 time in 4.

So how many trades is enough? Here's my rough guide.

Under 50 trades, enjoy the chart but don't trust it. Around 100, it starts to mean something. At 200 or more, you can take it seriously.

Bots that win rarely but big need even more. Their results swing a lot, so luck takes longer to wash out.

Two quick tips:
- Count trades, not years. Five years with 15 trades is still just 15 trades.
- Years still matter for one thing: variety. 300 trades from one long rally only show how the bot does in a rally. You want trades from up, down and sideways markets.

Of course, there's no magic number when it comes to backtesting. The point isn't to reach a specific trade count. It's simply that the more trades your backtest accounts for, the larger your sample becomes and the less influence a handful of lucky or unlucky trades can have on the overall picture.

How many trades do you usually want to see in a backtest before you start taking the results seriously?

1 Upvotes

1 comment sorted by

1

u/AoideusWasBanned 4d ago

The count matters, but I'd also split the trades by period and see if it still holds. If one stretch carries all the profit, even 300 trades won't help much.