An honest backtest
A backtest is only worth something if it is true. It is very easy to cheat on one without meaning to, and the only person you fool is yourself. These are the rules that keep it honest.
Never trade a chart you have already seen
If you know what price did next, you cannot trade it honestly. You will find reasons to skip the losers and take the winners, without even noticing you are doing it. That is called bias, and it turns a backtest into fiction.
- Start far back
- Jump straight to your start date without scrolling through the months in between and studying them.
- Only forward
- From the start date you only ever move forwards. You never scroll back to "check something".
- No repeats
- Do not backtest the same stretch of time twice. The second time through, you already know it.
A real student of Rehan's lost 24 trades of work to this. The student had started at the present and was working backwards, and so had seen the price before every trade. All 24 had to be thrown away.
A missed trade stays missed
You will step past a breakout by accident. Everyone does. You were going too fast, or you looked away, and the candle you should have entered on is already two candles back.
You do not go back for it. Live, you cannot rewind the market, so in a backtest you do not either.
- Missed entry: leave it and look for the next one. It does not go in the log.
- Entered by mistake: it stays in the log. You took it, so it counts.
- Wrong level, noticed afterwards: it stays in the log. Learn from it. Do not rewrite it.
There is one question that settles almost every "does this one count?" moment:
If yes, you take it and record it, whatever happens next. If no, you leave it, whatever happens next. And you answer before you see the next candle.
The rules do not change until trade 100
Around trade 20 or 30 you will start noticing things. "Most of my losses are in the first hour." "It always reverses after a huge candle." You will want to add a rule on the spot.
Do not. Write the idea down, and finish the test with the rules you started with.
A test that started with one set of rules and ended with another tells you about neither. Your idea might be a good one. The way to find out is to give it its own 100 trades afterwards, as a separate backtest.
The same goes for gut feeling. In a backtest you will feel sure that a certain trade is going to lose. Take it anyway, if the rules say so.
Honest, or not?
Four things that really happen in the middle of a backtest. Decide for each one.
Situation 1 of 4
That is the real cost of a dishonest backtest. It does not hurt until later, when real money goes into a strategy that only ever worked on paper.
Forward only. Same rules. Everything recorded.
No charts you have already seen, no rewinding, no new rules until trade 100, no deleted trades.