Back to strategies

Order Flow Imbalance Strategy

Trade short-horizon pressure from aggressive buys, sells, and book imbalance

Order Flow Imbalance Strategy is a market-microstructure trading template that transforms trade prints, bid-ask updates, depth changes, and signed order-flow events into short-horizon order decisions, then controls fills, cancels, inventory, and imbalance decay stops, max adverse excursion limits, and feed-sequence validation. - Evans and Lyons order-flow research

playbook.disclaimer.text

⚠️ 策略适用性
风险: EXTREME
适用于
  • Markets where trade prints, bid-ask updates, depth changes, and signed order-flow events is timestamped, sequenced, and fast enough to support live order decisions.
  • Venues where buy or sell pressure imbalance persists after spread and depth normalization can be converted into orders before the edge is consumed by spread, fees, or latency.
  • Research environments that model queue position, partial fills, cancels, message limits, and adverse selection explicitly.
避免使用于
  • Delayed, sampled, or candle-only data where order-book state and fill priority cannot be reconstructed.
  • Markets where the expected edge is smaller than spread, exchange fees, market-impact, or infrastructure latency.
  • Backtests that assume every quote is filled at the displayed price without queue, cancel, or venue-risk modeling.
🕒 时间周期
TickSecondsIntraday
🌍 市场
FuturesStocksFXCrypto
📢 High-frequency strategies are extremely sensitive to data quality and execution assumptions; imbalance decay stops, max adverse excursion limits, and feed-sequence validation must be enforced before deployment.
问: What is the core idea behind Order Flow Imbalance Strategy?
The strategy reads trade prints, bid-ask updates, depth changes, and signed order-flow events, waits for buy or sell pressure imbalance persists after spread and depth normalization, sends small directional orders gated by imbalance strength and book liquidity, and exits when imbalance mean-reverts, short-horizon target is hit, or opposite flow appears.
问: Why is Order Flow Imbalance Strategy hard to backtest?
It depends on order-book sequencing, queue position, cancel timing, partial fills, fees, and latency; candle data cannot prove that the trades were executable.
问: What is the biggest risk in Order Flow Imbalance Strategy?
The biggest risk is usually adverse selection: the strategy gets filled when the market is about to move against it, while favorable quotes are cancelled or not filled.

该策略的工作方式

从市场解读到交易管理的 5 阶段决策流程

1
Feed State
Normalize live order-book inputs
Ingest trade prints, bid-ask updates, depth changes, and signed order-flow events with deterministic timestamps and sequence checks
Reject stale, crossed, locked, or gap-filled book states before signal calculation
Track venue-level spread, depth, queue position, and message throttles
BBMACD
2
Signal Test
Estimate short-horizon edge
Trigger only when buy or sell pressure imbalance persists after spread and depth normalization
Require edge to clear spread, fee, adverse-selection, and cancel-risk assumptions
Compare the current book state with same-venue historical microstructure regimes
触及接近交叉
3
Order Logic
Place quote or aggressive order
Use small directional orders gated by imbalance strength and book liquidity only when queue and fill assumptions are executable
Select venue, price level, order type, and cancel rule before sending orders
Throttle messages so the strategy does not depend on impossible order churn
BB 信号MACD 交叉✓ GO
4
Unwind Rule
Manage fills and stale signals
Execute with aggressive or join-best orders selected by urgency, spread, and queue state
Exit when imbalance mean-reverts, short-horizon target is hit, or opposite flow appears
Cancel resting orders immediately when the book state invalidates the signal
买入部分卖出盈利区间
5
HFT Risk
Cap adverse selection and venue risk
Apply imbalance decay stops, max adverse excursion limits, and feed-sequence validation as hard pre-trade and live-trading controls
Stress feed delays, queue loss, crossed markets, disconnects, cancels, and partial fills
Disable the strategy when live fill quality diverges from tested assumptions
入场SLTP移动止损2%R:R
策略组件参考

Order Flow Imbalance Strategy

Trade short-horizon pressure from aggressive buys, sells, and book imbalance

