Guide

Forward testing vs backtesting: why a trading bot needs both

Last updated: 3 October 2026

Backtesting and forward testing answer two different questions about the same trading bot. A backtest asks how the rules would have performed on history. A forward test asks how they perform on prices arriving now, with no possibility of peeking at the outcome. A strategy worth trusting passes both, and the gap between the two results is itself one of the most useful numbers you can measure.

The two tests side by side

BacktestingForward testing
DataHistorical candlesLive prices as they arrive
SpeedYears in minutesReal time: days or weeks
Best useRejecting weak ideas quicklyConfirming the survivors
Main riskOverfitting, look-ahead biasToo short a sample
HindsightBuilt in: you know what happenedImpossible: the future is unknown
Money at stakeNoneNone when the balance is virtual

What backtesting is good for

Speed. In an afternoon you can check an idea over several years of bull, bear and sideways markets, throw away the ninety ideas that never worked and keep the ten that might. No forward test can match that, which is why backtesting always comes first. The step-by-step backtesting guide covers the method.

What forward testing adds

  • No hindsight. You cannot tune to prices that have not happened.
  • Real behaviour of the code. Bugs that a backtest hides, such as a signal computed on an unfinished candle, show up as soon as the bot runs on a live feed.
  • Discipline. Watching a bot lose for four days in a row, under fixed limits, tells you more about whether you would keep it running than any equity curve.

Forward testing with a virtual balance is sometimes called demo trading. The principle is the same: live market, no real money.

How long should each test run?

Backtest across several years if your timeframe allows it, covering at least one rise, one fall and one flat stretch. Forward test long enough to see a meaningful number of trades. For a bot that trades a few times a day, a week or two gives a first reading. Slower strategies need longer. On Crypto Robot, level 1 runs between 5 and 10 days, and the next levels continue the test with smaller targets.

Comparing the two results

Expect the forward test to look worse than the backtest. Some gap is normal. What matters is its size and its source.

  • Similar trade frequency, a slightly lower return: healthy. Costs and normal variance explain it.
  • Far more or far fewer trades than the backtest predicted: the code behaves differently on live data. Look for a bug before anything else.
  • Drawdown much deeper than the backtest's worst: the backtest was overfitted or tested on too narrow a period.
  • A single big trade carries all the profit: treat it as luck until it repeats.

A simple workflow

  1. Backtest on 70% of the history, tune, then run once on the remaining 30%.
  2. Note the expected trade frequency, the worst day and the maximum drawdown.
  3. Forward test on live prices with a virtual balance and hard loss limits.
  4. Compare with the numbers from step 2. Investigate any large gap before changing parameters.

Forward testing on Crypto Robot

Crypto Robot is built for step 3. Each bot gets a virtual $10,000 on live crypto prices and must clear three levels:

LevelTargetMin. daysMax. daysMax. drawdownDaily drawdown
Level 1+10%510-10%-5%
Level 2+5%5No limit-10%-5%
Level 3+5%NoneNo limit-10%-5%

Falling 5% in a single day or 10% from the start ends the challenge, which is a strict, objective check against the drawdown your backtest predicted. It is free and asks for no card or deposit.

Frequently asked questions

What is the difference between backtesting and forward testing?

Backtesting runs a strategy on historical data to see how it would have performed. Forward testing runs it on live prices as they arrive, so the outcome cannot be known in advance.

Is forward testing better than backtesting?

Each does a different job. Backtesting quickly rejects weak ideas over years of data; forward testing confirms the survivors without hindsight. A robust strategy needs both.

How long should I forward test a trading bot?

Long enough for a meaningful number of trades. For a bot trading several times a day, one to two weeks gives a first reading; slower strategies need longer.

Can I forward test without risking money?

Yes. Run the bot on live prices with a virtual balance. Crypto Robot gives each bot a virtual $10,000 for free.

Your backtest made a prediction. Check it on live prices.

Start a live test

Related guides