Candle Volume Decomposition: Advanced Microstructure Analysis for TradingView
Analytic indicator that decomposes candle volume into three spatial zones using lower-timeframe polling. It calculates Delta Pressure, Volume Concentration via Herfindahl-Hirschman Index, and detects absorption/exhaustion by mapping trade distribution to candle geometry.
Strategy Decoder Editorial · · 5 min read
Key takeaways
- Traditional volume metrics often hide critical market dynamics, as they aggregate trading activity into a single figure per candle.
- The Candle Volume Decomposition indicator by MarkitTick dissects candle volume into upper wick, body, and lower wick zones using lower-timeframe data.
- It quantifies key microstructure elements like Delta Pressure, Volume Concentration (via Herfindahl-Hirschman Index), absorption, and exhaustion.
- This methodology helps identify aggressive order flow absorption at price extremes or efficient directional moves, crucial for strategy validation.
- Algo traders can leverage these insights to refine entry/exit signals, validate breakouts, anticipate reversals, and understand hidden liquidity mechanics.
Algorithmic and quantitative traders constantly seek to extract deeper insights from market data, moving beyond simple price and volume aggregates. Traditional volume indicators often present a significant limitation: they display the total trading activity within a period as a single, one-dimensional number. This aggregation can obscure vital information about where within the candle's range that volume occurred and what it truly represented in terms of market dynamics.
A new indicator, Candle Volume Decomposition by MarkitTick, available on TradingView, addresses this challenge directly. It proposes a novel approach to analyzing market microstructure by breaking down the total volume of each candle across three distinct spatial zones: the upper wick, the body, and the lower wick. This granular decomposition, achieved through polling lower-timeframe data, aims to provide a clearer picture of market activity, revealing nuances often missed by conventional analysis.
Rethinking Volume Analysis
Unlike most volume tools that simply measure total activity or classify volume purely by closing price relative to open, MarkitTick's indicator maps actual lower-timeframe volume data onto the structural boundaries of a higher-timeframe candle. This is a fundamental shift from aggregate estimations to a more precise, spatially aware volume mapping.
The core utility for quantitative analysts lies in the ability to uncover hidden liquidity mechanics. For instance, a candle that appears to have strong bullish volume might, upon decomposition, reveal significant selling pressure concentrated within its upper wick, indicating absorption rather than pure directional conviction. By isolating volume into these specific zones, traders can more definitively identify order flow dynamics such as absorption, assess the efficiency of directional body moves, and detect localized exhaustion before potential price reversals. The indicator effectively bridges the analytical gap between basic volume bars and complex order flow footprint charts, offering high-granularity data without the need for specialized tick-data feeds.
Methodology: Decomposing Candle Dynamics
The script's methodology is built upon several key concepts rooted in market microstructure analysis:
- Spatial Decomposition: The indicator precisely defines the price boundaries of a candle's body (open to close) and its wicks (high to body top, low to body bottom). It then allocates lower-timeframe volume data to these zones based on where price action occurred within them. This process reconstructs an intraday volume distribution for each higher-timeframe candle.
- Net Signed Volume: Instead of arbitrary color coding, MarkitTick calculates a net directional flow. Volume in the lower wick (suggesting demand) contributes positively, while volume in the upper wick (suggesting supply) contributes negatively. Body volume is signed based on the candle's closing direction (bullish or bearish).
- Delta Pressure Index: This normalized ratio, ranging from -1.0 to +1.0, quantifies the net difference between lower wick volume and upper wick volume relative to total volume. A positive Delta Pressure suggests demand dominance in the wicks, while negative values indicate supply dominance, providing insight into passive buying or selling at extremes.
- Volume Concentration (Herfindahl-Hirschman Index - HHI): Adapting an economic concept, the HHI measures zone dominance by squaring the volume ratios of the three zones and summing them. An HHI near 0.33 indicates perfectly equal distribution, while a value approaching 1.0 signifies that a single zone contains nearly all the volume, implying concentrated activity.
- Absorption & Exhaustion: Absorption is identified when high total wick volume is accompanied by a compressed body range, suggesting aggressive orders are being met by strong opposing passive liquidity. Exhaustion is triggered when wick volume exceeds body volume by a user-defined threshold, signaling potential structural weakness.
Visual Interpretation and Practical Application
MarkitTick's indicator provides a rich visual guide with elements on both the main price pane and a dedicated indicator pane. The price candles are dynamically colored and their transparency adjusted based on "Net Signed Volume," making visually apparent not just net direction but also the conviction behind it. Distinct purple background flashes highlight bars experiencing wick exhaustion, drawing attention to potential turning points.
For practical application, the indicator offers several use cases:
- Validating Breakouts: A high "Body Efficiency" score coupled with an opaque body color during a breakout suggests that the majority of volume supported the directional move, lending credence to the breakout. Conversely, high "Absorption" or high wick concentration during a breakout might indicate that the move is being faded by larger participants.
- Trading Reversals: The "Wick Exhaustion" signal, particularly at key support or resistance levels, can act as a leading indicator, confirming that counter-trend limit orders have successfully absorbed aggressive volume, halting price progression.
- Monitoring Cumulative Pressure: A "CVD Bias" metric tracks a running sum of Net Signed Volume. Discrepancies, such as price making higher highs while CVD Bias turns bearish, can signal potential divergences and impending pullbacks.
- Interpreting Asymmetry: Observing continuous lower-wick dominance during a downtrend could suggest accumulation, where participants are buying dips within the candle's micro-structure.
Investors and traders can customize various inputs, including the critical lower timeframe for data resolution, coloring modes, dynamic transparency, and thresholds for exhaustion and divergence detection. This modularity allows for tailoring the indicator to specific strategies and market contexts.
The Academic Underpinnings
The theoretical foundation of this indicator, as reported by MarkitTick, rests firmly in the realm of Market Microstructure and the mechanics of the Limit Order Book (LOB). Standard OHLC (Open, High, Low, Close) data, while foundational, suffers from temporal aggregation bias, as it compresses a continuous auction process into discrete time periods. By polling lower-timeframe data, this indicator attempts to reconstruct the true volume topology, mapping volume to price ranges rather than just time intervals.
The application of the Herfindahl-Hirschman Index (HHI), traditionally used in economics to measure market concentration, is a clever cross-application. Here, HHI measures the "monopoly" of trading activity within specific spatial zones of a candle. An HHI approaching 1.0 within a wick, for example, could indicate severe localized liquidity consumption, suggesting a dense wall of supply or demand at that price point.
Delta Pressure and absorption calculations further reflect the dynamic interplay between liquidity provision and liquidity taking. When a candle's body expands, aggressive market orders are consuming passive limit orders. Conversely, when a candle displays high volume but a compressed body range, aggressive orders are being absorbed by resting limit liquidity, a scenario that often precedes reversals or consolidation.
Why it matters for algo traders
For algorithmic and quantitative traders, the Candle Volume Decomposition indicator offers several critical advancements. The ability to precisely quantify volume distribution within a candle provides a richer dataset for backtesting and strategy development. Traditional volume metrics might lead to noisy or less robust signals, whereas understanding the spatial aspect of volume can refine entry and exit logic. For instance, an algorithm could be designed to look for specific Delta Pressure confirmations at key support/resistance levels, or to validate breakouts only when "Body Efficiency" exceeds a certain threshold. Furthermore, the identification of absorption or exhaustion through quantitative metrics can be directly integrated into risk management modules, signaling potential strategy invalidations or opportunities for counter-trend positions. The indicator's granular data provides a foundation for developing more sophisticated, microstructure-aware algorithms that can react more intelligently to nuanced market dynamics, moving beyond simple price-action triggers to incorporate direct evidence of order flow pressure and liquidity interaction.
Tags: market microstructure, volume profile, order flow, pine script, quantitative analysis, liquidity
Based on reporting by news.google.com.