OPEN-SOURCE SCRIPT

Liquidity Depth Indicator [BigBeluga]

2 039
🔵 OVERVIEW
Liquidity Depth Indicator [BigBeluga] visualizes the distribution, balance, and depth of liquidity within a selected lookback window.
It builds a full liquidity profile by scanning how often price interacted with each price level, generating cumulative buy-side and sell-side curves, heatmap intensity zones, and a clear Point of Control (PoC).
This provides a deep structural view of where liquidity sits, how it’s stacked, and which side of the market dominates.

🔵 CONCEPTS
  • Liquidity Binning — The full range (High → Low) over the lookback window is divided into 100 micro-price zones. Each candle contributes its volume into the bin closest to its close.
  • Buy/Sell Side Split
    • Zones above the midpoint = potential sell-side liquidity concentration.
    スナップショット
    • Zones below midpoint = potential buy-side liquidity concentration.
    スナップショット
  • Cumulative Liquidity Curves — Each side builds a flowing curve showing how liquidity stacks from mid toward extremes.
    スナップショット
  • Liquidity Heatmap — Highlights volume density at each price level using color intensity for easy visual analysis.
    スナップショット
  • Point of Control — The price level with the highest liquidity accumulation (max volume bin).
    スナップショット


🔵 FEATURES
  • 100-Level Volume Distribution — Scans all candles inside the lookback period and assigns each close to the nearest bin.
  • Sell-Side Depth Curve — Plotted above the midpoint, showing how sell liquidity increases as price moves toward the top of the range.
  • Buy-Side Depth Curve — Plotted below the midpoint, showing how buy liquidity builds toward the bottom of the range.
  • Volume Labels — Displays total buy-side and sell-side volume at curve peaks.
  • Mid-Range Liquidity Split — Calculates:
    • Buy-side liquidity %
    • Sell-side liquidity %
    Displayed in two vertical boxes next to the profile.
  • Liquidity Heatmap Overlay — Color-coded price strips showing where largest clusters sit:
    • Above midpoint → [color=orange]Sell zones[/color]
    • Below midpoint → [color=blue]Buy zones[/color]
  • PoC Detection — Draws the strongest liquidity level with a bold line and prints its relative volume.
  • Range Frame Lines — High, Low, and Mid lines are plotted to define the liquidity environment.
  • Auto-Cleanup & Rebuild — All curves, boxes, and heatmap segments are refreshed each bar using barstate.islast.


🔵 HOW IT WORKS
  • 1. Determines High, Low, and Mid over the lookback window.
  • 2. Divides the range into 100 bins based on linear spacing.
  • 3. Accumulates volume per bin depending on where each candle’s close lands.
  • 4. Builds total, buy-side, and sell-side cumulative curves.
  • 5. Colors the heatmap based on normalized volume per bin.
  • 6. Locates PoC — the bin with maximum volume.
  • 7. Creates buy/sell percentage distribution boxes.


🔵 HOW TO USE
  • Identify Liquidity Imbalance — Compare the buy vs sell percentage boxes to see which side dominates.
  • Spot Strong Liquidity Walls — Thick portions of cumulative curves represent areas price may reject.
  • Read PoC as a Magnet — Price often gravitates toward the PoC or reacts strongly once reached.
  • Evaluate Breakout Strength — If liquidity is concentrated at extremes, a breakout may face strong absorption.
  • Use Heatmap as Hidden S/R — The brightest zones frequently act as hidden support/resistance.
  • Detect Exhaustion Areas — If a curve sharply thins near highs or lows, the trend may weaken.


🔵 CONCLUSION
Liquidity Depth Indicator [BigBeluga] is a powerful microstructure tool that reveals where liquidity is stacked within a price range.
By combining cumulative curves, heat mapping, and PoC identification, it exposes both visible and hidden liquidity layers — helping traders spot absorption zones, reversal clusters, liquidity pools, and trend exhaustion areas with high clarity.

免責事項

この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。