Backtest vs Forward Test vs Demo Test: What Each Proves
A backtest, a forward test and a demo test answer three different questions, and mixing them up is how traders end up trusting a number that was never evidence. This article explains what each one proves, what it cannot, and the order to run them in.
Key takeaways
- A backtest shows how rules behaved on data that already existed; a forward test shows how they behave on data that did not exist when you wrote them.
- A demo forward test uses live prices but simulated execution, so it cannot show you real fills.
- Freeze the rules and decide the number of trades before you start, or the forward test quietly becomes another backtest.
- None of the three proves the next trade will win, and a demo account proves less than trading real money does.
In this article
- Three tests, three different questions
- Backtest: fast, cheap, and easy to fool yourself with
- Forward test: data that did not exist when you wrote the rules
- Demo test: live prices, simulated fills
- What regulators say about demo accounts and prop firms
- A worked example: comparing the numbers honestly
- The order that makes sense
- What to check before you move to the next stage
Three tests, three different questions
The words get used interchangeably, but they are not the same exercise. A backtest replays history. A forward test runs your rules on prices that arrive after you wrote them. A demo account is the usual place to run a forward test, using virtual money and the broker's simulated execution.
| Test | Data it uses | What it can show | What it cannot show |
|---|---|---|---|
| Backtest | Historical prices, replayed by you or by software | How the rules behaved on that sample, quickly, across a lot of history | Whether you chose the rules because of that sample; real fills; how you handle a losing run |
| Forward test on demo | Live prices as they arrive, virtual money | Whether the result holds on data the rules never saw; behaviour with your broker's spread and platform | Live fills, because demo execution is the broker's own simulation; the pressure of real money |
| Live test at minimum size | Live prices, real money | True execution: slippage, requotes, spreads that widen around news, the swap you actually pay, and your own nerves | That the next trade will win |
Read the table left to right and the logic is obvious: each column costs more time and more money than the one before it, and each one answers a question the previous one could not.
Backtest: fast, cheap, and easy to fool yourself with
A backtest uses historical data to estimate how effective a strategy might have been, without real-time execution or financial risk. That is genuinely useful for throwing out bad ideas in an afternoon.
The trap is selection. If you test twenty parameter sets and keep the best one, the performance of that best set systematically overstates its genuine performance. This is called data-mining bias, and it is not a bug in your software β it is a property of searching.
One common approach is to split the history. The data you optimise on is the in-sample segment; data you reserve and never touch during optimisation is out-of-sample. One documented method divides the history into thirds and holds one third back for out-of-sample testing. If in-sample and out-of-sample results barely correlate, the system has likely been over-optimised and will not behave the same in live trading. If they correlate well, forward testing is the next step.
One practical caveat, put plainly in Karnek's guide to forward testing: a backtest 'flatters almost everything: you often get a fixed spread, instant fills and no missed ticks.' Treat a backtest as a filter for bad ideas, not as a forecast.
Forward test: data that did not exist when you wrote the rules
A forward test β also called paper trading β simulates actual trading by following the system's logic in a live market. Trades are recorded on paper only, with entries, exits and any profit or loss documented, but nothing real is executed.
Its value is that the data is untainted. You cannot re-run it a hundred times with different settings until one looks perfect, because it happens once, in order, on prices nobody had seen. That is the whole point.
Three things make the difference between a real forward test and a slow backtest:
- Freeze the rules before you start. No tweaking mid-test. If you change a parameter partway through, the result no longer describes the same system you backtested, so it cannot be compared with the backtest.
- Decide the number of trades in advance. Pick the count before you see the result, so you cannot stop early on a good run or keep going to rescue a bad one.
- Compare the same figures you measured in the backtest β expectancy after costs, win rate, and the deepest dip in equity. Different metrics on each side make the comparison meaningless.
On the last of those, what drawdown actually measures is worth reading before you decide a forward result is 'close enough' to the backtest.
Demo test: live prices, simulated fills
A demo account is the usual place to run a forward test. It uses live market prices and virtual money, and it catches things a backtest smooths over: real spreads, real news spikes and real gaps.
What it does not catch is execution. Demo servers usually fill at the price asked, with no slippage and no rejections. Your backtest assumed a fill; your demo assumed a fill; the live market may not give you one.
One trader's published forward-test log makes the point in both directions. The source describes the run as taking place on a demo or small live account, and across the first eight market orders the worst slippage against them was 0.1 pips, with the average fill on the favourable side β and the source itself notes that eight orders is a small sample. That is the right way to read execution data: as a measurement with an error bar, not a verdict.
Keep the two halves of that separate. A forward test uses live prices as they arrive, so real spreads, real news spikes and real gaps do show up in the results β that is the general claim the source makes about forward tests. But demo execution is the broker's own simulation, so it still cannot show you what you would actually have been filled at.
What regulators say about demo accounts and prop firms
A demo account proves less than trading with money can, and regulators have had things to say about the demo-and-challenge space. None of it is a comment on any specific EA.
The Czech National Bank has stated that simulated trading on a demo account with fictitious funds, with no real orders or settlement, is not an investment service and does not require central bank authorisation. That is a statement about licensing and authorisation, not about safety.
Separately, there is research on how demo modes of trading apps are presented. The UK financial regulator requires CFD trading apps to display disclosures such as '89% of retail investor accounts lose money when trading CFDs with this provider'. An audit of the demo modes of the 14 most-popular CFD trading apps in the UK found that 31.6% of risk warnings did not comply with the regulator's standards, and that only 35.7% of apps contained risk warnings within the app's main tabs. That study covers UK CFD apps and nothing else β it is not a study of EA demo accounts β but it makes one narrow point worth carrying across: a demo screen is a designed interface, not a neutral one.
If your forward test is really a prop firm challenge, there is another layer. The Belgian FSMA has warned the public about the risks associated with prop trading firms offering consumers a shadow investment game, and states that prop trading companies hold no authorisation and are therefore not allowed to provide investment services. Italy's Consob has reported that the trading challenge is designed in such a way that it is not easily overcome, that difficulty may increase with further outlays, and that savers who paid for courses or information services have not been paid any economic benefit by the firms. Rules vary by firm and by jurisdiction, so check the one you are considering.
A worked example: comparing the numbers honestly
Every figure below is invented. None of it is a result from any product, and none of it is a forecast. The point is only the arithmetic.
Suppose a backtest of an XAUUSD EA over three years shows 500 trades, a 45% win rate, an average win of $95 and an average loss of $70. Both averages are gross β before costs. Gross expectancy per trade is:
(0.45 Γ $95) β (0.55 Γ $70) = $42.75 β $38.50 = $4.25
Now subtract costs. If spread and commission come to $3.50 per round trip at the lot size tested, net expectancy is $0.75 per trade. That is the number to carry into the forward test β not $4.25.
Now the forward test. After 40 trades, the average win is $90, the average loss $72, and the win rate 40%. Those two averages are also gross, so the same $3.50 per trade comes off afterwards:
(0.40 Γ $90) β (0.60 Γ $72) = $36.00 β $43.20 = β$7.20 gross
β$7.20 β $3.50 = β$10.70 net per trade
Over those 40 trades that is 16 wins and 24 losses: $1,440 in wins against $1,728 in losses, a gross figure of β$288, and β$428 once the 40 Γ $3.50 = $140 of costs is included. Is the system broken? Not necessarily. Forty trades is far too few to tell, and a handful of outcomes swings the total hard. Had three of those losses closed as wins at $90 instead, the tally would be 19 wins and 21 losses β $1,710 against $1,512, a gross figure of +$198, or +$58 after the same $140 of costs. Same rules, same market, opposite conclusion, from three trades.
The lesson is not that the EA failed. It is that you cannot compare a 500-trade backtest with a 40-trade forward test and draw a conclusion. Decide the trade count in advance, and make it large enough that the comparison can actually say something.
The order that makes sense
One recommended sequence, set out by Karnek, is:
- Backtest first, to discard ideas that never worked.
- Demo forward test on live prices for weeks, on the broker and symbols you actually intend to use β not a generic account on a different server.
- Small live test at the minimum size you can trade, once the demo holds up, to see real execution.
- Scale slowly, and only after live results match expectations across enough trades to mean something.
Step three is the one people skip, and it is the only one that shows slippage, requotes, news spreads, the swap you actually pay, and how you behave when the money is real. If you are testing an EA such as Gold Rush Algo, this is the same sequence you would apply to any system β the product does not change the method.
Before you size up, run your numbers through the Risk of Ruin Simulator and read the position sizing guide. A hypothetical illustration of why size matters, with invented numbers: a gold system using a $5 per ounce stop loses $5 per trade at 0.01 lots (1 ounce) and $250 per trade at 0.50 lots (50 ounces). Ten consecutive losses β a losing streak of that length is possible with any system β is $50 on the small size and $2,500 on the large one. On a $10,000 account that is 0.5% versus 25% of the balance, from identical rules and identical trades.
What to check before you move to the next stage
A short checklist to run at each handover:
- Rules frozen? If you changed anything during the forward test, the result belongs to a different system.
- Trade count decided in advance? Write it down before you start, and write down the metrics you will compare.
- Same broker, same symbols? Spreads and swap differ between brokers and account types. A forward test on the wrong server tests the wrong thing.
- Costs included on both sides? Expectancy after spread and commission, not before.
- Sample big enough? If a few trades can flip the sign of your forward result, you have not learned anything yet.
- Drawdown compared, not just profit? The deepest dip in the forward test is the figure that decides whether you can actually sit through it.
- Prop rules checked? If a challenge is involved, confirm the firm's EA rules and loss limits first β the Prop Firm Calculator can help you work through the numbers, and how prop firm challenges work covers the structure.
None of these steps guarantees anything. What they do is stop you from paying real money to discover something a demo would have told you for free.
Frequently asked questions
How long should a forward test run?
There is no universal number. The practical approach is to decide the trade count before you start and to run it for weeks on the broker and symbols you actually intend to use. A handful of trades tells you almost nothing.
Can a demo account show slippage?
Usually not. Demo servers typically fill at the price asked, with no slippage and no rejections, so demo results tend to look cleaner than live ones. Only a small live test shows real fills.
Does a good forward test mean an EA will work?
No. A forward test shows how the rules behaved on data they had not seen. It does not prove the next trade will win, and it does not reproduce the pressure of trading real money.
Is a demo test enough before a prop firm challenge?
A demo pass is not the same as a live pass, because execution and psychology differ. Check the firm's EA rules and loss limits first, and be aware that the Belgian FSMA and Italy's Consob have issued warnings about prop firm business models.
Free tools mentioned in this article
Related guides: What is drawdown?, Position sizing guide, How prop firm challenges work.
Sources
- Backtest, Forward Test and Demo: What Each Proves – Trepeat
- Backtesting in Trading: Definition, Benefits, and Limitations – Investopedia
- Backtesting and Forward Testing: The Importance of Correlation – Investopedia
- Trend-Following: Testing the Profitability of Trading Rules (Part 6) – Alpha Architect
- Forward Testing vs Demo Testing – Karnek
- The Difference Between Backtesting and Forward Testing – MQL5 Traders' Blogs
- The FSMA warns consumers against shadow investment game – FSMA
- K simulovanΓ©mu obchodovΓ‘nΓ na demo ΓΊΔtu – Czech National Bank
- Trading is a losing game: an audit of deceptive choice architecture in demo-mode CFD trading apps – Behavioural Public Policy, Cambridge Core
- Funded trading - prop firms warning – IOSCO / Consob
Sources checked on 9 November 2026. Rules and figures from third parties can change, so check the original before relying on them.
More from the blog
Want to test an EA on your own platform?
Gold Rush Algo is an MT5 Expert Advisor for XAUUSD. Download the free backtest version and judge it with your own numbers before deciding anything.
