Guide
Seven backtesting mistakes that make a losing bot look like a winner
Last updated: 3 October 2026
A backtest rarely lies on purpose. It does exactly what you told it to, and small modelling errors add up to a strategy that looks far better on paper than it can ever be in a market. These seven mistakes cause most of the damage. Each one comes with the check that catches it.
1. Overfitting the parameters
Try enough combinations of moving-average lengths, RSI thresholds and stop distances, and one of them will fit the past beautifully by chance. The more knobs a strategy has and the more you turn them, the less the best result means.
Fix: keep few parameters and prefer round values. Tune on one period, judge on another you never touched. Check that neighbouring values give similar results; an isolated peak is luck.
2. Look-ahead bias
The bot uses information it could not have had at the time of the trade: the candle's close to enter at its open, an indicator computed on the full dataset, a daily high used before the day is over.
Fix: compute every signal on closed candles and fill the trade at the next candle's open. Shift your signal column by one candle and rerun. If the result collapses, the original had a leak.
3. Ignoring fees, slippage and funding
Short-term strategies live on thin margins. Leave out costs and a strategy that trades several times a day can turn from a loss into an impressive gain.
Fix: charge your exchange's real fee on both sides of every trade, add slippage to market orders, include funding on perpetual futures, then double all three as a stress test.
4. Survivorship bias in coin selection
Testing on today's top coins means testing on the winners. Coins that crashed or were delisted are missing from the list, so a strategy that buys dips looks safer than it was.
Fix: pick the coin list as it stood at the start of the test, or limit the test to large pairs that existed throughout the whole period.
5. Too few trades
Twenty trades with a 70% win rate is a coin that landed heads 14 times. The statistics in a backtest report mean little until there are enough trades for luck to average out.
Fix: aim for a few hundred trades across different market conditions, or accept that the result is a hint and nothing more.
6. A single market regime
A strategy tested only during a bull run learns to buy dips that always recover. Crypto spends long periods trending and long periods ranging, and most strategies only work in one of the two.
Fix: include at least one rise, one fall and one sideways period. Report results for each separately; a strategy that wins everywhere is rare, so know where yours loses.
7. Judging by total return alone
A 200% return with a 60% drawdown along the way is a strategy almost nobody could hold, and one that would hit any sensible loss limit long before the profit arrived.
Fix: read the maximum drawdown and the worst day first. Then check whether the bot would have survived your real limits. On Crypto Robot those are -10% overall and -5% in a single day.
A quick self-check
- Signals use closed candles only, fills happen on the next candle.
- Fees, slippage and funding are included at realistic levels.
- The out-of-sample period was never used for tuning.
- Nearby parameter values give similar results.
- There are enough trades across rising, falling and flat markets.
- The worst day and the maximum drawdown fit inside your limits.
The mistake no backtest can fix
Every backtest is built by someone who already knows how the past turned out, and that knowledge leaks into the choices: which coin, which period, which indicator. The only clean test is on data that does not exist yet. That is the job of a forward test, and Crypto Robot runs one for free: live crypto prices, a virtual $10,000, three levels and drawdown limits that do not bend.
Frequently asked questions
What is overfitting in backtesting?
Overfitting means tuning a strategy so closely to past data that it captures random noise. It looks excellent in the backtest and performs much worse on new data.
How do I know if my backtest has look-ahead bias?
Shift your signals by one candle so every trade uses only closed data, and rerun the test. A sharp drop in performance points to a leak of future information.
How many trades does a backtest need?
There is no fixed number, but a few dozen trades say little. A few hundred trades across different market conditions give a far more reliable picture.
How can I check a backtest result for free?
Run the strategy forward on live prices with virtual money. Crypto Robot gives each bot a virtual $10,000 at no cost and with no card.
The cleanest test is on prices nobody has seen yet.
Start a live test