Guides · 11 min read

Adverse selection, slippage, failed breakouts and feed lag: the microstructure signal that precedes each

Each of these losses leaves a reading in the order book, the trade tape or the feed before it reaches the fills. For each: the reading that appears first, and the VisualHFT Terminal study that shows it.


Adverse selection on a resting quote: imbalance at the touch and OFI

A resting bid fills, and seconds later the price trades through it. The quote was fair when it was sent. The book had already moved against it before the mid did.

Your side of the touch is thin. Size builds on the other side. The mid price has not moved yet.

The LOB Imbalance tile compares bid size with ask size across the levels your feed captures. It reads from -1 to +1, and it turns negative when offers outweigh bids. Set its Weighting to Touch Weighted, and the levels nearest the best price count most. Imbalance at the touch tends to lean the way price goes next. Our working paper tests that reading on four held-out days of Nasdaq TotalView-ITCH data. The lean matched the direction of the next mid-price change more often than chance on each of the four days, and for almost every stock.

LOB Imbalance reads -0.7: 5 shares bid against 367 offered at the touch. It deepens to -0.9 while the mid holds. Then a seller steps the offer down 17 cents, inside a 41-cent spread, and the mid drops 8.5 cents with no trade. Replay of one recorded NASDAQ session.

Pair it with the Order Flow Imbalance (OFI) tile. OFI sits on the Order Flow Dynamics Desk. The Desk’s window also holds the CVD, Delta of Trades and Footprint panels used below. OFI adds up how size changed at the best bid and offer. It covers the last 5 seconds by default. Size leaving the bid, or building on the offer, pulls it negative. The mirror case pushes it positive. It moves while the best bid and offer prices are still unchanged. OFI Inside the Order Flow Dynamics Desk covers its formula and how to read it.

The OFI tile turning negative: size is leaving the best bid, or building on the best offer.

The lean is visible while the quote can still be pulled or repriced.


Slippage into a move without taker flow: price against CVD

An execution algo chases a rising price, crosses the spread and fills near the high. Then the move reverses. On the chart the rise looked like demand. Takers were not net buyers.

The price climbs, but net buying from takers stays flat or falls. When takers are not buying, the rise is coming from quotes moving.

Cumulative Volume Delta (CVD) adds up buy-taker volume minus sell-taker volume. It counts from a start point you choose: the study start, a manual reset or a daily reset. Its chart puts that line on the same time axis as the mid price. When price makes a higher high and the CVD line does not, the climb came with weak buying.

In our research on held-out Nasdaq trades, the taker side of a trade called the direction of the mid change from one trade to the next 79.7% of the time, more than 40 points ahead of a last-tick reversal rule. CVD is the running total of that same taker side. When price makes a higher high and CVD falls, takers did not pay for the climb. The price moved on quotes: offers were pulled, or a resting buyer stepped up the bid.

Price climbs past its earlier high. The CVD line drops under zero. Takers were selling into the climb. Replay of a recorded NASDAQ session.

The split shows before the algo adds size near the high.


A breakout without aggressive buying: Footprint and Delta of Trades

Price clears a level the desk was watching, the desk buys the break, and price falls back into the range. The chart showed a breakout. On the tape, buyers did not outweigh sellers.

At the breakout price, little volume trades with buyers as the takers. Net taker flow over the last few seconds does not turn up.

The Footprint chart splits each bar by price. In its default Bid × Ask view, each cell shows two numbers. The left one is volume traded with a seller as the taker. The right one is volume traded with a buyer as the taker. Read the rows at and just above the breakout price. A break with buyers behind it tends to show heavy buy-taker volume there. A thin right-hand column says price moved on little buying.

The Footprint chart live: who took liquidity at each price, bar by bar.

Then check Delta of Trades. It shows buy-taker volume minus sell-taker volume over the last 10 seconds, by default. It is green above zero and red below. When buyers arrive, it turns green and grows. If it stays red while price breaks out, takers are not buying the break.

A rise with buyers behind it. Sellers hit the bid, and Delta of Trades sat near -0.46 BTC. Then taker buys arrived at rising prices. The tile climbed to -0.049, then turned green at +0.465 BTC. Recorded live on Coinbase BTC/USD.

The read comes before the desk buys the break or adds to it. Who is crossing the spread right now? turns that flip into an in-app alert.


A lagging venue feed: market latency and book staleness

The screen looks quiet and the prices look normal. But one venue’s feed is running late, or its book has stopped updating. The desk keeps quoting and routing on those prices, and fills come in worse than the screen showed.

