OPEN-SOURCE SCRIPT
Clustered Support/Resistance (±% Tolerance, Last N Bars) – NO OF

In the last 1500 candles (user-adjustable), pivot highs and lows are clustered. If more than 20 touches occur within a ±1% tolerance zone, that level is marked as a support or resistance line.
The following parameters are configurable:
Tolerance (%)
Minimum touch count
Pivot left/right length
Maximum number of lines
This allows flexible identification of significant support and resistance zones based on repeated pivot clustering within the chosen lookback period.
The following parameters are configurable:
Tolerance (%)
Minimum touch count
Pivot left/right length
Maximum number of lines
This allows flexible identification of significant support and resistance zones based on repeated pivot clustering within the chosen lookback period.
Open-source script
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.
Disclaimer
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.
Open-source script
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.
Disclaimer
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.