OPEN-SOURCE SCRIPT
Сильные уровни

Strong Levels (Clustering + Auto-Update) — Resistance/Support Detection
This indicator automatically detects, tracks, and updates strong support and resistance levels using pivot points, level clustering, touch-reaction logic, and strength scoring.
It is designed for traders who want dynamic, high-quality S/R levels that adapt to current market structure.
Key Features
1. Pivot-Based Level Detection
Identifies local highs/lows using user-defined left/right pivot parameters.
Adds new resistance (R) or support (S) levels automatically.
2. Smart Level Filtering
Minimum distance filter ensures only meaningful levels are kept.
Automatic deletion of old or invalidated levels.
Maximum level count to keep the chart clean.
3. Touch Detection & Strength Calculation
A level becomes “touched” when price approaches it within a customizable tolerance.
Each touch increases the level’s strength score.
Levels are removed after a breakout or after a confirmed bounce in the opposite direction.
4. Clustering of Nearby Levels
Nearby levels (within percentage range) are grouped into clusters.
The strongest level within each cluster becomes the cluster “winner.”
The globally strongest level across all clusters is highlighted.
5. Visual Enhancements
Strongest cluster level uses:
Solid line style
Thicker line width
Regular levels use dotted lines.
Labels show:
Type: R (resistance) / S (support)
Price
Touch count (strength)
6. Fully Customizable
Pivot sensitivity
Touch tolerance
Bounce threshold
Minimum level spacing
Cluster range sensitivity
Line colors and widths
Label display toggle
Usage Tips
Increase pivot size for higher-timeframe levels.
Decrease cluster tolerance for instruments with low volatility.
Use level strength (touch count) to identify the most reliable zones.
This indicator automatically detects, tracks, and updates strong support and resistance levels using pivot points, level clustering, touch-reaction logic, and strength scoring.
It is designed for traders who want dynamic, high-quality S/R levels that adapt to current market structure.
Key Features
1. Pivot-Based Level Detection
Identifies local highs/lows using user-defined left/right pivot parameters.
Adds new resistance (R) or support (S) levels automatically.
2. Smart Level Filtering
Minimum distance filter ensures only meaningful levels are kept.
Automatic deletion of old or invalidated levels.
Maximum level count to keep the chart clean.
3. Touch Detection & Strength Calculation
A level becomes “touched” when price approaches it within a customizable tolerance.
Each touch increases the level’s strength score.
Levels are removed after a breakout or after a confirmed bounce in the opposite direction.
4. Clustering of Nearby Levels
Nearby levels (within percentage range) are grouped into clusters.
The strongest level within each cluster becomes the cluster “winner.”
The globally strongest level across all clusters is highlighted.
5. Visual Enhancements
Strongest cluster level uses:
Solid line style
Thicker line width
Regular levels use dotted lines.
Labels show:
Type: R (resistance) / S (support)
Price
Touch count (strength)
6. Fully Customizable
Pivot sensitivity
Touch tolerance
Bounce threshold
Minimum level spacing
Cluster range sensitivity
Line colors and widths
Label display toggle
Usage Tips
Increase pivot size for higher-timeframe levels.
Decrease cluster tolerance for instruments with low volatility.
Use level strength (touch count) to identify the most reliable zones.
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.