The delay between that venue’s timestamps and your terminal grows. Its message rate drops, or stops. Sometimes trades keep printing while its book stays frozen.

The Infrastructure Monitoring dashboard holds both feed panels below. Market Latencies Stats shows Mkt Lat. That is the time between the venue’s timestamp on an update and its arrival in your terminal. Judge it against that venue’s own normal level, not the absolute number. Ping sits beside it. If Mkt Lat climbs while Ping holds steady, suspect the venue’s feed, your clock or your machine, not your network. Set a short aggregation in its settings to see each spike as it happens.

The Market Latencies Stats tile in VisualHFT Terminal against Kraken: Mkt Lat refreshing between about 40 and 42 ms, and Ping at 1 ms

A healthy baseline: Mkt Lat steady near 41 ms, Ping at 1 ms. Learn each venue’s normal level, so a rise stands out.

Data Feeds Monitoring gives each venue and symbol a card. The card shows its message rate and a status label. The label reads GAP when no message arrives within that feed’s gap limit, OFFLINE when it disconnects, and BOOK STALE when trades keep arriving and the book does not change.

The Data Feeds Monitoring panel in VisualHFT Terminal with three feed cards for Binance and Bitfinex pairs, each labelled HEALTHY, with message rates changing every second, sparklines advancing, and the summary strip reading 3 feeds, 3 healthy, 0 gap

Three feeds, all healthy. A venue that goes quiet, or whose book freezes, changes its label here.

The desk can stop trusting that venue’s prices before the fills show the cost. The full walkthrough of feed monitoring is in A Stale Feed Looks Exactly Like a Calm Market.


What each reading measures

The four readings come from three sources: the book, the tape and the feed.

The book. LOB Imbalance is a state: the standing size on each side, across the levels your feed captures. With Touch Weighted, each level counts less the further it sits from its own side’s best quote. At a one-tick spread no order can improve the price, so the mid moves only when the best bid queue or the best offer queue empties. The shorter queue tends to empty first. At a wider spread, as in the first section’s recording, a new order inside the spread can move the mid with no trade.

OFI is a flow: the change in size at the best bid and offer, the best-quote measure of Cont, Kukanov and Stoikov. LOB Imbalance shows where the book stands. OFI shows which way it is moving.

The tape. CVD, Delta of Trades and the Footprint chart sign each trade by its aggressor. Delta of Trades and the Footprint chart can also sign a trade from the quote when the venue does not report its side. The three answer different questions: CVD, who has led since a start point; Delta of Trades, who is crossing now; the Footprint chart, at which price. Delta of Trades can combine two to eight venue-symbol rows into one delta.

The feed. Mkt Lat subtracts the venue’s timestamp from your clock’s arrival time. Read a step change against the venue’s normal level. BOOK STALE needs two things. Trades are still printing. And the book has not updated for longer than the feed’s gap limit, or 5 seconds, whichever is longer. One isolated print, such as a hidden execution, never sets it.


Where the readings fit

The readings tend to pay off where they change a decision the desk already makes: when to pull or reprice a resting quote, when an execution algo sends its next child order, whether to buy a breakout, and which venue’s prices to route on. Those four decisions are where adverse selection, slippage, failed breakouts and feed lag are paid.

From Signal to Trade, Part 1 walks through the first of them on the same IDXX replay.


Set up the four readings

Install VisualHFT Terminal with the installation guide. Connect a venue with Your first session. Open the Order Flow Dynamics Desk, and use its gear to set the instrument you trade for every part. Add LOB Imbalance as its own study tile, and set its Weighting to Touch Weighted. For the feed readings, choose Infrastructure Monitoring in the dashboard picker, top left.

Reading the Order Flow Dynamics Desk goes tile by tile and shows how to read the tiles together. Monitor your trading infrastructure sets up the feed cards and the latency counters. To run the book and tape readings on a recorded session, see Use your own historical market data.

Further reading

VisualHFT Terminal replaying a recorded NASDAQ TotalView-ITCH session (IDXX, 22 August 2023, 12:58 to 12:59 ET): the Touch Weighted LOB Imbalance tile reads -0.7 with 5 shares bid against 367 offered at the best prices and deepens to -0.9 while the mid price holds; then a new offer 17 cents lower takes the top and the mid steps down 8.5 cents with no trade.
Static reference capture from Adverse selection, slippage, failed breakouts and feed lag: the microstructure signal that precedes each
#Order Flow #Adverse Selection #Order Book Imbalance #Cumulative Volume Delta #Footprint #Delta of Trades #Feed Latency #Market Making #Execution