Building a Multi-Level Order Flow Imbalance Factor with PCA
Summary
The article describes an integrated order flow imbalance factor built from changes in bid and ask quantities across five limit order book levels. It explains how each level’s imbalance can be normalized by typical depth, then combined with principal component analysis (PCA); the first component serves as a compact summary of the multi-level signal. The tick-level measures are aggregated to a chosen bar frequency, with one-minute bars used in the example code.
The motivation is that order book signals may become distorted by large displayed orders and cancellations, while stricter costs on high-frequency activity could affect their reliability. The article cites research reporting that integrated imbalance explains price changes better than a best-level-only measure and adds out-of-sample returns, but it gives no detailed performance statistics in the text. Its own discussion also proposes exploring cross-asset order flow effects. The sample code is an illustration, not a complete validation: it uses a single-stock example, and the post does not establish that the factor will remain predictive across markets or after realistic trading costs.
Key ideas
- Order flow imbalance can be measured from bid and ask quantity changes at multiple book levels.
- Normalizing each level by average depth makes the measures more comparable across levels or assets.
- PCA can compress the level-specific imbalance measures into a single integrated factor.
- The article reports stronger price-change explanation and additional out-of-sample returns relative to a best-level measure, without detailed results.
- Displayed orders and cancellations may distort book-based signals, and practical performance requires further testing.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.