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
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.
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.
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.