Sooner or later, you'll want to change a rule and see if the change makes a difference. That means comparing two versions of the same rules. By the end, you'll know what makes a comparison fair, and how to lay two versions side by side using the numbers from this course. You'll also see why 20 trades can't settle which one is better.
1 of 7
What you'll learn
- Change one rule at a time. Give the new version its own number and date.
- Match the test. Same dates, market, costs and counting rules for both versions.
- Pick your numbers first. Choose what you'll compare before you look.
- Lay them side by side. One version may make more while the other falls less.
- Allow for chance. A small gap over few trades, or many versions, can be luck.
Exercise
- Pick one rule in your strategy sheet to change.
- Before testing, write down the dates, the costs, the counting rules and the numbers you'll compare.
- Then test both versions on those same dates.
Quick check
1. Version 2 was tested on a different month from version 1. What is the problem?
2. Why choose the numbers you'll compare before seeing the results?
3. Two versions are $50 apart after 20 trades. What can you say?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
To compare two versions of a strategy fairly, change one rule and test both on the same dates, market and costs, with the same counting rules and the numbers to compare chosen in advance. Even then, a small difference over few trades may be chance.
- Change one rule at a time and give the new version its own number and date (A one-page strategy sheet).
- Match: the same dates and market, the same costs, the same counting rules (wins, A trade that closes at or very near the entry price, so it neither wins nor loses much. Once fees are taken off, a scratch can end as a small loss.More in the glossary, a 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 touching both 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 and An exit order that closes a trade when price reaches a level you choose in your favour.More in the glossary), and the numbers to compare chosen before you look.
- Lay them side by side: The percentage of trades that made money. It doesn't show how big the wins or losses were.More in the glossary, net total and The average result per trade over a list of trades: the total divided by the number of trades. It describes past trades, not the next one.More in the glossary, Everything a list of trades won, divided by everything it lost. Above 1, more was won than lost.More in the glossary, The biggest fall from a high point in an account’s balance over a test or a stretch of trading.More in the glossary, longest A row of losing trades one after another, with no win between them.More in the glossary.
- One version can make more while the other falls less. Which matters more is a question about you.
- Is it real? A small difference over few trades can be chance (Real pattern or random result). Testing many versions on the same dates makes a chance winner more likely (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; see In-sample and out-of-sample testing).
Worked example
Made-up numbersVersion 1 against version 2
Made-up numbers · same 20 dates · costs $5 a trade · version 2 has full wins of $150, and trade 10 becomes a +$150 win
- Win rate: 8 ÷ 20 = 40% against 9 ÷ 20 = 45%
- Net total: $360 − $100 = $260 against $310 − $100 = $210
- Net expectancy: $13 against $10.50
- Net profit factor: $1,400 ÷ $1,140 = 1.23 against $1,245 ÷ $1,035 = 1.20
- Net maximum drawdown: $485 against $235 · longest losing run 5 against 2
Version 1 made $50 more; version 2 fell $250 less. Over 20 trades, the difference may be chance.
Your turn
DrillMade-up numbers · version 2 · net total $210 over 20 trades
The course log (made-up numbers)
Every lesson in this course measures the same 20 made-up trades from a hand Running a strategy’s exact rules over past prices to see which trades they would have taken.More in the glossary on the A small futures contract on the S&P 500, traded at CME Group. Each point is worth $5, and its smallest step of 0.25 is worth $1.25.More in the glossary, stepped through with 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 on TradingView (other platforms have replay tools too). Each trade risked $100, written as 1R (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). The rules had a 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 at 1R, a An exit order that closes a trade when price reaches a level you choose in your favour.More in the glossary at 2R and a A rule that closes a trade if it hasn’t done what it was meant to within a set time, such as a number of candles, whatever the price is.More in the glossary, so results are +$200, −$100, or something between when the time exit closed a trade first.
In order, before costs: +200, −100, −100, +200, +120, −100, +200, −100, −60, −100, −100, −100, +200, −60, +200, +120, −100, +200, −60, −100. Costs, used from Gross and net results on: a made-up $5 a trade.
Trading is risky. You can lose money. The trades here are made up, and this lesson explains how results are measured. It isn't advice.