Chapter 6 · Pass the challengeGuide 36 of 42
Does Backtesting Work? Yes, If It Is Long Enough
Does backtesting work or is it a waste of time? A study on 56,000 backtests: with 30 trades it is almost a coin, with 1,000 it is right 8 times out of 10.
Backtesting works, but as a filter and not as proof, and only if it is long enough. In the study a backtest of 30 trades tells a strategy with an edge from one without 56.8% of the time: little more than a coin. With 1,000 trades it manages 83.7% of the time, with 2,000 89.9%. A short, profitable backtest says almost nothing.
The picture, in three numbers
How the study is built. Two computer-built strategies. The first has no edge at all: it wins 50% of the time and the win equals the loss. The second has a real but small edge: it wins 45% of the time and the win is 1.4 times the loss, that is a long-run profit factor of 1.15. For each length we ran 4,000 backtests of each and asked: looking only at the backtest, can you tell which one it is?
The longer it is, the less it lies
| Trades | No edge: clears the test | Edge: clears the test | Edge: ends at a loss | Right answer |
|---|---|---|---|---|
| 30 | 40.2% | 53.8% | 35.5% | 56.8% |
| 50 | 36.8% | 54.6% | 32.7% | 58.9% |
| 100 | 31.2% | 57.6% | 25.5% | 63.2% |
| 200 | 25.2% | 61.6% | 17% | 68.2% |
| 500 | 14.4% | 67.4% | 7% | 76.5% |
| 1,000 | 6.9% | 74.3% | 2.1% | 83.7% |
| 2,000 | 1.9% | 81.7% | 0.1% | 89.9% |
“Right answer” is the average of the two cases: the strategy with an edge clearing the test and the one without failing it. 50% means flipping a coin.
Read the first row. With 30 trades the strategy with no edge clears the test 40.2% of the time, and the good one ends at a loss 35.5% of the time. The two are almost impossible to tell apart. With 2,000 trades the one with no edge passes 1.9% of the time and the good one almost never ends at a loss. The backtest has not changed: the amount of data has.
Try it: thirty strategies with no edge
Every bar is a strategy that wins at random one time in two: none has an edge. Change how many trades the backtest has.
None has a real edge, yet some look like a good strategy: it is only luck.
“It is profitable” means nothing
It is the most counter-intuitive number in the study. The strategy with no edge at all ends in profit between 48.6% and 50.7% of the time, at every length: 30 trades or 2,000, it is always about one time in two. Making the backtest longer does not remove this effect. Only asking for more does: not “is it above zero?”, but “by how much, and over how many trades?”.
How much the number you read moves
| Trades | Profit factor: from | to | No edge: from | to |
|---|---|---|---|---|
| 30 | 0.6 | 2.08 | 0.54 | 1.82 |
| 50 | 0.7 | 1.83 | 0.61 | 1.59 |
| 100 | 0.82 | 1.59 | 0.71 | 1.39 |
| 200 | 0.91 | 1.46 | 0.78 | 1.26 |
| 500 | 0.98 | 1.33 | 0.86 | 1.16 |
| 1,000 | 1.03 | 1.27 | 0.9 | 1.11 |
| 2,000 | 1.06 | 1.24 | 0.93 | 1.08 |
“From … to …” is the range that holds 90% of the backtests. The rest falls outside.
With 30 trades the same strategy can show you a profit factor of 0.6 or of 2.08: a disaster or a masterpiece, and it is the same one. With 2,000 the range narrows to between 1.06 and 1.24. When someone shows you a profit factor, the first question is over how many trades.
Even a long backtest can lie
Length protects from chance, not from ourselves. If you try ten versions of a strategy and keep the best, you no longer have a backtest: you have the winner of a race. In another study of ours, ten versions of a strategy with no edge at all on FundedNext · CFD Stellar 2-Step: the best of the ten showed a 91.3% probability of passing, against the true 38.7%. It is called overfitting, and it is the most common reason a strategy that is perfect on paper loses live.
Watch on YouTube: Overfitting: 48 monete, una fa 8 teste su 10 ›
The other two limits are simpler. Costs: commissions, spread and slippage are not in the study, and on strategies with a small edge they can eat all of it. The market: a long backtest covers more situations, but it is still the past. No length guarantees the future.
How to use it well
- 1Count the tradesBelow 200 the result is almost all chance. If the strategy takes few trades, lengthen the period or add markets.
- 2Ask for more than profitA coin also gets a result above zero. Look at the profit factor and by how much it beats 1.
- 3Count the versions you triedThe more variants you try, the more the best one is luck. Keep aside a piece of history you have never looked at.
- 4Add the costsReal commissions and slippage, not zero.
- 5Move on to Monte CarloThe backtest is a single story. Reshuffling it shows what could have happened, drawdown included.
Caveat: the study uses computer-built strategies, with no costs, with a small edge (profit factor 1.15). With a bigger edge fewer trades are enough, with a smaller one you need more: the numbers in the tables are an order of magnitude, not a fixed threshold. No backtest guarantees a result.
Load your backtest into the Validator › · The lucky backtest › · Backtesting vs Monte Carlo: the difference ›
Frequently asked questions
Does backtesting work?
Yes, but as a filter, not as proof. And only if it is long enough. In the study a backtest of 30 trades tells a strategy with an edge from one without 56.8% of the time, little more than a coin. With 1,000 trades it manages 83.7% of the time.
How many trades does a backtest need?
It depends on how big the edge is. With a small edge, like the one in the study, below 200 trades the result is almost all chance; from 1,000 up it starts to be reliable. With 100 trades a strategy with no edge at all clears the bar 31.2% of the time.
Does a profitable backtest mean the strategy works?
No. A strategy with no edge at all ends in profit about half of the time, at any length: in the study between 48.6% and 50.7%. The sign of the result says nothing; what counts is by how much it beats zero and over how many trades.
Why does a strategy that is good in the backtest then lose live?
For four reasons, in order of frequency: the backtest was short and the result was luck; many versions were tried and the best one was kept; costs were missing; the market changed. The first two can be measured before risking money.
Is backtesting a waste of time?
No. It is the only way to discard a strategy without paying for it. It becomes a waste of time when it is used to convince yourself instead of to doubt: few trades, many versions, no costs.
Before you buy a challenge, test it.
The Validator runs your strategy on the real rules of every prop and tells you where you would pass. The props, prices and coupons are all on one page.
Educational content, not financial advice. Prop firm challenges are simulated accounts; most traders do not pass them and trading involves risk. Links to props are affiliate links.