Backtest vs forward test: why a strategy should run on demo before it trades
By the PipYard team · 5 min read · Updated
A walk-forward test tells you whether a strategy's rules held up on history they didn't see. It can't tell you whether the strategy will behave the same way when it runs: on your broker's server clock, with live spreads, real fills and a connection that sometimes drops. A forward test on a demo account answers that, without risking money.
What can differ when a strategy runs
- Bar timing. Brokers close H4 and daily bars on their own server clock. A strategy tested on bars aligned to UTC can see a different bar than the one it trades on. In our own checks, some brokers' H4 closes arrived up to three hours later than a UTC-aligned clock expects.
- Spreads and slippage. They widen around news, at the daily rollover and in thin hours, often exactly when signals fire.
- Missed and late signals. A platform restart, a disconnected PC or a slow terminal can skip a signal, or see it after the price has moved.
- Rejections. Minimum stop distances, lot steps and trading hours differ by broker and symbol.
What a good forward test checks
- Every bar is covered. Gaps in what the strategy saw are reported, not silently skipped.
- Every expected signal has an outcome. Traded, skipped by a rule, or missed, with the reason.
- Trades match the backtest. Each signal is compared with what the backtest would have done on the same bar, and with the position the platform actually opened.
- Drift raises an alert. When live results move away from the tested ones, you hear about it while the test is running.
PipYard's demo forward tests work this way on your own MT5 demo account, through the PipYard Connector on the PC or VPS where MT5 runs. A signal seen too late to match the tested entry is recorded as late, not traded.
How long to run one
Long enough for the strategy to trade a meaningful number of times. For an H1 strategy that trades a few times a week, that is usually several weeks; for H4 or daily strategies, longer. A forward test with five trades can reveal execution problems but can't confirm the edge. Decide in advance how many trades you need to see.
The evidence ladder
PipYard labels each strategy version with how much evidence it has, and every label links to the run behind it:
- Untested: no finished test of this version yet.
- Research: walk-forward tested on PipYard's engine.
- Broker-tested: tested on your broker's own history in MT5.
- Demo-observed: run on a demo account and compared with its backtest.
A good backtest is the first rung, not the last.
After the demo
Live trading isn't available in PipYard: strategies run on demo accounts. Use the forward test to decide whether a strategy deserves more of your time, and keep comparing it with its backtest for as long as it runs.
Simulated results. Past performance does not guarantee future results.