OPEN-SOURCE SCRIPT
Updated HOG Liquidity Zones

HOG Liquidity Zones (Swings & Sweeps)
📊 Overview
A precision tool for visualizing key liquidity zones formed by swing highs and lows. It tracks tap counts, volume strength, and identifies directional sweep targets, giving traders a visual edge in spotting high-probability reaction zones.
⚙️ How It Works
• Identifies swing highs/lows using pivot logic
• Plots colored zones based on wicks or full ranges
• Tracks volume or count of price taps to validate zones
• Optional debounce and body-only tap filters
• Zones invalidate when fully broken by candle closes
• Imbalance zones highlight key displacement gaps
• “NEXT” marker shows likely sweep direction
🎯 Inputs
• Pivot Lookback Length
• Tap Debounce & Body-Only Filters
• Filter Type (Tap Count or Volume)
• Invalidate on Close Toggle
• Imbalance Zone Display
• Custom Label Size & Text Size
✅ Benefits
• Clearly shows where liquidity pools have formed
• Adapts to both structure and trap-based strategies
• Tap tracking helps gauge zone strength
• Useful for identifying magnets, rejections, and sweeps
• Clean, non-intrusive visuals
📈 Use Cases
• Target stop hunts or liquidity sweeps
• Confirm high-traffic areas before entries
• Combine with trend overlays or breakout tools
• Trade toward the next “NEXT” target zone
⚠️ Notes
• Zones remain active until invalidated or swept
• Tap logic can be customized for conservative or aggressive bias
• Imbalance boxes are optional and highlight displacement candles
• This tool is for visual context — not a signal engine
📊 Overview
A precision tool for visualizing key liquidity zones formed by swing highs and lows. It tracks tap counts, volume strength, and identifies directional sweep targets, giving traders a visual edge in spotting high-probability reaction zones.
⚙️ How It Works
• Identifies swing highs/lows using pivot logic
• Plots colored zones based on wicks or full ranges
• Tracks volume or count of price taps to validate zones
• Optional debounce and body-only tap filters
• Zones invalidate when fully broken by candle closes
• Imbalance zones highlight key displacement gaps
• “NEXT” marker shows likely sweep direction
🎯 Inputs
• Pivot Lookback Length
• Tap Debounce & Body-Only Filters
• Filter Type (Tap Count or Volume)
• Invalidate on Close Toggle
• Imbalance Zone Display
• Custom Label Size & Text Size
✅ Benefits
• Clearly shows where liquidity pools have formed
• Adapts to both structure and trap-based strategies
• Tap tracking helps gauge zone strength
• Useful for identifying magnets, rejections, and sweeps
• Clean, non-intrusive visuals
📈 Use Cases
• Target stop hunts or liquidity sweeps
• Confirm high-traffic areas before entries
• Combine with trend overlays or breakout tools
• Trade toward the next “NEXT” target zone
⚠️ Notes
• Zones remain active until invalidated or swept
• Tap logic can be customized for conservative or aggressive bias
• Imbalance boxes are optional and highlight displacement candles
• This tool is for visual context — not a signal engine
Release Notes
🛠️ HOG Liquidity Zones — Update v1.1 (June 2025)✅ Improvements
- NEXT Label Toggle Added
• New input setting: "Show NEXT Label" (enabled by default)
• Dynamically highlights the most relevant untapped liquidity zone (above or below price)
• Behavior adapts to structure, recent pivots, and timeframe
• Helps anticipate potential reversal zones with zero clutter
🧼 Fixes & Enhancements
- NEXT label now respects proximity: only appears if a recent pivot occurred within the last 100 bars
- Prevents labels from floating on older structures or inactive charts
- Preserves pivot anchor points (ph_x1, pl_x1) across bars for consistent behavior
- Fixed inconsistent behavior between layouts by maintaining persistent tracking
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.