OPEN-SOURCE SCRIPT
Liquidity Swings [ Zero Lag ] - FloAlgo

This indicator identifies and tracks liquidity pools at swing highs and lows — a key Smart Money Concepts tool for visualizing institutional order flow and potential reversal zones.
How It Works
The script operates in three stages:
Visual Elements
Key Settings
How It Works
The script operates in three stages:
- Pivot Detection — Confirmed swing highs and lows are identified using a lookback period, establishing the outer boundaries of resting liquidity pools.
- Zone Tracking — For each pivot, the script counts how many subsequent bars trade through the liquidity zone (wick tip to body edge) and accumulates the total volume of those touches, revealing market interest at each level.
- Cross Event — When price closes beyond a pivot's extreme, the level is marked as "consumed" — liquidity has been taken and the level becomes a dashed historical reference rather than an active trading zone.
Visual Elements
- Solid horizontal lines extending from pivot levels to current price
- Semi-transparent zone boxes spanning from wick tip to body edge
- Dashed lines marking levels where liquidity has been consumed
- Volume/count labels pinned at pivot bars showing accumulated activity
- Color-coded zones: red for supply (highs), green for demand (lows)
Key Settings
- Pivot Lookback — Sensitivity of pivot high/low detection
- Swing Area — Zone definition: Wick Tip to body edge, or Full Range (wick to opposite wick)
- Filter Areas By — Display threshold metric: Count (number of touches) or Volume (total volume)
- Filter Value — Minimum threshold — zones only appear when activity exceeds this value
- Swing High/Low — Toggle visibility of supply or demand zones
- Label Size — Size of volume/count labels displayed on chart
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.