OB Imbalance
OB Imbalance (Order Book Imbalance) measures the ratio of bid volume to ask volume in the order book at configurable depth levels. It provides a real-time view of resting order pressure — before those orders are actually executed — giving you a forward-looking signal that complements trade-based indicators like Delta and CVD.How It Works
At each candle, the indicator samples the order book and calculates the imbalance at several depth levels (measured as a percentage distance from the best bid/ask):
Each configured depth level produces its own series, rendered in a separate lane within the subchart. This multi-depth approach reveals whether the imbalance is consistent throughout the book or concentrated at specific levels.
Indicator Type
Subchart — renders one lane per depth level in a panel below the price chart. Each lane has its own zero line.Settings
Depth Levels
Each entry defines a depth level. For example,
1 means all resting orders within 1% of the best price; 10 means within 10% of the best price.
- Shallow depths (0.5–2%) reflect immediate liquidity and are sensitive to spoofing and short-term positioning.
- Deep depths (5–10%) reflect broader conviction and are more stable, but slower to react.
Colors
Display Mode
columns(default): colored bars above/below the zero line. Clear visualization of direction and magnitude.line: continuous line. Better for observing the trend of imbalance over time.candles: OHLC representation. Useful on higher timeframes to see intra-period imbalance fluctuation.
Anomaly Highlighting
Anomaly highlighting flags bars where the absolute imbalance value is statistically extreme compared to recent history. A threshold of 2.5 is slightly more sensitive than the default on most indicators because order book imbalance tends to be noisier.
Gradient Intensity
Reading Multi-Depth Imbalance
The power of OB Imbalance comes from comparing across depth levels simultaneously.All Depths Aligned
When all depth levels (e.g., 1%, 2.5%, 5%, 10%) show the same direction, it indicates a consistent order book tilt. The resting order pressure is uniform from the top of the book to the deep levels. This is the strongest signal:- All positive: broad bid support below — potential floor / reversal zone
- All negative: broad ask resistance above — potential ceiling / rejection zone
Shallow vs. Deep Divergence
When shallow levels (1–2%) diverge from deep levels (5–10%), it often signals:- Shallow positive, deep negative: bids are stacked near the best price (possibly spoofing or short-term support), but deeper conviction is bearish.
- Shallow negative, deep positive: asks are concentrated near the top of book (possibly to cap price in the short term), but the broader book is bid-heavy.
Imbalance Flips
A sudden flip from positive to negative (or vice versa) across all depths often precedes or accompanies a directional move. These flips are especially significant at key price levels (session highs/lows, VWAP, round numbers).Practical Strategies
Support/Resistance Confirmation
Before entering a trade at a support level, check OB Imbalance:- If imbalance is positive across multiple depths at support, the level is well-defended.
- If imbalance is negative or mixed, the support may be weak and vulnerable to a break.
Breakout Validation
During a breakout:- Genuine breakout: imbalance shifts in the breakout direction across all depths. Resting orders are being pulled (resistance removed) or stacked (support added in the direction of the move).
- False breakout: imbalance remains contrary to the breakout direction. The book still has heavy resistance in the breakout path.
Scalping with Shallow Depth
For very short-term trading, use a single shallow depth (0.5–1%) and switch toline display mode. The continuous line shows rapid shifts in immediate book pressure that can precede 1–3 tick moves.
Combining with Other Indicators
OB Imbalance pairs well with:- Delta / CVD — OB Imbalance shows resting (passive) order pressure; Delta shows executed (aggressive) order flow. When both align, the signal is reinforced.
- DOM on Chart — DOM shows the current snapshot of the book; OB Imbalance shows how that snapshot has changed over time.
- Trades Filter — high-activity price levels from Trades Filter combined with order book imbalance at those levels give a fuller picture of support/resistance strength.
Limitations
- Order book data is snapshots: imbalance values reflect the state of the book at the time each candle was sampled. Orders can be placed and cancelled between snapshots.
- Spoofing: large resting orders may be placed to manipulate the imbalance and then cancelled before execution. Multi-depth analysis helps detect this, but it is not foolproof.
- Thin markets: on illiquid symbols or during off-hours, small orders can produce extreme imbalance readings that are not meaningful.