A backtest that looks too good usually is. The equity curve climbs straight, drawdowns are shallow and the numbers feel like a gift. Then the strategy goes live and none of it shows up. The cause is rarely bad luck. It is one of a handful of mistakes that bake optimism into the test. These are the seven that matter most.

1. Look-ahead bias

The test uses information that was not available at the moment of the trade. The classic versions: entering on a candle's close price while the rule says to enter at its open; reading a swing high that is only visible after later candles confirm it; using a daily high or low before the day is over; trusting an indicator that repaints.

Fix: for every trade, ask what was on screen at the exact moment. Step through candles one at a time with the future hidden, and decide before revealing the next one.

2. Overfitting (curve fitting)

You tune parameters until the past looks perfect: a 13-period average because 12 and 14 did worse, a trading window of 09:47 to 11:12. Each tuned setting absorbs a little noise as if it were signal. The more parameters you tweak, the more the strategy describes the past instead of predicting the future.

Fix: limit the number of settings, prefer round values with a reason behind them, and check robustness: if nudging a parameter by 10-20% destroys the result, it was a coincidence. Keep a slice of data you never tuned on for a final test.

3. Ignoring costs

Spread, slippage and commission feel small beside a 2R target. On a hundred trades, they decide the result. High-frequency and scalping strategies are the most exposed: a 0.5R average gross can turn flat or negative once costs are in.

Fix: put realistic costs on every trade. Be pessimistic, use the spread you see at the open and at news, not the quiet midday one.

4. Perfect fills

Backtests tend to assume that a limit order fills the instant price touches it and that a stop exits at its exact price. In a fast move, a stop slips, and a limit that was only touched often is not filled at all.

Fix: require price to trade through a limit by a tick before counting a fill, and add slippage to every stop. Treat trades that only work with a perfect fill as unreliable.

5. Too few trades, too little variety

Twenty trades are a coin flip with a story. A hundred trades from one strong trend are one market condition seen a hundred times.

Fix: aim for at least 100 trades per setup, spread across trending and ranging, quiet and volatile periods. More in how many trades a valid backtest needs.

6. Survivorship and selection bias

If you test a strategy on stocks that exist today, you silently drop the ones that went bust or were delisted, and the result is too rosy. Selection bias is the close relative: choosing the symbol, the period or the examples after you know how they turned out.

Fix: use data that includes dead symbols where it matters, and choose your test set before looking at results. For forex and crypto pairs, the same idea means testing on more than the one pair that looked best.

7. Testing a different strategy from the one you will trade

The subtlest one. In the test you skip the trades that "look bad" and take only the clean ones, you never move a stop, you never hesitate. Live, you do all three. What you tested is an idealised version of you.

Fix: take every trade the rules allow, then compare the backtest with your live trades, setup by setup. The difference is what your execution costs, and it is measurable. (See what your trading mistakes cost.)

A checklist before you trust a result

  • Rules written down before the test started
  • The future hidden while testing
  • Costs and slippage included, pessimistically
  • At least 100 trades per setup, varied conditions
  • Settings tested for robustness, not just the best value
  • A slice of data kept for a final test
  • Every valid trade taken, none skipped
  • Results compared with live trades afterwards

Closing the loop with a journal

A backtest tells you what should happen. A journal tells you what did. Together they show which of these mistakes you are making. SetupBook computes win rate, profit factor, expectancy and drawdown from your actual fills, tags the cost of each mistake, and lets you tie a backtest session to a setup so you can compare the two directly. The journal is free on every plan; backtest sessions and trade replay are part of Pro.

Frequently asked questions

What is the most common backtesting mistake?

Ignoring costs and perfect fills are the most common, followed by too small a sample. Overfitting is the most damaging because it feels like progress.

How do I know if my backtest is overfitted?

Change the settings slightly. If the results collapse, or if they only work on the data you tuned on, the strategy is fitted to noise.

Is look-ahead bias possible in manual backtesting?

Yes, by peeking at later candles or using hindsight to draw levels. Hide the future and decide before each reveal.

Can software remove these mistakes?

It can remove some, such as the peeking, and automate costs. Honest rules, enough trades and live comparison remain your job.