Skip to content
Wildflower
Join free
Backtesting by hand

Free Trading School · Level 4 · Course 4.1

Putting costs into your log

Lesson 17 of 21 in Backtesting by handModule 4: How many trades, and what they cost

Testing and making it your own · Backtesting by hand

Putting costs into your log

Wildflower Trading School · Lesson 4.1.4.4

Wildflower

You've met all three costs: fees, the spread and slippage. Now they go into your log, in their own columns, so every result is shown before costs and after them. By the end of this lesson, you'll have a cost column, a net result column and a net R column. And you'll see why the same costs barely touch some strategies and swamp others.

1 of 8

What you'll learn

  • Turn costs into one figure. Add fees and a slippage allowance for each trade.
  • Add cost columns. Cost, Net and Net R show each result after costs.
  • Compare before and after costs. A small result before costs can vanish after them.
  • Watch small targets. Tight stops are hit hardest by costs in R.
  • Find the break-even win rate. See how many wins in 100 you need after costs.

Exercise

  1. Add Cost, Net and Net R columns to your trade log, using your own fee figure and slippage allowance.
  2. Total Points, Cost and Net.
  3. Write down how much of the before-cost result the costs took, and which trades were hit hardest in R.

Quick check

  1. 1. A trade made +7.00 points and its costs were 0.61 points. What is the net result?

  2. 2. Two trades pay the same costs. Which is hit harder in R?

  3. 3. Why put the cost in a formula, not type it in each row?

0 of 3 answered.

Finished this lesson?

Tick it off and keep your place

Make a free account and we'll remember where you are, so “Your first full hand backtest” is waiting next time.

Read the full notes

Putting costs into a backtest log means a cost column for fees and slippage on every trade, then net points and net R, which shows how costs shrink small-target strategies most.

  • Turn costs into one figure per trade. Made-up numbers on : 0.36 every trade, plus a allowance of 1 (0.25) per market fill. A stop or time exit costs 0.36 + 0.50 = 0.86; a target exit 0.36 + 0.25 = 0.61.
  • Add three columns: Cost, =IF(B2="None",0,0.36+IF(C2="Target",0.25,0.5)); Net, =D2-F2; Net R, =G2/E2, left empty on no-trade rows.
  • Made-up numbers, the week: +3.00 points before costs (), costs 3.19, so −0.19 after costs (). Tuesday's small stop made it the hardest hit in R: −1.31R against Monday's −1.16R.
  • Small targets feel costs most. Made-up numbers, 50 wins in 100 trades, target = stop: a 1-point stop gives −73.5R after costs, a 10-point stop −7.35R. To break even after costs () they'd need about 83 and about 54 wins in 100.
  • More: Slippage and commissions in a backtest

Worked examples

Made-up numbers

The made-up week after costs

Made-up numbers, . Costs: 0.86 for a stop or time exit, 0.61 for a target exit.

  1. Mon: −5.50 − 0.86 = −6.36 (−1.16R)
  2. Tue: −2.75 − 0.86 = −3.61 (−1.31R)
  3. Wed: +7.00 − 0.61 = +6.39 (+1.50R)
  4. Thu: no trade, 0
  5. Fri: +4.25 − 0.86 = +3.39 (+0.90R)

Before costs +3.00 points; costs 3.19; after costs −0.19 points.

Why a 1-point target needs about 83 wins in 100

Made-up numbers: win +0.39R, loss −1.86R after costs.

  1. Break even when wins × 0.39 = losses × 1.86
  2. With w wins in 100: 0.39w = 1.86(100 − w)
  3. 2.25w = 186, so w = 186 ÷ 2.25 = 82.7

About 83 wins in 100 just to stand still, against about 54 for a 10-point stop and target.

Your turn

Drill

Made-up numbers · a trade lost 4.00 points at its stop · cost 0.86 points

Trading is risky. You can lose money. This lesson explains how testing works. It isn't advice, and a test can't tell you what will happen next.