Skip to content
Wildflower
Join free
Backtesting by hand

Free Trading School · Level 4 · Course 4.1

Spread and slippage

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

Testing and making it your own · Backtesting by hand

Spread and slippage

Wildflower Trading School · Lesson 4.1.4.3

Wildflower

Fees appear on a statement. Two other costs never do: the spread and slippage. They're built into the prices you actually get. By the end of this lesson, you'll have watched both happen in a made-up order book. You'll know why a hand test that reads prices off candles is a little too kind, and how to add a simple, honest allowance for these costs to every trade.

1 of 7

What you'll learn

  • Read the spread. Market buys fill at the ask, the higher price. Sells fill at the bid.
  • Expect slippage. In fast markets, a fill can land worse than the price you expected.
  • Know candles aren't fills. Candles show traded prices, so a hand test is a little too kind.
  • Set an allowance first. Decide how many ticks worse to count each market fill.
  • Count targets carefully. A target that price only touched isn't always filled.

Exercise

  1. Write a slippage allowance on your rule sheet: how many ticks worse on market entries and stop exits, and how a target counts as filled.
  2. Then redo three trades from your log with it, and note how much each result changes.

Quick check

  1. 1. You buy straight away with a market order. Which price do you pay?

  2. 2. A sell stop at 4,995.00 fills at 4,994.50 in a fast fall. What is the 2-tick difference called?

  3. 3. Why is a hand test that uses candle prices a little too kind?

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 “Putting costs into your log” is waiting next time.

Read the full notes

You rarely get the exact price you see: market orders pay the spread and orders can slip in fast markets, so a hand test adds an allowance for both to every trade.

  • The is the gap between the and the . A to buy pays the ask; to sell, it gets the bid. Made-up numbers: bid 5,000.00, ask 5,000.25, so buying and selling straight away loses one , $1.25 on . In busy markets the spread is often one tick; in quiet or fast markets it can be wider (Spread as a cost).
  • is the gap between the price you expected and the price you got. Made-up numbers: in a fast fall, the bids in the above a sell stop at 4,995.00 vanish, and it fills at 4,994.50, two ticks worse (The order book, Slippage).
  • Candles show prices that traded, not your fill, so a hand test is a little too kind. Market entries and stops pay the spread and can slip; a target touched isn't always filled.
  • Add an allowance before you start and use it throughout. Made-up numbers: 1 tick worse on market entries and stop exits, and a target counts only if price traded through it. Buy 5,019.50 → 5,019.75; stop 5,014.00 → 5,013.75; result −6.00 , not −5.50. More: Slippage and commissions in a backtest

Worked example

Made-up numbers

Monday with an allowance

Made-up numbers, allowance: 1 worse on market entries and stop exits.

  1. Signal: buy at 5,019.50 → counted at 5,019.75
  2. Stop: 5,014.00 → counted at 5,013.75
  3. 5,013.75 − 5,019.75 = −6.00

Half a point worse than the candle prices suggested, before fees.

Your turn

Drill

Made-up numbers · short signal at 5,027.00 · allowance 1 tick worse on a market entry · 1 tick = 0.25

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.