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.
สคริปต์โอเพนซอร์ซ
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.
คำจำกัดสิทธิ์ความรับผิดชอบ
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.
สคริปต์โอเพนซอร์ซ
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.
คำจำกัดสิทธิ์ความรับผิดชอบ
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.