PROTECTED SOURCE SCRIPT
Dynamic ATR Cluster Support Resistance Zones

This is an original open-source indicator designed to identify dynamic support and resistance zones using pivot point clusters, adaptive ATR-based width, and volume-weighted strength scoring.
Key features:
- Zones are formed from clusters of nearby pivot highs and lows (not single lines), providing more robust levels.
- Zone width adapts dynamically using an ATR multiplier to match current market volatility.
- Strength score is calculated as: (number of pivot touches × 30) + (relative volume factor × 70) + bonus for large clusters (>5 pivots).
- Breakouts are confirmed only when price closes beyond the zone with volume exceeding the 20-period SMA × user-defined multiplier.
- Visual elements include semi-transparent zones (opacity increases with strength), optional strength labels inside zones, breakout arrows, and raw pivot markers.
- A floating status table in the top-right corner displays real-time signals: Pivot High/Low detection and Resistance/Support breaks.
- Invisible plots are included so signals are visible in the Data Window.
How it works:
- Pivots are detected using ta.pivothigh and ta.pivotlow with user-defined lookback.
- Nearby pivots within the ATR-based range are grouped into zones.
- Strength is computed based on touch count, volume at pivots, and cluster size.
- Zones are sorted by descending strength and limited to the user-defined maximum.
- Breakouts require both price closure outside the zone and volume confirmation.
Recommended usage:
- Works best on volatile instruments (crypto, forex, indices) and timeframes 15m and above.
- Typical settings: ATR Multiplier 1.0–1.5, Minimum Strength 50+, Volume Multiplier 1.4–1.8.
- Focus on high-strength zones as major support/resistance levels.
- Use confirmed breakouts as potential entry/exit signals, ideally combined with trend filters (SMA 50 is plotted by default).
Screenshots:

Shows multiple pivot clusters forming support zones, with raw "H" markers and strength labels visible.

Demonstrates a confirmed resistance breakout with red down arrow, updated status table ("Resistance Break: Yes ↑"), and zone color change.

Illustrates the indicator during a ranging/consolidation phase with several active zones, status table showing no breaks, and adaptive zone placement.
Limitations:
- Zones are dynamic and update when new pivots are confirmed (normal behavior for this type of indicator).
- Historical zones may shift slightly with new data; no repainting occurs within the current bar.
- Always validate signals manually and backtest in your specific market conditions.
Key features:
- Zones are formed from clusters of nearby pivot highs and lows (not single lines), providing more robust levels.
- Zone width adapts dynamically using an ATR multiplier to match current market volatility.
- Strength score is calculated as: (number of pivot touches × 30) + (relative volume factor × 70) + bonus for large clusters (>5 pivots).
- Breakouts are confirmed only when price closes beyond the zone with volume exceeding the 20-period SMA × user-defined multiplier.
- Visual elements include semi-transparent zones (opacity increases with strength), optional strength labels inside zones, breakout arrows, and raw pivot markers.
- A floating status table in the top-right corner displays real-time signals: Pivot High/Low detection and Resistance/Support breaks.
- Invisible plots are included so signals are visible in the Data Window.
How it works:
- Pivots are detected using ta.pivothigh and ta.pivotlow with user-defined lookback.
- Nearby pivots within the ATR-based range are grouped into zones.
- Strength is computed based on touch count, volume at pivots, and cluster size.
- Zones are sorted by descending strength and limited to the user-defined maximum.
- Breakouts require both price closure outside the zone and volume confirmation.
Recommended usage:
- Works best on volatile instruments (crypto, forex, indices) and timeframes 15m and above.
- Typical settings: ATR Multiplier 1.0–1.5, Minimum Strength 50+, Volume Multiplier 1.4–1.8.
- Focus on high-strength zones as major support/resistance levels.
- Use confirmed breakouts as potential entry/exit signals, ideally combined with trend filters (SMA 50 is plotted by default).
Screenshots:
Shows multiple pivot clusters forming support zones, with raw "H" markers and strength labels visible.
Demonstrates a confirmed resistance breakout with red down arrow, updated status table ("Resistance Break: Yes ↑"), and zone color change.
Illustrates the indicator during a ranging/consolidation phase with several active zones, status table showing no breaks, and adaptive zone placement.
Limitations:
- Zones are dynamic and update when new pivots are confirmed (normal behavior for this type of indicator).
- Historical zones may shift slightly with new data; no repainting occurs within the current bar.
- Always validate signals manually and backtest in your specific market conditions.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
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 protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarle liberamente e senza alcuna limitazione – ulteriori informazioni qui.
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.