Tutorials · 6 min read

OFI Inside the Order Flow Dynamics Desk: See the Book Lean Before the Quote Ticks

Order flow imbalance shows the book being pushed at the touch, every 100 ms, before a price chart shows anything.

Every desk has a version of the same question: who is pressing the market right now, and how hard? The price chart answers late. The tape answers half of it. The order book answers the other half, if you read the right thing off it.

The Order Flow Dynamics Desk in VisualHFT Terminal groups the tiles that answer that question on one surface. One of them is Order Flow Imbalance (OFI). This post is about that one tile: what it measures, what it tells you, and what to read it with. The full guide to every tile on the Desk is Reading the Order Flow Dynamics Desk.


1. Where OFI sits

A Desk is one grouped view that mounts existing studies and answers one question at a glance: a tile on the dashboard, a window with every part in full. The Order Flow Dynamics Desk reads the market from two directions. From the tape: Cumulative Volume Delta, who has taken liquidity since the session started, and Delta of Trades, who crossed the spread in the last few seconds. From the book: OFI, whether displayed liquidity at the top of book is leaning.

The Desk does not recalculate any of them. OFI on the Desk is the same study, same settings, same number, as OFI on its own. The Desk reads what it publishes and puts it beside the other two. One gear points all three at one venue and one symbol.


2. What OFI measures

OFI watches only the best bid and the best ask, and only two things about each: price and displayed size. On every book update it adds and subtracts size according to how those quotes changed, the best-quote formula of Cont, Kukanov and Stoikov:

  • Adds when the best bid grows or moves up, and when the best ask shrinks or moves up.
  • Subtracts when the best bid shrinks or moves down, and when the best ask grows or moves down.

The tile shows the sum over a trailing window you choose, 1, 2, 3 or 5 seconds, default 5. It updates every 100 ms whether the book changed or not. The number is raw and signed, in the instrument’s own size unit: bitcoin on BTC/USD, shares on a stock. No multiplier, no ratio, no bound.

That is the formula Cont, Kukanov and Stoikov showed explains on average 65% of short-interval mid-price moves across 50 US stocks, live on your screen.


3. What it can tell you

Lean. A positive, growing OFI means displayed liquidity at the top of book is moving up: bids are building or stepping up, offers are thinning or stepping up. A negative, growing OFI means the reverse. The sign is the direction of pressure; the size, in the instrument’s own units, is how much of the displayed book moved.

Persistence. One window is a moment. Several windows the same sign is a lean that is holding. The study’s chart plots OFI against the mid price on one time axis, so you see a lean and the mid move together, or a lean that the mid never followed.

Shifts. The moment that matters most is the sign change: a book that was leaning up stops, flattens, and starts leaning down. On the tile that is a green number shrinking to zero and turning red. On the chart it is the line crossing the axis, with the mid on the same time axis. It can flip while the price is still unchanged.

Quiet. Zero in a lighter grey means no book update at all inside the window, as opposed to balanced changes. The hover says which, and when the last update arrived. A quiet book and a balanced book look alike on a price chart; they are different states, and the tile tells them apart.

Read every one of those beside the other two tiles. OFI positive while Delta of Trades is positive and CVD rises: the book is leaning the way the tape is pushing. OFI positive while Delta of Trades sits near zero: quotes are being rewritten, not traded. Know that before you trust displayed size.


4. Using it well

Feed conditions first. OFI needs one full clean window of book updates before its first value; the tile shows a dot until then. Three dots in orange mean the feed reported a warning or sent no status for 30 seconds. A crossed, locked or one-sided book is never shown as zero; the tile waits until the book is valid, then warms up for one full window. The hover names the window and the clock it runs on, the time each update reached the terminal.

Relative, not absolute. OFI is in the instrument’s own size unit, so 50 on one symbol and 50 on another mean different things. Read a value against the same symbol’s own recent readings, on the chart, not against a fixed threshold carried from somewhere else.

One venue, one symbol. Each tile reads one feed. The Desk’s gear points every tile at the same instrument, so the three numbers describe the same book and the same tape; the tile says Mixed if one is moved.

Alert on it. OFI publishes its value to the Trigger Engine on every boundary. Above, below and crosses rules work on the signed value, and a tile that is warming up, stale or in error sends nothing rather than a zero. A crosses rule on OFI fires on the book, never on a gap in the feed.


5. One Desk, one question

OFI is the book’s answer. Its tape partner, Cumulative Volume Delta, earned our research desk’s EDGE verdict: on seven held-out NASDAQ symbols the taker side called the direction of the mid change from one trade to the next 75.7% of the time, more than 33 points ahead of a last-tick reversal rule. On the Order Flow Dynamics Desk OFI sits beside Cumulative Volume Delta and Delta of Trades, with the Footprint chart and the Smart Tape in the window for where the volume traded and how it arrived. The Desk’s own headline, Directional Flow Pressure, puts the answer in one signed number from −100 to +100, labelled with a participation regime from Quiet to Urgent.

The guide to every tile, with each one’s inputs, settings, feed conditions and limits, is here: Reading the Order Flow Dynamics Desk.

#Market Microstructure #Order Flow #Order Flow Imbalance #Order Book #Desk #Trading Workflow