OPEN-SOURCE SCRIPT
Dynamic Liquidity Zones

Dynamic Liquidity Zones is a price-action indicator designed to identify equal highs and equal lows where resting liquidity may be concentrated.
The indicator compares confirmed pivot points and creates a liquidity zone when two pivot highs or two pivot lows form within the selected equality threshold.
Liquidity Zone Types
EQH — Equal High liquidity zone
Equal highs may represent buy-side liquidity resting above previous highs. EQH zones are displayed using the selected bearish-zone color.
EQL — Equal Low liquidity zone
Equal lows may represent sell-side liquidity resting below previous lows. EQL zones are displayed using the selected bullish-zone color.
Dynamic Detection
The indicator uses adjustable left- and right-side pivot lengths to confirm meaningful swing highs and lows.
When two confirmed pivots are within the selected percentage threshold, a zone is drawn between their prices. The two pivot locations are marked with circular points, making it easier to identify the structure responsible for creating the zone.
Each active zone automatically extends to the latest bar until price sweeps its outer boundary.
Liquidity Sweeps
An EQH zone is considered swept when price trades above its highest boundary.
An EQL zone is considered swept when price trades below its lowest boundary.
After a sweep, the user can choose to:
• Keep the zone visible in a faded historical state
• Automatically delete the swept zone from the chart
Retained zones are relabeled as Swept EQH or Swept EQL, allowing previous liquidity events to remain available for market-structure review.
Volume Information
Optional volume labels display the volume associated with each pivot bar. The active zone label displays the combined pivot-bar volume used to form the liquidity zone.
Large values are automatically formatted using K and M abbreviations.
Zone Consolidation
Nearby active zones of the same type are grouped visually to reduce label congestion.
When multiple EQH or EQL zones exist within the consolidation range, the indicator displays a combined label such as:
2x EQH
3x EQL
The label can also display the combined pivot volume for the grouped zones.
Features
• Automatic equal-high and equal-low detection
• Adjustable pivot confirmation lengths
• Adjustable equality threshold
• Tracks multiple active liquidity zones
• Optional combined pivot-volume display
• Optional dashed zone midline
• Custom bullish and bearish colors
• Adjustable zone transparency
• Active zone-label consolidation
• Automatic sweep detection
• Option to retain or delete swept zones
• Optimized active-zone limit for lower-timeframe charts
Liquidity zones represent areas where orders may be resting, but they do not guarantee a reversal or continuation. Price can sweep a liquidity area and continue moving in the same direction.
This indicator should be combined with market structure, displacement, trend, session context, and appropriate risk management.
For educational and informational purposes only. This indicator is not financial advice and does not guarantee future results.
The indicator compares confirmed pivot points and creates a liquidity zone when two pivot highs or two pivot lows form within the selected equality threshold.
Liquidity Zone Types
EQH — Equal High liquidity zone
Equal highs may represent buy-side liquidity resting above previous highs. EQH zones are displayed using the selected bearish-zone color.
EQL — Equal Low liquidity zone
Equal lows may represent sell-side liquidity resting below previous lows. EQL zones are displayed using the selected bullish-zone color.
Dynamic Detection
The indicator uses adjustable left- and right-side pivot lengths to confirm meaningful swing highs and lows.
When two confirmed pivots are within the selected percentage threshold, a zone is drawn between their prices. The two pivot locations are marked with circular points, making it easier to identify the structure responsible for creating the zone.
Each active zone automatically extends to the latest bar until price sweeps its outer boundary.
Liquidity Sweeps
An EQH zone is considered swept when price trades above its highest boundary.
An EQL zone is considered swept when price trades below its lowest boundary.
After a sweep, the user can choose to:
• Keep the zone visible in a faded historical state
• Automatically delete the swept zone from the chart
Retained zones are relabeled as Swept EQH or Swept EQL, allowing previous liquidity events to remain available for market-structure review.
Volume Information
Optional volume labels display the volume associated with each pivot bar. The active zone label displays the combined pivot-bar volume used to form the liquidity zone.
Large values are automatically formatted using K and M abbreviations.
Zone Consolidation
Nearby active zones of the same type are grouped visually to reduce label congestion.
When multiple EQH or EQL zones exist within the consolidation range, the indicator displays a combined label such as:
2x EQH
3x EQL
The label can also display the combined pivot volume for the grouped zones.
Features
• Automatic equal-high and equal-low detection
• Adjustable pivot confirmation lengths
• Adjustable equality threshold
• Tracks multiple active liquidity zones
• Optional combined pivot-volume display
• Optional dashed zone midline
• Custom bullish and bearish colors
• Adjustable zone transparency
• Active zone-label consolidation
• Automatic sweep detection
• Option to retain or delete swept zones
• Optimized active-zone limit for lower-timeframe charts
Liquidity zones represent areas where orders may be resting, but they do not guarantee a reversal or continuation. Price can sweep a liquidity area and continue moving in the same direction.
This indicator should be combined with market structure, displacement, trend, session context, and appropriate risk management.
For educational and informational purposes only. This indicator is not financial advice and does not guarantee future results.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.