Guide · Backtest

Backtest vs forward test: what each one proves

A backtest runs a strategy on past data. A forward test lets it trade on new prices, ones that didn't exist when it was built. You need both.

Backtest: the history

You simulate the robot's rules over years of data. In minutes you know how it would have gone: profit, drawdowns, number of trades.

Its weak spot: the strategy was fitted by looking at those very prices.

Forward test: what comes next

You put the EA to work on a demo account, or live with low risk. Every trade happens with your broker's spread, slippage, trading hours.

It's slow: it takes weeks or months to build up a sample.

What each one proves

  • The backtest tells you whether the idea makes sense across many different markets.
  • The forward test confirms that it survives outside the data it was built on.
  • Comparing them shows whether your account executes it as planned.

How to compare them

Checking whether it wins isn't enough. You have to see whether the robot opens the same trades as its backtest over those dates, with similar results.

If it opens different ones, execution is failing. When they match but the result is worse, costs are to blame.

An example with numbers

The backtest shows 40 trades in three months, with $2,000 in profit risking $100 on each one.

On demo, the robot opens 37 of those 40; it makes $1,500. The signals match; it gives up a quarter to costs.

Had it opened 15, the problem would be a different one: server time, different data or a filter.

How much forward testing you need

It depends on how often it trades. A robot that trades daily collects 30 trades in a month and a half; one that opens a trade a week needs more than seven months. How many you need.

Demo or live with low risk

A demo costs nothing, but its execution is kinder: no real slippage, sometimes a different spread. A live account at minimum lot size shows the true costs.

The usual approach is to start on demo. The strategies that hold up then move to live with reduced risk.

When to call the forward test done

  • The sample is big enough.
  • The signals match the backtest's.
  • The result falls within what you'd expect.
  • The drawdown doesn't exceed its historical one.

Common mistakes

  • Accepting a backtest without a forward test.
  • Judging the forward test on ten trades.
  • Comparing by eye, without putting both at the same risk.

Frequently asked questions

What is the difference between backtesting and forward testing?

A backtest simulates the strategy on past data. A forward test runs it on new prices, on demo or live, to see whether its results hold up.

What is forward testing in trading?

Letting a finished strategy trade on data that didn't exist when it was built. It checks that the backtest wasn't just a fit to the past.

How long should a forward test last?

As long as the robot takes to build a sufficient sample, often 30 to 100 trades. With an EA that trades rarely, that can mean many months.

Put your robots in orbit.

Try it free

Sign up in a minute, no card required.