OPEN-SOURCE SCRIPT
[blackcat] L3 Volume Imbalance Pro

█ OVERVIEW
Volume Imbalance Pro is a professional-grade order flow analysis indicator that leverages TradingView's nativePine Script® function to detect and visualize volume imbalances in real-time. This indicator reveals institutional trading activity through stacked imbalance detection, divergence analysis, VWAP validation, and multi-signal confirmation — essential tools for order flow traders seeking high-probability entry signals.
█ CONCEPTS
This indicator utilizes Volume Imbalance Analysis methodology to identify aggressive institutional order flow and potential price direction.
Key Principles:
• Volume Imbalance: Significant asymmetry between buy and sell volume at adjacent price levels, revealing aggressive institutional activity
• Stacked Imbalance: 3+ consecutive imbalance rows forming a "tower" — indicates strong directional conviction with 75-80% win rate
• Imbalance Strength: The ratio of dominant volume to passive volume, measuring intensity of institutional pressure
• Divergence Confirmation: RSI/MACD divergence combined with imbalance detection for high-probability reversal signals
• VWAP Validation: Price position relative to VWAP combined with imbalance direction confirms institutional alignment
• Absorption Detection: When price moves against imbalance direction, indicating institutional accumulation/distribution
█ HOW TO USE
1 — Setup
Add the indicator to your chart. Note: This indicator requires a Premium or Ultimate TradingView plan to access thePine Script® function.
2 — Parameter Guidance
• Ticks Per Row: Price granularity for footprint rows (lower = more detailed, higher = smoother)
• Value Area Percent: Typically 70%, defines the "fair value" zone boundaries
• Imbalance Threshold: 300% means 3:1 buy/sell ratio required for imbalance detection
• Min Stacked Imbalance Rows: Minimum consecutive imbalances for stacked signal (default: 3)
3 — Signal Interpretation
• Green heatmap clouds: Buy imbalance zones (potential support)
• Red heatmap clouds: Sell imbalance zones (potential resistance)
• Tower markers (▲/▼): Stacked imbalance signals with layer count
• Arrow flow lines: Capital flow direction visualization
Input Parameters:
• Ticks Per Row: Price range for each footprint row (default: 10)
• Value Area Percent: Volume percentage in value area (default: 70%)
• Imbalance Threshold: Buy/sell ratio threshold for imbalance detection (default: 300%)
• Min Stacked Imbalance Rows: Consecutive imbalances for stacked signal (default: 3)
• RSI Period: RSI calculation period (default: 14)
• RSI Overbought/Oversold: Extreme level thresholds (default: 70/30)
• MACD Fast/Slow/Signal: MACD parameters (default: 12/26/9)
█ FEATURES
5 Visualization Layers:
1. Imbalance Heatmap Cloud
• Semi-transparent boxes highlighting price levels with detected imbalances
• Green gradient: Buy imbalance intensity (darker = stronger)
• Red gradient: Sell imbalance intensity (darker = stronger)
• Intensity based on imbalance strength ratio
2. Stacked Imbalance Tower
• ▲ markers: Stacked buy imbalance layers (below price)
• ▼ markers: Stacked sell imbalance layers (above price)
• Layer count indicates signal strength (3+ layers = high win rate)
• Color intensity increases with stack height
3. Dynamic Arrow Flow
• Upward arrow: Pure buy imbalance (unidirectional bullish pressure)
• Downward arrow: Pure sell imbalance (unidirectional bearish pressure)
• Bidirectional arrows: Conflict zone (both buy and sell imbalances present)
• Width indicates conviction strength
4. VWAP Imbalance Validation Bar
• Real-time VWAP position indicator on right side
• Green bar segment: Buy imbalances above VWAP (institutional confirmation)
• Red bar segment: Sell imbalances below VWAP (institutional confirmation)
• Visual gauge of imbalance alignment with VWAP
5. Imbalance Pulse
• Histogram showing combined imbalance strength
• Positive pulse: Buy pressure dominance
• Negative pulse: Sell pressure dominance
• Height proportional to imbalance intensity
Signal Labels:
• 🏢 Stacked Buy/Sell Imbalance: 3+ consecutive imbalance layers with 75-80% win rate
• 💎 RSI+Imbalance Divergence: Divergence confirmed by imbalance — high win rate reversal
• ⬆️/⬇️ VWAP Breakout/Breakdown+Imb: VWAP cross with imbalance confirmation
• 🔵/🔴 RSI Oversold/Overbought+Imb: RSI extreme with imbalance alignment
• 📈/📉 MACD Golden/Death Cross+Imb: MACD cross with imbalance confirmation
• 🧽 Buy/Sell Absorption: Institutional accumulation/distribution detected
█ SIGNALS
Visual Elements:
• VWAP Line (Orange): Volume Weighted Average Price — institutional fair value
• POC Line (Yellow): Point of Control — highest volume price level
• Green Triangles: RSI oversold + buy imbalance (bounce warning)
• Red Triangles: RSI overbought + sell imbalance (pullback warning)
Status Table (Configurable Position):
• Buy Imbalance: Count, stacked status, and pressure direction
• Sell Imbalance: Count, stacked status, and pressure direction
• Imbalance Strength: Buy/Sell strength ratio with dominant side
• RSI: Current value, overbought/oversold status, and signal
• MACD: Histogram value, bullish/bearish status, and alignment
• VWAP Position: Distance from VWAP, position status, and breakout signal
• Divergence: Detection count, confirmation status, and type
• Absorption: Active absorption type and value indication
• Trend Direction: Combined trend assessment with MACD alignment
• Strength Score: Composite score (-100 to +100) with action recommendation
• Trading Recommendation: Final actionable signal with confidence level
Alert Conditions (7 Categories):
• 🏢 Stacked Imbalance Alerts: Stacked buy/sell imbalance detection (75-80% win rate)
• 💎 Divergence Alerts: RSI/MACD divergence confirmed by imbalance
• ⬆️/⬇️ VWAP Alerts: VWAP breakout/breakdown with imbalance confirmation
• 🔵/🔴 RSI Extreme Alerts: RSI oversold/overbought with imbalance alignment
• 📈/📉 MACD Cross Alerts: MACD golden/death cross with imbalance confirmation
• 🧽 Absorption Alerts: Institutional accumulation/distribution detection
• 🟢/🔴/⚔️ General Imbalance Alerts: Unidirectional or conflicting imbalance detection
█ SIGNAL STRENGTH SCORING
Composite Score Calculation (+/- 100):
• Buy Imbalance Present: +20
• Stacked Buy Imbalance: +20
• RSI Oversold + Buy Imbalance: +15
• MACD Bullish + Buy Imbalance: +15
• Price Above VWAP + Buy Imbalance: +15
• Buy Absorption: +15
• Sell Imbalance Present: -20
• Stacked Sell Imbalance: -20
• RSI Overbought + Sell Imbalance: -15
• MACD Bearish + Sell Imbalance: -15
• Price Below VWAP + Sell Imbalance: -15
• Sell Absorption: -15
Score Interpretation:
• +80 to +100: ⭐⭐⭐ STRONG BUY (Multi-Confirmed)
• +50 to +79: 🟢 ACTIVE BUY (Trend Confirmed)
• -50 to -79: 🔴 ACTIVE SELL (Trend Confirmed)
• -80 to -100: ⭐⭐⭐ STRONG SELL (Multi-Confirmed)
• Divergence Confirmed: 💎 Special Signal (Reversal Opportunity)
• Absorption Detected: Institutional Activity Signal
█ LIMITATIONS
• Requires Premium/Ultimate Plan: ThePine Script® function is only available on paid TradingView subscriptions
• Real-time Data Only: Footprint data is not available for historical bars on some instruments
• Tick Data Dependent: Accuracy depends on broker's tick data quality
• Not Suitable for All Markets: Best results on high-volume instruments (forex majors, indices, popular stocks)
• Visual Clutter: Multiple visualization layers may overlap on lower timeframes — disable unused features
• Repainting: Real-time footprint data updates during bar formation; signals are final on bar close
• Max Drawing Objects: Limited to 500 lines, 500 labels, 200 boxes — historical signals will be truncated
█ NOTES
• Best used on 5-minute to 4-hour timeframes for optimal signal clarity
• Combine with support/resistance and trend analysis for confirmation
• Stacked Imbalances (3+ layers) have historical 75-80% win rate
• Imbalance zones often act as support/resistance after initial move
• Divergences + Imbalance signals are more reliable at key market structure levels
• Absorption signals are strongest when occurring at known S/R zones
• VWAP alignment confirms institutional participation in the direction
Recommended Workflow:
1 — Identify market structure and key levels
2 — Check for stacked imbalance signals (3+ layers = high conviction)
3 — Confirm with VWAP position (above = bullish, below = bearish)
4 — Watch for divergence signals at extreme RSI levels
5 — Monitor absorption signals for institutional activity
6 — Use composite score for final entry confirmation
Pro Tips:
• Stacked buy imbalances at session lows often mark intraday bottoms
• Stacked sell imbalances at session highs often mark intraday tops
• Conflicting imbalances (both buy and sell) indicate consolidation — wait for breakout
• Combine with Volume Profile POC for confluence zones
• Use absorption signals to identify institutional entry/exit points
═════════════════════════════════════════════════════════════════════════
For questions or feedback, use comments section below.
Volume Imbalance Pro is a professional-grade order flow analysis indicator that leverages TradingView's native
█ CONCEPTS
This indicator utilizes Volume Imbalance Analysis methodology to identify aggressive institutional order flow and potential price direction.
Key Principles:
• Volume Imbalance: Significant asymmetry between buy and sell volume at adjacent price levels, revealing aggressive institutional activity
• Stacked Imbalance: 3+ consecutive imbalance rows forming a "tower" — indicates strong directional conviction with 75-80% win rate
• Imbalance Strength: The ratio of dominant volume to passive volume, measuring intensity of institutional pressure
• Divergence Confirmation: RSI/MACD divergence combined with imbalance detection for high-probability reversal signals
• VWAP Validation: Price position relative to VWAP combined with imbalance direction confirms institutional alignment
• Absorption Detection: When price moves against imbalance direction, indicating institutional accumulation/distribution
█ HOW TO USE
1 — Setup
Add the indicator to your chart. Note: This indicator requires a Premium or Ultimate TradingView plan to access the
2 — Parameter Guidance
• Ticks Per Row: Price granularity for footprint rows (lower = more detailed, higher = smoother)
• Value Area Percent: Typically 70%, defines the "fair value" zone boundaries
• Imbalance Threshold: 300% means 3:1 buy/sell ratio required for imbalance detection
• Min Stacked Imbalance Rows: Minimum consecutive imbalances for stacked signal (default: 3)
3 — Signal Interpretation
• Green heatmap clouds: Buy imbalance zones (potential support)
• Red heatmap clouds: Sell imbalance zones (potential resistance)
• Tower markers (▲/▼): Stacked imbalance signals with layer count
• Arrow flow lines: Capital flow direction visualization
Input Parameters:
• Ticks Per Row: Price range for each footprint row (default: 10)
• Value Area Percent: Volume percentage in value area (default: 70%)
• Imbalance Threshold: Buy/sell ratio threshold for imbalance detection (default: 300%)
• Min Stacked Imbalance Rows: Consecutive imbalances for stacked signal (default: 3)
• RSI Period: RSI calculation period (default: 14)
• RSI Overbought/Oversold: Extreme level thresholds (default: 70/30)
• MACD Fast/Slow/Signal: MACD parameters (default: 12/26/9)
█ FEATURES
5 Visualization Layers:
1. Imbalance Heatmap Cloud
• Semi-transparent boxes highlighting price levels with detected imbalances
• Green gradient: Buy imbalance intensity (darker = stronger)
• Red gradient: Sell imbalance intensity (darker = stronger)
• Intensity based on imbalance strength ratio
2. Stacked Imbalance Tower
• ▲ markers: Stacked buy imbalance layers (below price)
• ▼ markers: Stacked sell imbalance layers (above price)
• Layer count indicates signal strength (3+ layers = high win rate)
• Color intensity increases with stack height
3. Dynamic Arrow Flow
• Upward arrow: Pure buy imbalance (unidirectional bullish pressure)
• Downward arrow: Pure sell imbalance (unidirectional bearish pressure)
• Bidirectional arrows: Conflict zone (both buy and sell imbalances present)
• Width indicates conviction strength
4. VWAP Imbalance Validation Bar
• Real-time VWAP position indicator on right side
• Green bar segment: Buy imbalances above VWAP (institutional confirmation)
• Red bar segment: Sell imbalances below VWAP (institutional confirmation)
• Visual gauge of imbalance alignment with VWAP
5. Imbalance Pulse
• Histogram showing combined imbalance strength
• Positive pulse: Buy pressure dominance
• Negative pulse: Sell pressure dominance
• Height proportional to imbalance intensity
Signal Labels:
• 🏢 Stacked Buy/Sell Imbalance: 3+ consecutive imbalance layers with 75-80% win rate
• 💎 RSI+Imbalance Divergence: Divergence confirmed by imbalance — high win rate reversal
• ⬆️/⬇️ VWAP Breakout/Breakdown+Imb: VWAP cross with imbalance confirmation
• 🔵/🔴 RSI Oversold/Overbought+Imb: RSI extreme with imbalance alignment
• 📈/📉 MACD Golden/Death Cross+Imb: MACD cross with imbalance confirmation
• 🧽 Buy/Sell Absorption: Institutional accumulation/distribution detected
█ SIGNALS
Visual Elements:
• VWAP Line (Orange): Volume Weighted Average Price — institutional fair value
• POC Line (Yellow): Point of Control — highest volume price level
• Green Triangles: RSI oversold + buy imbalance (bounce warning)
• Red Triangles: RSI overbought + sell imbalance (pullback warning)
Status Table (Configurable Position):
• Buy Imbalance: Count, stacked status, and pressure direction
• Sell Imbalance: Count, stacked status, and pressure direction
• Imbalance Strength: Buy/Sell strength ratio with dominant side
• RSI: Current value, overbought/oversold status, and signal
• MACD: Histogram value, bullish/bearish status, and alignment
• VWAP Position: Distance from VWAP, position status, and breakout signal
• Divergence: Detection count, confirmation status, and type
• Absorption: Active absorption type and value indication
• Trend Direction: Combined trend assessment with MACD alignment
• Strength Score: Composite score (-100 to +100) with action recommendation
• Trading Recommendation: Final actionable signal with confidence level
Alert Conditions (7 Categories):
• 🏢 Stacked Imbalance Alerts: Stacked buy/sell imbalance detection (75-80% win rate)
• 💎 Divergence Alerts: RSI/MACD divergence confirmed by imbalance
• ⬆️/⬇️ VWAP Alerts: VWAP breakout/breakdown with imbalance confirmation
• 🔵/🔴 RSI Extreme Alerts: RSI oversold/overbought with imbalance alignment
• 📈/📉 MACD Cross Alerts: MACD golden/death cross with imbalance confirmation
• 🧽 Absorption Alerts: Institutional accumulation/distribution detection
• 🟢/🔴/⚔️ General Imbalance Alerts: Unidirectional or conflicting imbalance detection
█ SIGNAL STRENGTH SCORING
Composite Score Calculation (+/- 100):
• Buy Imbalance Present: +20
• Stacked Buy Imbalance: +20
• RSI Oversold + Buy Imbalance: +15
• MACD Bullish + Buy Imbalance: +15
• Price Above VWAP + Buy Imbalance: +15
• Buy Absorption: +15
• Sell Imbalance Present: -20
• Stacked Sell Imbalance: -20
• RSI Overbought + Sell Imbalance: -15
• MACD Bearish + Sell Imbalance: -15
• Price Below VWAP + Sell Imbalance: -15
• Sell Absorption: -15
Score Interpretation:
• +80 to +100: ⭐⭐⭐ STRONG BUY (Multi-Confirmed)
• +50 to +79: 🟢 ACTIVE BUY (Trend Confirmed)
• -50 to -79: 🔴 ACTIVE SELL (Trend Confirmed)
• -80 to -100: ⭐⭐⭐ STRONG SELL (Multi-Confirmed)
• Divergence Confirmed: 💎 Special Signal (Reversal Opportunity)
• Absorption Detected: Institutional Activity Signal
█ LIMITATIONS
• Requires Premium/Ultimate Plan: The
• Real-time Data Only: Footprint data is not available for historical bars on some instruments
• Tick Data Dependent: Accuracy depends on broker's tick data quality
• Not Suitable for All Markets: Best results on high-volume instruments (forex majors, indices, popular stocks)
• Visual Clutter: Multiple visualization layers may overlap on lower timeframes — disable unused features
• Repainting: Real-time footprint data updates during bar formation; signals are final on bar close
• Max Drawing Objects: Limited to 500 lines, 500 labels, 200 boxes — historical signals will be truncated
█ NOTES
• Best used on 5-minute to 4-hour timeframes for optimal signal clarity
• Combine with support/resistance and trend analysis for confirmation
• Stacked Imbalances (3+ layers) have historical 75-80% win rate
• Imbalance zones often act as support/resistance after initial move
• Divergences + Imbalance signals are more reliable at key market structure levels
• Absorption signals are strongest when occurring at known S/R zones
• VWAP alignment confirms institutional participation in the direction
Recommended Workflow:
1 — Identify market structure and key levels
2 — Check for stacked imbalance signals (3+ layers = high conviction)
3 — Confirm with VWAP position (above = bullish, below = bearish)
4 — Watch for divergence signals at extreme RSI levels
5 — Monitor absorption signals for institutional activity
6 — Use composite score for final entry confirmation
Pro Tips:
• Stacked buy imbalances at session lows often mark intraday bottoms
• Stacked sell imbalances at session highs often mark intraday tops
• Conflicting imbalances (both buy and sell) indicate consolidation — wait for breakout
• Combine with Volume Profile POC for confluence zones
• Use absorption signals to identify institutional entry/exit points
═════════════════════════════════════════════════════════════════════════
For questions or feedback, use comments section below.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Avoid losing contact!Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq 防止失联,请立即行动,加入本猫聊天群: discord.com/invite/ZTGpQJq
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Avoid losing contact!Don't miss out! The first and most important thing to do is to join my Discord chat now! Click here to start your adventure: discord.com/invite/ZTGpQJq 防止失联,请立即行动,加入本猫聊天群: discord.com/invite/ZTGpQJq
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.