Quant / Market microstructure
Order Flow Imbalance Trading Simulation
Short-horizon buy/sell signals from order flow imbalance at the top of the book.
[01] problem
Turn changes at the best bid and ask into a signal that anticipates short-horizon price moves.
[02] approach
- 01Order flow imbalance is computed from bid/ask price and size changes between consecutive book updates.
- 02Thresholded imbalance generates short-horizon buy/sell signals.
- 03Signals are backtested on market data, tracking PnL, drawdown and hit rate.
[03] what's interesting
- Signal quality is judged on drawdown and hit rate as well as PnL.
[04] stack
- Python
- Pandas
- NumPy
- Matplotlib