The Mathematical Definition of OFI
Unlike volume (which only measures completed trades), Order Flow Imbalance measures changes in the supply and demand queue. If new limit bids enter at the best bid while limit asks are canceled at the best ask, OFI surges positively before price even moves.
The Three Order Book Events
OFI decomposes order book updates into three causal actions:
Predictive Alpha: OFI vs Price Returns
Linear regression studies demonstrate an R-squared correlation of over 0.65 between cumulative OFI and near-term price returns over the next 1 to 5 minutes, significantly outperforming simple volume moving averages.
How to Use OFI in Discretionary Trading
When price approaches a major resistance level, check OFI. If OFI turns sharply negative while price is still pushing higher, limit sellers are flooding the book while buyers are pulling bids — a premier short fade signal.
Frequently Asked Quantitative Questions
How is OFI different from CVD?▾
CVD only measures completed market order volume. OFI measures both market order fills and changes in resting limit order depth, providing a complete picture of order book supply and demand.