Order
Flow
Imbalance
SC StratCraft
BBook State
trade prints, bid-ask updates, depth changes, and signed order-flow eventsInput feed
Bid-Ask SpreadCost hurdle
Queue PositionFill priority
SEdge Signal
buy or sell pressure imbalance persists after spread and depth normalizationTrade evidence
Adverse SelectionToxic fill risk
All-In Cost ModelEdge hurdle
OOrder Rules
small directional orders gated by imbalance strength and book liquidityPlacement rule
Venue SelectionRouting rule
Message ThrottleOperational guard
XExit Rules
imbalance mean-reverts, short-horizon target is hit, or opposite flow appearsPrimary unwind
Cancel RuleResting-order control
Inventory UnwindPosition control
RRisk Control
imbalance decay stops, max adverse excursion limits, and feed-sequence validationExecution risk
Feed Health CheckData guard
Kill SwitchHard stop
Order Flow Imbalance Strategy
Order Flow Imbalance Strategy is a market-microstructure trading template that transforms trade prints, bid-ask updates, depth changes, and signed order-flow events into short-horizon order decisions, then controls fills, cancels, inventory, and imbalance decay stops, max adverse excursion limits, and feed-sequence validation.
Order Flow Imbalance Strategy Market Suitability
The Order Flow Imbalance Strategy strategy works best in Markets where trade prints, bid-ask updates, depth changes, and signed order-flow events is timestamped, sequenced, and fast enough to support live order decisions.. Venues where buy or sell pressure imbalance persists after spread and depth normalization can be converted into orders before the edge is consumed by spread, fees, or latency.. Research environments that model queue position, partial fills, cancels, message limits, and adverse selection explicitly.. Traders should avoid using this strategy in Delayed, sampled, or candle-only data where order-book state and fill priority cannot be reconstructed.. Markets where the expected edge is smaller than spread, exchange fees, market-impact, or infrastructure latency.. Backtests that assume every quote is filled at the displayed price without queue, cancel, or venue-risk modeling.. The risk level is categorized as EXTREME. High-frequency strategies are extremely sensitive to data quality and execution assumptions; imbalance decay stops, max adverse excursion limits, and feed-sequence validation must be enforced before deployment.
What is the core idea behind Order Flow Imbalance Strategy?
The strategy reads trade prints, bid-ask updates, depth changes, and signed order-flow events, waits for buy or sell pressure imbalance persists after spread and depth normalization, sends small directional orders gated by imbalance strength and book liquidity, and exits when imbalance mean-reverts, short-horizon target is hit, or opposite flow appears.
Why is Order Flow Imbalance Strategy hard to backtest?
It depends on order-book sequencing, queue position, cancel timing, partial fills, fees, and latency; candle data cannot prove that the trades were executable.
What is the biggest risk in Order Flow Imbalance Strategy?
The biggest risk is usually adverse selection: the strategy gets filled when the market is about to move against it, while favorable quotes are cancelled or not filled.
trade prints, bid-ask updates, depth changes, and signed order-flow events
trade prints, bid-ask updates, depth changes, and signed order-flow events supplies the market state used to estimate short-horizon supply, demand, spread, and queue conditions. Formula: Sequenced order-book events
Bid-Ask Spread
The bid-ask spread is the first cost hurdle that a short-horizon strategy must overcome before expected edge can be positive. Formula: Ask - Bid
Queue Position
Queue position estimates whether a resting order is likely to be filled before the market moves or the signal expires. Formula: Displayed size ahead of order
buy or sell pressure imbalance persists after spread and depth normalization
buy or sell pressure imbalance persists after spread and depth normalization defines the microstructure condition that must clear all costs before the strategy is allowed to send or maintain orders. Formula: OFI = Delta Bid Size - Delta Ask Size + Signed Trades
Adverse Selection
Adverse selection occurs when the strategy is more likely to be filled just before prices move against its position. Formula: Fill followed by unfavorable move
All-In Cost Model
The all-in cost model keeps a microstructure signal from being treated as profitable before fees, queue loss, and latency are included. Formula: Spread + fees + slippage + latency
small directional orders gated by imbalance strength and book liquidity
small directional orders gated by imbalance strength and book liquidity defines how the strategy converts a short-lived edge estimate into a specific price, side, size, and order type. Formula: Signal to order instruction
Venue Selection
Venue selection chooses where an order should rest or execute after comparing displayed liquidity, fee tiers, queue depth, and fill probability. Formula: Route by spread, queue, fee, and fill odds
Message Throttle
Message throttles prevent a backtest from depending on order and cancel rates that would be rejected or penalized in live trading. Formula: Orders and cancels within limit
imbalance mean-reverts, short-horizon target is hit, or opposite flow appears
imbalance mean-reverts, short-horizon target is hit, or opposite flow appears stops a microstructure trade from remaining open after the original short-horizon edge has disappeared. Formula: Close, cancel, or hedge stale exposure
Cancel Rule
The cancel rule removes resting orders when spread, depth, queue, or signal state changes enough to invalidate the original quote. Formula: Cancel when quote becomes stale
Inventory Unwind
Inventory unwind rules bring filled positions back toward the target exposure before small fill errors become directional risk. Formula: Reduce exposure toward target
imbalance decay stops, max adverse excursion limits, and feed-sequence validation
imbalance decay stops, max adverse excursion limits, and feed-sequence validation defines non-negotiable limits for venue state, feed health, exposure, order rate, and realized fill quality. Formula: Pre-trade and live hard limits
Feed Health Check
Feed health checks stop trading when the order-book state is stale, incomplete, out of sequence, or inconsistent across venues. Formula: No stale, missing, or out-of-sequence events
Kill Switch
A kill switch disables the strategy when loss, latency, reject rate, disconnects, or fill slippage exceeds the tested operating envelope. Formula: Disable on loss, latency, or disconnect breach