OPEN-SOURCE SCRIPT
Updated Whale Absorption and Liquidity Zones

This indicator identifies institutional absorption zones by analyzing the convergence of high relative volume and specific price action signatures (VSA - Volume Spread Analysis).
How it works (The Math):
1. Volume Anomaly: The script calculates a 20-period Simple Moving Average (SMA) of volume. An "Institutional Spike" is detected when current volume exceeds the SMA by a user-defined multiplier (default 1.5x).
2. Absorption Logic: To confirm absorption, the price must close within a specific range of the candle's total spread. For a "Whale Buy", the close must be in the upper 40% of the candle despite high selling pressure during the bar.
3. Dynamic Liquidity: It uses ta.pivothigh and ta.pivotlow functions with a 20-period lookback to map where "Stop Losses" (Liquidity) are likely resting. These levels are extended to the right until mitigated by price action.
Instructions:
*. Triangles: Signal potential institutional entries.
*. Dashed Lines: Major liquidity pools (Targets).
*. Optimized for Pine Script v6.
Release Notes
V2.3 Update: Re-added alert conditions for Liquidity Top and Bottom (S/R levels). Optimized for automation and webhook integration with LeviatanSignals bot.
Release Notes
V2.8 Update: Total Integration & Visual Cleanup
*. Hybrid Alerts: Added separate AlertConditions for "Sniper" entries (Whale) and "Trend" entries (Liquidity).
*. Auto-Cleaner Engine: Implemented a mitigation system that automatically stops liquidity lines once price touches them, keeping the chart free of visual noise.
*. Spam Filter: Added a signal recurrence filter to ensure only significant institutional moves are highlighted.
*. Precision Positioning: Improved wick-to-label alignment for better technical analysis.
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.
🔱 LeviatanSignals® — automação de fluxo institucional (SMC) para Binance e MEXC Futures. Vídeos, app e mais: leviatansignals.com.br/
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.
🔱 LeviatanSignals® — automação de fluxo institucional (SMC) para Binance e MEXC Futures. Vídeos, app e mais: leviatansignals.com.br/
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.