OPEN-SOURCE SCRIPT

Liquidity Vacuum & Imbalance @MaxMaserati 3.0

914
Description:
Liquidity Vacuum & Imbalance 3.0, is an advanced order flow and smart money tool designed to detect, classify, and track inefficient price delivery in the markets.

Unlike standard Fair Value Gap (FVG), Unfair Pricing Gap indicators that solely look at three-bar price action, this script analyzes the underlying volume and order flow delta to distinguish between two completely different types of market inefficiencies: Liquidity Vacuums and Imbalances.

Understanding the difference between these two market phenomena is critical for finding high-probability Points of Interest (POIs) and determining the draw on liquidity.

🔍 Core Concepts
1. Liquidity Vacuums (Low Volume / Thin Book)

What it is: A rapid, violent price movement that occurs on below-average volume.

Why it happens: The order book is exceptionally thin. Because there is little resting liquidity (limit orders) to absorb market orders, price simply "slides" through the book, creating a vacuum.

How it behaves: Vacuums act as a magnet for future price action. Because these zones lack historical volume, price often returns to "rebalance" them.

Smart Mitigation Logic: In this indicator, Vacuums shrink dynamically. As price wicks into a Vacuum, the zone physically contracts on your chart, showing you exactly how much of the void remains to be filled.

2. Imbalance Flows (High Volume / Aggressive Flow)

What it is: A rapid price movement accompanied by high volume and a heavy Delta skew.

Why it happens: Institutional/aggressive participants are slamming the market with large orders, overwhelming the opposing side.

How it behaves: These act as strong structural support/resistance zones. The heavy volume transacted here implies participants will likely defend these levels upon a retest.

Smart Mitigation Logic: Unlike Vacuums, Imbalances are treated as static institutional zones. They do not shrink; they remain intact until they are fully breached/invalidated by price.

🌟 Key Features
Auto-Detect Premium Footprint: If you have access to TradingView's premium footprint data, the indicator utilizes request.footprint() to pull exact order flow Delta. If you do not, it utilizes a highly optimized internal algorithm to approximate LTF (Lower Timeframe) buy/sell volume pressure based on price action.

Custom Volume & Delta Thresholds: Total control over what defines "low volume" for vacuums and "high delta skew" for imbalances.

Multi-Layered Visuals: Zones are plotted using advanced layered polylines to give a beautiful, semi-transparent depth effect on your charts without cluttering your candles.

Delta Labels: Displays the exact accumulated Delta (Δ) at the center of the zone, showing you the exact net buying/selling pressure that caused the void.

Historical Tracking: Option to keep "Filled/Rebalanced" zones on the chart, turning them dark/grey so you can backtest how price reacts to these levels after they are mitigated.

⚙️ How to Use the Settings
Detection Settings: Choose to plot "Both", "True Vacuums Only", or "Imbalance Flows Only". Adjust the Lookback Period, Low Vol Threshold, and Price Movement Sensitivity to tune the indicator to your specific asset's volatility.

OrderFlow Settings: Toggle the native footprint data and set your minimum Delta Imbalance Threshold (e.g., 0.5 means Delta must be at least 50% of the total volume to qualify as an aggressive imbalance).

Visual Settings: Fully customize the colors for Bullish/Bearish Vacuums and Imbalances. Adjust how far the zones extend to the right and how many max active voids to keep on the chart to maintain performance.

💡 Trading Application
Targets (Take Profit): Unmitigated Liquidity Vacuums are excellent high-probability targets. The market abhors a vacuum and will generally gravitate toward them to rebalance the order book.

Entries (POIs): Imbalance Zones represent areas where aggressive institutional money stepped in. Look for LTF confirmation (change of character, breaks of structure) when price returns to retest an Imbalance Zone for high R:R entries.

Disclaimer: This script is for educational and analytical purposes only. Past performance is not indicative of future results. Always pair order flow concepts with broader market structure and strict risk management.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.