Trading strategies·mm-information

Order flow imbalance (OFI)

◆still alpha
By . Reviewed 22 October 2026. As of 2026: a real edge still exists for those who can run it well.

Net 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

Order flow imbalancelive signalIX-OFI
OFI (now)+0.00
Signalneutral
Synthetic price100.000
bids growing / asks consumed → upasks growing / bids consumed → down
Injected pressure+0.0

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 λ\lambda (Kyle 1985, in the companion guide). Kyle's model has price moving linearly in net order flow with coefficient λ\lambda; 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 λ\lambda for the top of the book. Cont and co-authors call it the price impact coefficient.

Every best-level event signs into one number: more net buy pressure over the window, higher the mid over that window.
OFI[t, t+Δ]=∑n(enbid−enask)\text{OFI}_{[t,\,t+\Delta]} = \sum_n \left( e_n^{\text{bid}} - e_n^{\text{ask}} \right)

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 nn, the bid contribution is +Qnb+Q_n^{b} if the bid price rose, −Qn−1b-Q_{n-1}^{b} if it fell, and the size change Qnb−Qn−1bQ_n^{b} - Q_{n-1}^{b} if it held. The ask contribution is the mirror image, with a more aggressive ask signed negative because it is sell pressure.

The bid contribution: a stronger bid is buy pressure (positive), a weaker bid removes it (negative), a held bid contributes its size change.
enbid={+Qnbpnb>pn−1bQnb−Qn−1bpnb=pn−1b−Qn−1bpnb<pn−1be_n^{\text{bid}} = \begin{cases} +Q_n^{b} & p_n^{b} \gt p_{n-1}^{b} \\[2pt] Q_n^{b} - Q_{n-1}^{b} & p_n^{b} = p_{n-1}^{b} \\[2pt] -Q_{n-1}^{b} & p_n^{b} \lt p_{n-1}^{b} \end{cases}

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.

ΔP=β⋅OFI+ε\Delta P = \beta \cdot \text{OFI} + \varepsilon

The slope β\beta is the price impact per unit of OFI (a top-of-book analogue of Kyle's λ\lambda) and it scales inversely with the average top-of-book depth DD: 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.

β≈cD\beta \approx \frac{c}{D}

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 R2R^2 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.

The trader's use of OFI is a forecast, and its fit is much weaker than the contemporaneous regression. Lengthen the look-back and the signal smooths but lags; shorten it and you react faster on noisier pressure.
ΔP^[t, t+Δ]=β⋅OFI[t−w, t]\widehat{\Delta P}_{[t,\,t+\Delta]} = \beta \cdot \text{OFI}_{[t-w,\,t]}

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 t0t_0 the best bid is 100.00 × 500 lots and the best ask 100.01 × 500 lots, so the depth at the touch is D≈500D \approx 500. 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.

Tallying every best-level event gives a strongly positive OFI: net buy pressure over the window.
OFI=+200⏟bid add+150⏟ask depleted+300⏟bid stepped up−80⏟ask add=+570\text{OFI} = \underbrace{+200}_{\text{bid add}} + \underbrace{150}_{\text{ask depleted}} + \underbrace{300}_{\text{bid stepped up}} - \underbrace{80}_{\text{ask add}} = +570

Predicted move. With a depth-normalised slope β=0.000018\beta = 0.000018 price units per lot of OFI (calibrated on the illustrative tape) the predicted mid change is β⋅OFI=0.000018×570≈+0.0103\beta \cdot \text{OFI} = 0.000018 \times 570 \approx +0.0103, about one tick up. The interactive draws this as an up-arrow on the book, and the scatter's R2R^2 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 R2R^2 drop and the arrow shrink: full OFI beats trade imbalance.

Crowding. In a liquid lit equity, a +570+570 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 +570+570 in a thinner crypto book or a Polymarket outcome token is far less contested. The slope β\beta, the depth normalisation and the predictive R2R^2 must all be fitted per instrument. The shape, linear and depth-normalised, is robust; the exploitable residual depends on your speed and venue.

Sources

  1. 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
  2. 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
  3. 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
  4. 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
  5. Lee, C. M. C. and Ready, M. J. (1991). "Inferring trade direction from intraday data". Journal of Finance 46(2), 733–746. doi.org
  6. Kyle, A. S. (1985). "Continuous auctions and insider trading". Econometrica 53(6), 1315–1335. doi.org

Where this fits

Common questions

What is order flow imbalance?
Order flow imbalance (OFI) measures the net pressure from changes in bid versus ask depth and trades over a short window. It explains the price change over the same interval well; its power to forecast the next interval is real but much smaller and short-lived.