Institutional Imbalance Framework | Alien_Algorithms

Note on Architecture: This is a singular, interdependent engine. The CVMI, SOMM, and Liquidity Matrix are designed to reinforce one another: the CVMI quantifies unresolved imbalance pressure, the SOMM tracks structural mitigation around HTF OrderBlocks, and the Liquidity Matrix spatially summarizes where active and resolved structural volume is concentrated.
🔷 1.0 - Cumulative Volumetric Market Imbalance (CVMI)
The CVMI operates as a live pressure gauge tracking unresolved market displacement, providing traders with a read on mean-reversion probability.
To assess the severity of an imbalance, the CVMI interprets Fair Value Gap displacement along a spectrum between two orderflow categories:
- Institutional Displacement: When displacement forms with stronger participation, clearer absorption, and broader sponsorship, the move is treated as structurally healthier. These events contribute minimally to the CVMI, since they are generally interpreted as more durable displacement and less immediately mean-reversion-prone.
- Retail Flow: When an FVG forms through thinner opposition, vacuum-style expansion, or reactive one-sided chasing, the move is treated as structurally weaker. These events typically contribute more aggressively to the CVMI because they are more vulnerable to later rebalancing.
This classification is not binary. The engine evaluates the quality of participation, the character of the expansion, and the surrounding activity regime, then scales each imbalance’s impact accordingly.
Crucially, as price revisits these gap zones, the index unwinds in volumetric modes using opposing-side bar volume as a mitigation proxy rather than relying solely on full spatial closure. This allows decay before the gap is fully closed on the chart, capturing cases where volumetric fill has already negated the orderbook imbalance.
🔸 1.1 - Modes of Operation
- Spatio-Volumetric Mode(Default): Categorizes orderflow states using candle-shape for internal liquidity approximations.
- Footprint Mode(Premium): Utilizes TV’s granular Footprint tech to gauge buy/sell activity within a candle. Requires TV Premium. Due to current datastream limitations, this mode is prone to repainting. It is intended strictly for real-time analysis and is not compatible with bar replay.
- Spatial Mode: Spatial Mode removes the volumetric weighting layer and tracks imbalance purely by price structure. On symbols without volume data, the script automatically falls back to spatial behavior for gap processing
🔸 1.2 - Display Formats
Each of these three modes of operation can be displayed in two formats:
- Normalized Format: This is the default, and simplest format to intuit. An Adaptive Deviation Normalizer (ADN) is used to anchor the data to a 0-100 scale for clean overbought/oversold extremes, giving a clear signal that the market is leaving behind significant structural imbalances and is prone for mean reversion.
- Raw Data Format: This is the cumulative imbalance data-feed, designed for traders that wish to surpass the primary limitation of normalization functions, which is boundary-dragging. This mode is for the more proficient analysts, as it requires interpreting the active displacement range.
🔷 2.0 - Structural OrderBlock Mitigation Mechanism (SOMM)
The SOMM is a multi-timeframe engine that detects HTF OrderBlocks and dissects their internal LTF structure for surgical mitigation tracking.
🔸 2.1 - Phase Operation
- Detection Phase: An adaptive HTF selector identifies displacement candles forming classic 3-bar FVGs. Strict filters (consecutive-gap, minimum width, proximity) ensure only structurally significant, non-redundant blocks are tracked.
- Mitigation Phase: The engine maps every LTF Fair Value Gap within the block's price range. As price revisits the zone, each internal gap is tracked independently. The aggregate mitigation percentage updates in real-time as the gaps get filled. A block is only considered "mitigated" when every internal gap is filled and price confirms a close outside the zone.
- Failure Phase: Each block carries a structural break level. If price breaches this maximum tolerable distance, the block is retired, signaling the originating orderflow has been decisively overpowered.
Historical OBs are given granular control to gauge how many are visible, and which types are to extend till end-point. For the events when active OBs overlap, there are toggles for how this is handled (Skip/Supersede/Overlap). Each active OB also contains labels with mitigation percentage and creation volume.
🔸 2.2 - Signal Hooks
- Block Exhaustion: Block Exhaustion is available when the oscillator is normalized. It arms once an OrderBlock reaches the configured fill threshold and the normalized CVMI reaches its bullish or bearish extreme, then can fire instantly, on oscillator exit, or on price rebalance out of the block.
- Block Sweep: Block Sweep fires after price closes beyond the relevant OrderBlock edge, then reclaims the zone and confirms acceptance back inside it through the configured reclaim-close count. An optional oscillator filter can be applied before the signal is printed.
The SOMM also tracks Structural Shift levels derived from qualified HTF displacement-exit sequences built from consecutive HTF gap structures. Shift lines persist until broken, signifying a zone that should be defended or a reversal in market flow if lost. An optional LTF FVG anchor can snap the origin to a nearby qualifying lower-timeframe gap for tighter structural alignment.
🔷 3.0 - Liquidity Matrix
The Liquidity Matrix is a Live Orderflow Dashboard that visualizes where structural volume is concentrated. Projected alongside current price action, the left column represents Active (potential) volume, and the right column represents Filled (absorbed) volume.
This allows users to quickly gauge transitional potential in the tape, identifying where high unresolved volume is waiting to flow into historical liquidity voids, effectively rebalancing structural efficiency of the underlying market.
🔸 Sourcing Modes
- Imbalances Mode: Sources data from the FVG pool. Gap volume is distributed pro-rata across corresponding price rows. Partially filled gaps dynamically update the matrix, giving a granular view of outstanding vs. resolved structural inefficiency.
- Pivot Mode: Sources data from confirmed pivot highs/lows. The Active column highlights untested liquidity pools (resting stops/liquidations). The Filled column shows swept pivots where liquidity was taken.
----------------------------------------------------------------------------------------------------------------
🔷 4.0 - Additional Tools
While these three core pillars are standalone powerhouses in their own right with optional modularity, this framework works best when they are interconnected and feed data into each other.
For this cohesive vertical integration we provide additional tools to gauge confluence metrics, aside from the earlier mentioned signal hooks. These tools include:
- 🔹 Trend Panel: A compact trend display at the top of the chart signifies current structural direction, with heatmap-style strength derived from the normalized CVMI reading. It can reference either OrderBlocks or Pivots for directional state.
- 🔹 Squeeze Candles: Identifies single-bar momentum extremes using a rolling standard deviation. This flags structural displacement on the current bar without waiting for a 3-bar FVG confirmation. Provides an early-mover advantage compared to methodologies waiting for a full FVG confirmation.
- 🔹 Confluence Engine (Alerting): The built-in Confluence Engine allows traders to build compound, multi-step conditions(e.g. Price enters a Bullish OB -> the CVMI is Oversold -> the OB is more than 50% mitigated -> During NY Session), which appear as yellow markers on the chart. Includes a comprehensive Alert Suite capable of outputting clean JSON payloads for automated workflows, with configurable metadata fields such as symbol, timeframe, oscillator state, and timestamp.
Additionally, the script offers toggles to display the projected Pivot Points and FVGs used in the aforementioned calculations.
----------------------------------------------------------------------------------------------------------------
🔷 5.0 - How to Use This Framework in Trading
The framework is designed to highlight conditions where institutional displacement is exhausting and structural reversion becomes highly probable. A standard analytical workflow utilizing this system typically follows these conceptual phases:
- 1) Identifying the Draw on Liquidity: The Liquidity Matrix allows users to spot dense rows of active volume paired with low filled volume rows, visually highlighting primary candidates for orderbook rebalancing.
- 2) Gauging Structural Alignment: The Trend Gauge provides a real-time read on directional alignment. This naturally pairs with the OrderBlock Internal Mitigation structure to offer a secondary layer of confirmation regarding successful rebalances.
- 3) Confirming with CVMI Extremes: When the CVMI reaches an extreme reading (e.g., < 20 or > 80) concurrent with an OrderBlock test, it indicates that the market is carrying a heavy load of unmitigated pressure, creating an environment ripe for a potential reversal.
- 4) Synthesizing the Data: The appearance of "Exhaust" or "Sweep" Pattern Labels serves as a visual synthesis, confirming the confluence of price location and oscillator pressure. Depending on the overarching strategy, "Break" signals also offer actionable insights for counter-trend conditions.
This sequence represents just one analytical approach. The modular nature of the framework means these setups naturally adapt to the specific style of the user, while the built-in Confluence Engine exponentially expands the possible trade configurations.
----------------------------------------------------------------------------------------------------------------
🔹 Performance
Substantial algorithmic optimization has gone into keeping this multi-stream engine efficient, supported by bounded history and selective drawing updates. Users can increase certain thresholds for deeper historical visibility, though a similar effect can often be achieved with bar replay.
⚠️ Repainting
This indicator has been designed to be repaint-proof from the ground up, every element that is utilized in signals is executed on confirmed bars, and will have 1:1 parity with historical activity (with the exception of Footprint Mode). Drawings are given specific attention by color coding Pivots, Shifts and Orderblocks during the period when they were still not confirmed, as a differentiator from the confirmed phase. This provides instant intuitive feedback on reliable price activity with these objects.
Disclaimer: Past performance is not indicative of future results. This indicator offers no promise of financial gain and is strictly an analytical tool, to be used under the full responsibility of the user. Conceptual architecture and quantitative development carried out by Alien_Algorithms.
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Alien_Algorithms directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Hawk Liquidation Theory: medium.com/@FinanceHawk
Algo: tradingview.com/script/M8UgEdv8-Institutional-Imbalance-Framework-Alien-Algorithms/
Indicator Private Access in Discord.
Disclaimer
Invite-only script
Only users approved by the author can access this script. You'll need to request and get permission to use it. This is typically granted after payment. For more details, follow the author's instructions below or contact Alien_Algorithms directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Hawk Liquidation Theory: medium.com/@FinanceHawk
Algo: tradingview.com/script/M8UgEdv8-Institutional-Imbalance-Framework-Alien-Algorithms/
Indicator Private Access in Discord.