In Backtesting by hand, you put costs into your log: commission, and slippage. Those were your best guess. By the end of this lesson, you'll know why it's worth making them worse on purpose, and how to work out a strategy's result with doubled costs. You'll see why small stops feel costs far more than big ones, and how to find the most cost per trade a test result can take.
1 of 9
What you'll learn
- Raise costs on purpose. Double them and check whether the result still stands.
- Watch small stops. The same cost is a bigger slice of a small stop.
- Find your break-even cost. Divide the gross result by the number of trades.
- Compare it with real costs. Check it against what you spend per trade.
- Write stress levels first. Try more slippage on stops and bigger costs at busy times.
Exercise
- Take a test you've logged and work out the gross result in dollars.
- Divide by the number of trades to find the The price where a trade neither makes nor loses money before fees: its entry price. A stop moved there is called a breakeven stop.More in the glossary cost per trade.
- Then work out the net result twice: with your expected costs, and with double.
- Write all three numbers down.
Quick check
1. Why does a small stop make a strategy more sensitive to costs?
2. A test made $600 gross over 150 trades. What's the break-even cost per trade?
3. A result disappears when costs go up a little. What does that tell you?
0 of 3 answered.
Finished this lesson?
Tick it off and keep your place
Read the full notes
Making costs higher than expected, for example doubling them, shows whether a Running a strategy’s exact rules over past prices to see which trades they would have taken.More in the glossary result still stands if real fills are worse. Small 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 feel it most.
- The costs in a test are an estimate, and real fills are often worse at busy moments. A stress test raises them on purpose, for example doubling them, and checks whether the result still stands. See Spread and slippage.
- Made-up test: 100 trades, 40 wins of 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, 60 losses of −1R, +20R A trade’s result before commissions and fees are taken off.More in the glossary. Costs $3.25 a trade ($2 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 plus 1 The smallest step a price can move. On many stock index futures that’s 0.25 of a point.More in the glossary of The difference between the price you expected and the price your order filled at.More in the glossary, made up). With a 16-tick stop (1R = $20): $400 gross, +$75 A trade’s result after commissions and fees are taken off.More in the glossary, −$250 with costs doubled. With a 40-tick stop (1R = $50): $1,000 gross, +$675 net, +$350 doubled.
- The same cost is a bigger slice of a small stop: $3.25 is about 0.16R when 1R is $20, and 0.07R when 1R is $50.
- Break-even cost per trade = gross result ÷ number of trades: $400 ÷ 100 = $4.00; $1,000 ÷ 100 = $10.00. Compare it with what you really pay.
- Other stress tests: more slippage on stops, bigger costs at the open and around reports, An order that only fills at a price you set or better. The price is promised, but a fill isn’t.More in the glossary that never fill. Write the levels first. It shows how much room there is for costs to be wrong; it can't tell you your real costs or fix a weak edge. More: Slippage and commissions in a backtest.
Worked example
Made-up numbersA 16-tick stop, with costs doubled
Made-up numbers · 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 · 100 trades · 40 wins of +2R, 60 losses of −1R · costs $3.25 a trade
- 1R = 16 × $1.25 = $20. Gross: 20R × $20 = $400
- Expected: $400 − (100 × $3.25) = +$75
- Doubled: $400 − (100 × $6.50) = −$250
- Break-even cost: $400 ÷ 100 = $4.00 a trade
Only 75 cents a trade of room. The same trades with a 40-tick stop (1R = $50) give $1,000 gross and still make +$350 with doubled costs.
Your turn
DrillMade-up numbers · 120 trades · gross result +30R · 1R = $25
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.