StructureX

Home › Guides › Myths

Do backtests predict results? What past tests can't promise

A strategy that did beautifully on 5 years of past data feels like a sure thing. A backtest is a useful tool. But a test on past charts can only show how rules behaved, and there are a few quiet ways it can mislead.

Beginner guide · 6-minute read · Updated 2026-10-21

The myth

A Backtesting report shows a smooth rising line, a win rate and an average gain. Numbers feel objective. If it worked for 5 years, why wouldn't it work next year?

It's a reasonable question. The report just doesn't show the choices that went into making it.

What's actually true

A test describes the past, nothing more

Markets change. A rule that suited a calm, trending year may struggle in a choppy one. A backtest shows how a rule behaved in conditions that already happened. That's useful evidence. It's not a forecast.

Overfitting: tuning to old noise

If you keep adjusting settings until the past looks perfect, you end up fitting the rule to random wiggles that won't repeat. That's called overfitting.

Example: you test a moving-average rule with every length from 5 to 200 and both exits: 392 versions. You keep the best one. Even if none had a real edge, the best of 392 will often look great by chance. Live, it tends to slide back toward average. That's the math of picking a winner after the fact.

Researchers have studied this closely. Bailey, Borwein, López de Prado and Zhu wrote a paper called "The Probability of Backtest Overfitting" showing how trying many versions raises the odds that the best one is a fluke.

Look-ahead bias: peeking without meaning to

A test that uses information you wouldn't have had at the time will look better than reality. Common examples:

On manual replay, the fix is simple: never peek. See TradingView bar replay.

Missing costs

Many tests ignore spreads, commissions and slippage. On a rule with small targets, costs can flip a positive test negative.

Example in units of risk: a test shows +0.08 units per trade over 300 trades. Real costs are about 0.1 units a trade. After costs: −0.02 units a trade. A math example, not a promise.

6 checks for a more honest test

  1. Write the rules before testing, in plain words, and don't change them mid-test.
  2. Use at least 100 trades. Fewer is mostly luck.
  3. Include costs on every trade.
  4. Split the data. Build on one period, then test once on a later period you haven't looked at.
  5. Never peek on replay. Decide, then press play.
  6. Check the worst stretch, not just the total. How many losses in a row? How deep did it dip? See Drawdown.

Then paper trade it live for a few weeks. If live results look very different, the test was probably too kind.

What to do instead

Common follow-up mistakes

Questions

Are backtests reliable?

They're useful evidence about how rules behaved in the past, not a guarantee. Reliability depends on fixed rules, enough trades, included costs and no look-ahead.

What is overfitting in trading?

It's tuning a strategy's settings until it fits past data almost perfectly, including random noise. Overfit rules tend to behave much worse on new data.

How many trades do you need in a backtest?

More is better. Many traders aim for at least 100 trades, across different market conditions, before drawing conclusions.

Why do my live results differ from my backtest?

Common reasons are missing costs, slippage, look-ahead in the test, changing markets, and emotions live. A split-data test and a paper-trading phase help close the gap.

Want the next step? We'll walk you through it.

Four free lessons by email, one every few days — each with a 10-minute exercise on a real chart.

Send Me the Free Lessons 4 short emails · No spam · Unsubscribe anytime

Or see the whole method, step by step:

See What’s Inside the Course Try everything free first. Decide when you're ready. · Open the free chart tool (works in the TradingView phone app)

One chart idea a day, in plain English. Follow along:

Follow on XFollow on TradingView