Trading forex and CFDs carries a high level of risk. This site may contain affiliate links.

Compare forex bonuses and broker reviews with the terms in view

No deposit offersDeposit bonusesVerified brokers

FX News Now Your banner here 320 × 100 Advertise with us →
Next level topics · lesson 23 of 24 · 7 min

Backtesting without fooling yourself

How to test an idea on past data and avoid false confidence.

Backtesting means applying clear rules to historical prices to see how they would have performed.

Steps

  1. Write the rules so precisely that another person would take the same trades.
  2. Test over a long period that includes trends, ranges and volatile times.
  3. Include realistic costs: spread, commission, swap and slippage.
  4. Record the results in a spreadsheet: number of trades, win rate, average win and loss, maximum drawdown.

Traps

  • Overfitting (curve fitting): tuning many settings until the past looks perfect. The rule then fails on new data.
  • Too few trades: thirty trades prove little. Aim for hundreds if possible.
  • Hindsight: drawing levels after you already know what happened.
  • Survivorship and cherry-picking: testing only the pairs or periods that looked good.

A better workflow

Develop the rule on one period, then test it unchanged on a different period (out-of-sample), then forward-test on a demo account in real time, then go live small. If results fall apart at any stage, the edge was probably noise.

Key idea: a good-looking backtest is a hypothesis, not proof. Test on data the rules have never seen.

← Trading sessions and currency correl...
Lesson complete.

Next: Where to go next (4 min)

Start the next lesson →
FX News Now Your banner here 728 × 90 Advertise with us →

Education only, not financial advice. Trading forex and CFDs carries a high risk of loss. Only trade money you can afford to lose.

Top brokers