How to backtest a trading strategy (without fooling yourself)

A step-by-step way to backtest a forex or gold strategy by hand: write the rules, replay real charts, journal every trade, and read the results honestly.

Candleben team

22 November 2026 · 2 min read

A Candleben performance page showing a week of practice trades with win rate by session

Key takeaways

  • Write every rule down before you start.
  • Replay one candle at a time, so hindsight can't help you.
  • Test 30 to 100 trades and judge by expectancy, not win rate.

Backtesting means trading your strategy on past charts to see how it would have done, before you risk real money. Done well, it tells you whether your idea has an edge. Done badly, it tells you what you want to hear. Here's how to do it well.

1. Write the rules down first

If a rule isn't written, you'll bend it during the test. Write exactly:

  • The market and timeframe, for example EUR/USD on the 15-minute chart.
  • When you enter: the exact setup, not "when it looks good".
  • Where the stop goes, and where you take profit.
  • How much you risk on each trade, say 1%.
  • When you don't trade: sessions, news, days of the week.

2. Replay the chart one candle at a time

The biggest trap in backtesting is hindsight: when you can see the whole chart, every setup that worked jumps out and the failures fade. Hide the future and move forward one candle at a time, deciding as if it were live. A market replay tool does this for you. On Candleben you pick a date, press Play, and trade as the candles appear.

A USD/JPY 15-minute chart in Candleben replay with the play controls at the bottom
Replay hides everything to the right of the current candle, so hindsight can't help you.

3. Record every trade

Write down every trade the rules produce, especially the losers you'd rather skip: entry, stop, target, result, and a line on why you took it. A trading journal does this automatically, and later shows you patterns like your win rate by session or how trades you closed early compared with ones that hit the target.

The Your week card: 8 trades, 63% win rate, and 100% of trades won in New York against 25% in London
The journal turns your trades into patterns, like which session you actually win in.

4. Get a real sample

Ten trades prove nothing: a coin flip can win seven out of ten. Aim for at least 30 trades, and 100 before you trust the numbers, across different market conditions such as trends, ranges and news weeks.

5. Read the results honestly

NumberWhat it tells you
Win rateHow often you win. Means little on its own.
Average win ÷ average loss (R)How much you make when right compared with when wrong.
Break-even win rate1 ÷ (1 + R). At 2R you only need to win 33% to break even.
ExpectancyAverage result per trade. Above zero is an edge.
Largest drawdownThe worst run from a peak. Can you, or a prop firm, live with it?

A 40% win rate with 2R winners makes money. A 70% win rate where losses are three times the wins loses money. Judge a strategy by expectancy, not win rate.

Mistakes that ruin a backtest

  • Changing the rules halfway because of a losing run. Finish the test, then adjust and test again.
  • Testing only the good months. Use random dates, not the ones you remember.
  • Ignoring spread and costs. They turn small edges into losses.
  • Too few trades. See step 4.

After the backtest

If the numbers hold up over 100 trades, forward-test: trade it on a demo or a practice challenge for a few weeks before real money. If you're aiming for a prop firm, run their rules on replay first: our guides to FTMO and FundedNext explain what to watch.

Backtest on real market history

Replay candle by candle with the future hidden, trade with real spreads, and get your win rate, expectancy and drawdown in the journal. Free to start.

Start backtesting

Questions people ask

How many trades do I need to backtest?

At least 30 to see a pattern, and about 100 before trusting the numbers, across different market conditions.

Is manual backtesting better than automated?

Manual backtesting, replaying candle by candle, suits discretionary strategies that are hard to code, and it trains your eye. Automated testing suits strategies with exact, codeable rules.

What is a good win rate for a strategy?

It depends on your reward-to-risk. With 2R winners you break even at 33%, so 40% is profitable. Judge by expectancy, the average result per trade, not win rate alone.

Found this useful? Share it with a trader friend.

For education only, not financial advice. Trading carries a risk of loss. Prop firm rules change: check the firm's own site before you buy a challenge.

Keep reading