In Measuring results, you learned to read the numbers a test produces: the total, the average trade, the drawdown. This course asks a harder question: should you believe them? By the end of this lesson, you'll know why a test can flatter a strategy even when nobody means to cheat. You'll also know the four main ways it happens, and the one habit that guards against all of them.
1 of 8
What you'll learn
- Spot hope in your test. Small calls in a test tend to lean towards the result you want.
- Watch what you remove. Choices made after the result tend to drop only losses.
- Name the four families. They are looking ahead, picking, fitting and trusting too little.
- Write a test plan first. Set market, dates, rules, costs and odd days before you look.
- Log every signal. If the rules change, start the test again.
Exercise
- Open the rule sheet from one of the Test it yourself lessons in The strategy library.
- Before you replay anything, write a short test plan: the market, the timeframe, the exact dates, the costs per trade, what counts as a signal, and what you'll do on report days.
Quick check
1. Why can an honest person still end up with a flattering test?
2. A test plan says nothing about report days. Halfway through, you skip the losing report days. What's the problem?
3. What does bar replay protect you from?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
A test can flatter a strategy without anyone cheating, because the many small calls in a test tend to lean towards the result you hope for. Writing the test's rules before you look guards against it.
- Most people who fool themselves with a Running a strategy’s exact rules over past prices to see which trades they would have taken.More in the glossary are honest. A test is full of small calls, and the hope that a strategy works quietly picks the friendlier answer each time.
- In a made-up 40-trade test (wins +2R, losses −1R), skipping 4 report-day losses and 2 messy losses lifts the total from +2R to +8R. Every choice was made after seeing the result, and every one removed a loss. Results are in A result measured in units of the amount at risk. If a trade risks 4 points, 1R is 4 points and a 6-point gain is +1.5R.More in the glossary, as in Measuring results in risk units.
- Four families: looking ahead (A backtest mistake: using a price the strategy couldn’t have known yet at the moment it made its decision.More in the glossary), picking (Showing only the results that look best, such as one strategy out of many tested or one good month, and leaving the rest out.More in the glossary, Testing only on markets or companies that still exist today, leaving out the ones that closed or failed, which can make results look better.More in the glossary and selection), fitting (Tuning a strategy’s rules so closely to one stretch of past prices that they describe that stretch’s quirks more than anything that carries on.More in the glossary) and trusting too little (one test, one stretch, one order).
- Feeling that something was clear all along once you know how it turned out. On charts, it makes patterns look easier to spot than they were at the time.More in the glossary makes finished charts look obvious. A chart feature that hides the candles after a point you choose, then shows them again one at a time, so you can practise on past prices without seeing ahead.More in the glossary hides the next One bar on a price chart. It shows where price opened and closed, and the highest and lowest it reached, in one stretch of time.More in the glossary, but not the choices you make about dates, skipped days and versions.
- The habit: write the market, timeframe, dates, rules, costs, what counts as a signal and what happens on odd days before you test. Then log every signal. If the rules change, start again.
Worked example
Made-up numbersSmall choices, big difference
Made-up numbers · 40 trades · wins +2R, losses −1R
- Every signal counted: 14 wins and 26 losses. 14 × 2R = 28R, 26 × 1R = 26R, total +2R
- Skip 4 report-day losses the rules never mentioned
- Call 2 messy losses "not a real signal"
- 34 trades: 28R − 20R = +8R
Four times the total from the same chart. All six removed trades were losses, chosen after the result was known.
Your turn
DrillMade-up numbers · 20 trades · 7 wins at +2R · 13 losses at −1R · then 3 of the losses are skipped
A test plan, written first
- The market, the How much time each candle covers, such as 1 minute or 1 hour.More in the glossary and the exact dates
- The rules: entry, An order that closes a trade if price reaches a level you set against it. It aims to limit the loss, but in a fast market it can fill at a worse price.More in the glossary, An exit order that closes a trade when price reaches a level you choose in your favour.More in the glossary and the costs per trade (What your broker and the exchange charge for each contract you trade, often quoted per contract for the round trip: in and out.More in the glossary and The difference between the price you expected and the price your order filled at.More in the glossary)
- What counts as a signal, clearly enough that it isn't a judgement call later
- What happens on odd days, such as reports on the A list of upcoming economic reports and announcements, with the date and time each one is published.More in the glossary, half days and missing data
- Then log every signal. See Staying honest while you test
Trading is risky. You can lose money. Test results are hypothetical, and a good test doesn't mean future profits. This lesson explains how testing works. It isn't advice.