What Is Order flow imbalance?

Order flow imbalance (OFI) measures net changes in demand at the best bid and offer over an interval. At unchanged quotes, add increases in bid size and decreases in ask size, and subtract changes in the opposite directions. Adding 40 units to the bid and cancelling 15 on the offer gives +55 units even with zero trading volume.

When the best bid improves, count the new bid queue as added demand. When it falls, count the departed queue as lost demand. Apply the opposite signs on the offer side and sum the event contributions. Cont, Kukanov and Stoikov found a stronger short-horizon price response to a given imbalance in shallower books. See The Price Impact of Order Book Events.

Xu, Gould and Howison extend the measure to several book levels. Adding deeper levels improved the fit to price changes over the same interval in their Nasdaq sample. See Multi-Level Order-Flow Imbalance in a Limit Order Book.