Backtesting

Why Forward Testing Matters After Backtesting

How to run a forward test properly: what to measure, how long to run it, how to compare live behaviour with the backtest, and clear rules for when to continue, adjust or stop.

By AlgoXP3 min readUpdated

Backtest followed by a forward test on a demo account

A backtest tells you how rules would have behaved on history you already know. A forward test runs the same rules on prices that did not exist when you designed them, through real servers, spreads and fills. It is the last inexpensive chance to discover that the strategy - or its implementation - is not what the backtest suggested.

What forward testing catches

Implementation errors. The live code is rarely identical to what you think you tested. Typical surprises: wrong symbol settings, server time versus local time, orders rejected for minimum volume or distance, bot behaviour after a restart or a weekend.

Execution costs. Real spreads around rollover and news, slippage on stop orders, partial fills. These eat directly into thin edges.

Hidden look-ahead. If the backtest accidentally used future information, the forward test, which cannot, will show a sharp drop in performance.

Your reactions. Watching real (even demo) losses accumulate is different from reading a report. Many traders discover their true risk tolerance here.

Plan the test before you start

Write down:

  1. Version and settings - exact parameters, symbol, timeframe, risk per trade.
  2. Account - demo, or live with minimal size.
  3. Duration - a date or a minimum number of trades, whichever comes later.
  4. Expected ranges from the backtest - trades per month, win rate, average R, typical drawdown.
  5. Stop rules - what would end the test early (technical errors, drawdown beyond a defined limit).

Without this, it is tempting to stop after a bad week or to declare success after a good one.

What to measure

Keep a simple table and fill it weekly:

Metric Backtest expectation Forward result Comment
Trades per month 10-14 12 OK
Win rate 38-46% 41% OK
Average win / loss 1.9R / 1R 1.8R / 1.05R Slightly worse fills
Avg. slippage per trade 0.2 pips assumed 0.6 pips Investigate
Max drawdown so far up to 12% normal 6% OK

The point is consistency, not profit. A small loss with behaviour inside the expected ranges is a successful test; a profit with half the expected trade frequency is not.

How long is long enough?

Short forward tests are noisy. With 30 trades and a true win rate of 40%, observing anything between roughly 25% and 55% winners is not unusual. Practical guidance:

  • Technical check: a few weeks, to confirm the bot runs correctly through sessions, weekends and restarts.
  • Behavioural check: at least 30-50 trades to compare frequency, costs and win/loss shape.
  • Edge confirmation: many more trades; this is why the forward test does not replace the backtest, it complements it.

Reading the results

Continue when the numbers are inside the backtest’s ranges, costs are close to assumptions, and the bot ran without errors.

Investigate when trade frequency, timing or costs differ clearly from the backtest. Usually the cause is technical: time zones, symbol specs, data differences.

Stop or redesign when the strategy behaves in ways the backtest never showed, or when real costs are larger than the average edge per trade.

Demo, small live, then full size

A sensible ladder:

  1. Demo - confirm logic and frequency at zero cost.
  2. Small live - real execution and real emotions, at a size where mistakes are cheap.
  3. Gradual increase - raise size step by step while results stay inside expectations.

Keep the same version through each step. If you change anything, the ladder starts again for the new version.

Running bots continuously

A forward test needs the strategy running whenever the market is open. On cTrader, a cBot can run as a local instance on your computer or as a cloud instance, which keeps running after you close the app. Local instances can use features that cloud instances may restrict, such as outgoing internet requests for notifications, so check that the environment you forward test in is the one you will trade in.

Key takeaways

  • Forward testing reveals implementation errors, real costs and hidden look-ahead.
  • Plan versions, duration, expected ranges and stop rules before starting.
  • Judge consistency with the backtest, not short-term profit.
  • Move from demo to small live to full size, without changing the strategy along the way.

See also: backtesting vs. forward testing.

FAQ

How long should a forward test run?

Long enough to collect a meaningful number of trades - often 30-50 as a minimum for a first judgement - and to include different market days. For a strategy that trades once a week, that can mean months.

Can I change parameters during a forward test?

Not if you want the test to mean something. A change creates a new strategy version and the count of trades starts again. Write down issues and fix them between test periods.

What if the forward test loses money?

Compare it with the backtest's distribution. A loss that is within the normal range of drawdowns for that number of trades is not a reason to stop. Different trade frequency, much higher costs, or behaviour the backtest never showed are reasons to investigate.

Sources and further reading

  1. cTrader Help: Start a cBot (cloud and local instances) - help.ctrader.com
  2. Bailey et al.: The Probability of Backtest Overfitting - papers.ssrn.com