So far: An order bigger than the best level walks the book, taking each price in turn, and the further it walks the more it pays over the best quote: its slippage (lesson 5).
Walking the book costs the buyer, and it leaves the price higher for whoever comes next. How far a big order moves the price, and how much of the move comes back once the book refills, can be measured from trades alone.
The peak, and what stays
Send 60 units into lesson 5's thick book and the order walks eight levels. Afterwards the best ask is 100.07 and the best bid still 99.99, so the mid has jumped from 99.995 to 100.03. That jump is the peak of the order's impact.
Then the makers come back. New asks appear below 100.07, new bids above 99.99, and the spread narrows again. Where the mid settles depends on what the makers conclude from the order. Someone just bought 60 units in a hurry. Maybe they knew something. Makers can't tell, so they shade their prices up a little: in this toy, a quarter of a tick for every 10 units bought.
Send the order and watch. The book is on the left, asks above and bids below, with outlines where your order took. The chart follows the mid for 30 seconds.
Set an order size and how fast makers refill, then send it. Watch how far the mid jumps, and how much of the jump is still there 30 seconds later.
Nothing sent yet. The best bid is 99.99 and the best ask 100.00. Send 60 units and watch the mid for 30 seconds.
With the figure's starting settings, 60 units lift the mid 3.5 basis points. Makers refill, and it slides back to 1.5 above where it started, and stays there. The 2 basis points that came back are the temporary impact: the cost of emptying the book, paid by the buyer and gone once the book refills. The 1.5 that stayed is the permanent impact, a change in what everyone thinks the price is.
Slow the makers down and something else shows. If they close half the gap every 20 seconds, the same order still shows 2.2 basis points after 30 seconds, of which only 1.5 will stay. Measured then, more of the move looks permanent than really is. How much of a move stays depends on when you look, and every measure of it has to pick a moment.
The maths
With the mid at m0 before the order and m1 at its peak, a permanent rise P, and makers closing half the gap every h seconds, the mid t seconds after the order has filled is:
mid(t) = m0 + P + (m1 − m0 − P) · 2^(−t / h)
In the toy, P is 0.025 ticks for every unit bought.
One slope for a market
You rarely see one big order on its own. You see thousands of trades of every size, buys and sells mixed, each moving the price a little. Albert Kyle's 1985 model of trading gives a way to read them together. In it, makers move the price by a fixed amount for every unit bought or sold in a hurry. Plot each trade's size against the move that came with it, and the slope of the line through the dots is that amount. It is called Kyle's lambda.
The figure plots 120 toy trades. Each dot is one: its size across, counted plus for a buy and minus for a sell, and the move that came with it up the side. Make the book thinner or thicker.
Make the book thinner or thicker. Watch every trade's move grow or shrink, and the line's slope with them.
- Kyle's lambda
- 0.053 bps
- A 10-unit buy moves it
- 0.53 bps
- Amihud, per 10,000 coins
- 0.91 bps
With 10 units at each level, every unit traded comes with 0.053 bps of move. Thin the book and the line steepens; thicken it and the line flattens.
With 10 units at every level, the slope is 0.053 basis points per unit: a 10-unit buy comes with about half a basis point. Halve the depth to 5 and the slope doubles, to 0.106. Quadruple it to 40 and the slope falls to 0.013. A steep line means a thin market, where every unit traded pushes the price further.
Yakov Amihud proposed a coarser measure in 2002, for stocks, a day at a time: take how far the price moved over the period, whichever way, and divide by how much traded. Amihud illiquidity needs nothing but prices and volume. On the toy it reads the same way as the slope: 0.91 basis points for every 10,000 coins traded with 10 units at each level, twice that with 5. Its blind spot is a period where buyers and sellers cancel out. The price barely moves over it, so it looks liquid however thin the book is.
The maths
For trades with prices p and sizes q, counted plus for a taker buy and minus for a taker sell, each trade's return is r = p / p_before − 1, and:
Kyle's lambda = covariance(r, q) / variance(q)
Amihud = |p_last / p_first − 1| / (sum of every trade's p · |q|)
Five trades later
Lambda and Amihud say how hard trades push. Neither says how much of the push comes back. For that, watch the price after the biggest trades. The large-trade reversal takes the biggest tenth of trades by value, looks five trades ahead of each, and averages the return from the big trade's price to the later one.
Here is a toy tape of 50 trades on lesson 5's book. Five are big buys of 60 units, ringed. Choose how many trades ahead to look.
Change how many trades ahead to look. Watch where the price was by then, after each big buy.
- Average return after
- −1.67 bps
- Big buys over the mid
- +3.80 bps
- Came back
- 44%
- Big trades
- 5
Five trades after the big buys, the price was on average 1.67 bps below where they printed. They printed 3.80 bps above the mid before them, so about 44% of that had come back.
One trade on, the price sits about 1 basis point below where the big buys printed. Five trades on, it is 1.67 below. The big buys printed 3.8 basis points above the mid before them, half the spread plus the walk, so by five trades on about 44% of that had come back.
A negative number after big buys, or a positive one after big sells, means part of the move came back. The measure doesn't flip sells around, so a minute with big trades on both sides can average out to nothing. Read it next to which side the big trades were on.
In real data
What you learned
- Peak impact
- How far the price moves while an order empties the book, before anyone refills it.
- Temporary impact
- The part of the move that comes back once makers refill: the cost of emptying the book.
- Permanent impact
- The part that stays, because makers now think the price is higher, or lower after a sale.
- Kyle's lambda
- The slope of each trade's price move against its size, counted plus for buys and minus for sells. Steeper means a thinner market.
- Amihud illiquidity
- How far the price moved over a period, whichever way, divided by how much traded in it.
- Large-trade reversal
- The average return five trades after the biggest tenth of trades. Read it next to the side those trades were on.
Check yourself
1. A buy lifts the mid 3.5 basis points. Once the book refills, the mid sits 1.5 above where it started, and stays there. How much of the impact was temporary?
2. Market A's Kyle's lambda is twice market B's. A 10-unit buy in A moves the price…
3. Five trades after the biggest buys, the price is on average below where they printed. What does that say?