tradingbacktest.live Log inStart free
Guide / Tips

Ten habits that keep a backtest honest

Practical rules to avoid curve fitting, so the strategy you test is the strategy you will trade.

A backtest is only useful if it says something about the future. These habits catch most of the ways it can mislead.

  1. Write the idea before testing it. One sentence on why the market should behave this way. If you cannot write it, the result is probably luck.
  2. Few conditions, each with a clear role. One for the context (trend, range), one for the timing, one for the exit. Every extra condition must earn its place.
  3. Change one thing at a time. Compare the tests side by side and keep a short note of what changed.
  4. Prefer flat regions to peaks. If a stop of 1.5 ATR works but 1.3 and 1.7 do not, you found noise. Good settings sit in a neighbourhood of settings that also work.
  5. Keep data aside. Build on 2018 to 2022, then test once on 2023 to today without changing anything.
  6. Test other markets. An idea about how prices behave should work, at least a little, on similar markets.
  7. Count the trades. Fewer than about 100 trades is a hint, not a proof.
  8. Always include costs. Test with the profile of your real broker, and check how the result changes with a slightly wider spread.
  9. Look at the bad case. Plan for the Monte Carlo drawdown at the 95th percentile, not the one of the backtest.
  10. Use stress tests. If latency of a few seconds or small changes of settings destroy the result, the edge is too thin to trade.

Try it on real dataBuild the strategy with blocks and test it on real ticks with spreads, commissions and swaps. The free plan needs no card.

Start free