Order flow imbalance (OFI)
◆still alphaNet pressure from changes in bid versus ask depth over a short window. OFI explains the same-interval price move well; as a forecast it is far weaker.
See it move
What to notice. Push the pressure positive and the imbalance bars lean teal while the synthetic price drifts up. The price here is synthetic and moves with the pressure you inject, so it shows the mechanism and not a forecast. In published studies, order flow imbalance explains the price change over the same interval well and forecasts the next interval much less well.
What is order flow imbalance?
Order flow imbalance (OFI) is the net signed change in liquidity at the top of the book over a time window. Buy-side events (bid additions, ask depletions, trades and cancels that lift the offer) push it positive; sell-side events push it negative. Price moves because of flow, and OFI is the bookkeeping of that pressure: a signed tally of every event that adds buying or removes selling at the best prices.
The point of Cont, Kukanov and Stoikov (2014) is that the right object is not signed trade volume alone but the full set of top-of-book events: limit-order additions and cancellations at the best bid and ask, alongside trades. In their words, OFI "treats a market sell and a cancel buy of the same size as equivalent, since they have the same effect on the size of the bid queue". A cancelled bid is bearish even though no trade printed, and a fresh bid is bullish even though nobody traded. Counting only trades throws away much of what happens at the touch. Because additions count whether or not the order was meant to trade, size displayed only to be cancelled also enters the tally; that conduct is described in spoofing and layering.
OFI is the empirical cousin of Kyle's (Kyle 1985, in the companion guide). Kyle's model has price moving linearly in net order flow with coefficient ; OFI is a definition of "net order flow" you can compute from a depth feed, and the fitted slope of price change on OFI plays the role of for the top of the book. Cont and co-authors call it the price impact coefficient.
How is OFI built from book events?
Over each interval, OFI sums signed contributions from changes in the best bid and ask of the limit order book. For each event , the bid contribution is if the bid price rose, if it fell, and the size change if it held. The ask contribution is the mirror image, with a more aggressive ask signed negative because it is sell pressure.
This treats the event types uniformly. A trade that lifts the offer depletes ask size (buy pressure), a new bid at a better price adds buy pressure, and a cancel of the best bid removes it. Because the measure is computed from best-quote updates alone, it needs no trade signing. If you add a signed-trade component on top, that part inherits the error rate of trade-sign inference (the tick rule, or the Lee and Ready 1991 algorithm).
▸ Show the regression form optional
Cont, Kukanov and Stoikov regress the mid-price change over an interval on the OFI of the same interval. The fit is strongly linear.
The slope is the price impact per unit of OFI (a top-of-book analogue of Kyle's ) and it scales inversely with the average top-of-book depth : a deeper book gives a smaller move per unit of imbalance. The paper fits the slope as a power of depth and finds an exponent very close to 1, and it cannot reject exactly 1 for 35 of its 50 stocks.
The same paper shows that OFI explains contemporaneous price changes far better than trade imbalance alone, whose price-volume relation it calls "noisy and less robust". The derivation rests on a stylised model in which the price moves one tick when cumulative net top-of-book pressure exhausts the depth at the touch.
What does OFI explain, and what can it forecast?
OFI explains the price change over the same interval very well. Its power to forecast the next interval is real but much smaller and short-lived. The two claims are easy to blur, so keep them apart.
The explanation is close to mechanical. The best ask holds a finite quantity; once net buy pressure (trades, cancels and new bids stepping up) consumes it, the touch moves up a tick. OFI measures the pressure that does the consuming. The evidence in Cont, Kukanov and Stoikov comes from 50 S&P 500 stocks picked at random, using TAQ data for April 2010 (21 trading days), with 10-second intervals. The average of the contemporaneous regression is 65%. A robustness check that controls for mechanical effects drops it to between 35% and 60%, and adding trade imbalance lifts it only from 65% to 68%. Later US equity studies replicate the relation and extend it down the book: for six Nasdaq stocks, Xu, Gould and Howison (2018) find that the out-of-sample fit improves with each additional price level added to the OFI.
Forecasting is a separate test, and the results are weaker. Cont, Cucuringu and Zhang (2023) find that, once OFI from several levels is combined, other stocks' OFI adds nothing to explaining a stock's same-interval move, but lagged cross-asset OFI does help forecast future returns, at short horizons and with an effect that decays rapidly. Kolm, Turiel and Westray (2023) trained neural networks on order flow, not raw book states, for 115 Nasdaq stocks; the best high-frequency forecasts had a useful horizon of about two average price changes. All of this evidence comes from US equities.
That means the raw one-feature signal is a utility input in liquid lit markets, not a standalone edge. What survives is speed (acting on the imbalance before it resolves), combination (OFI as one feature among many, across levels and assets) and less-contested venues such as crypto and prediction markets. The square-root law of impact is a useful comparison: both are regularities in how flow moves price.
For a market maker, OFI is a toxicity and fair-value input. A strong one-sided OFI is the signature of informed flow, and it is the flow-based partner of the static imbalance adjustment in the microprice. A maker watches it to widen, skew or re-centre before being picked off. One-sided OFI is not always informed flow, though: a large order cut into child orders by an execution algorithm, as set out in why execution algorithms exist, keeps pressing the same side of the book for as long as it runs.
Worked example: tallying one 200 ms window
Take an illustrative top-of-book sequence, which you can reproduce in the interactive above. At the best bid is 100.00 × 500 lots and the best ask 100.01 × 500 lots, so the depth at the touch is . Over the next 200 ms the events are: 200 lots added to the bid (buy pressure); 150 lots of the ask traded away (buy pressure); the bid ticks up to 100.01 with 300 lots (buy pressure); and 80 lots of new ask appear (sell pressure). The sequence is stylised: for the bid to step up to 100.01, the 350 lots still offered there would first have to clear, which a full tally would count as a further +350. We leave that out to keep the arithmetic round.
Predicted move. With a depth-normalised slope price units per lot of OFI (calibrated on the illustrative tape) the predicted mid change is , about one tick up. The interactive draws this as an up-arrow on the book, and the scatter's shows how reliably the tape followed it.
Trades-only would have missed it. Counting only the 150 lots traded gives a far smaller signed-volume figure and a weaker prediction. The added and stepped-up bids, and the added versus cancelled asks, are the bulk of the pressure. Flip the interactive's toggle and watch the drop and the arrow shrink: full OFI beats trade imbalance.
Crowding. In a liquid lit equity, a OFI and its one-tick implication are visible to everyone on the same feed, and faster participants have often moved the touch by the time a slower trader acts. The same in a thinner crypto book or a Polymarket outcome token is far less contested. The slope , the depth normalisation and the predictive must all be fitted per instrument. The shape, linear and depth-normalised, is robust; the exploitable residual depends on your speed and venue.
Sources
- Cont, R., Kukanov, A. and Stoikov, S. (2014). "The price impact of order book events". Journal of Financial Econometrics 12(1), 47–88. arxiv.org
- Xu, K., Gould, M. D. and Howison, S. D. (2018). "Multi-level order-flow imbalance in a limit order book". Market Microstructure and Liquidity 4(3–4), 1950011. arxiv.org
- Cont, R., Cucuringu, M. and Zhang, C. (2023). "Cross-impact of order flow imbalance in equity markets". Quantitative Finance 23(10), 1373–1393. arxiv.org
- Kolm, P. N., Turiel, J. and Westray, N. (2023). "Deep order flow imbalance: extracting alpha at multiple horizons from the limit order book". Mathematical Finance 33(4), 1044–1081. doi.org
- Lee, C. M. C. and Ready, M. J. (1991). "Inferring trade direction from intraday data". Journal of Finance 46(2), 733–746. doi.org
- Kyle, A. S. (1985). "Continuous auctions and insider trading". Econometrica 53(6), 1315–1335. doi.org