PROTECTED SOURCE SCRIPT
Cluster + StochRSI convergence Buy & Short Dots

Description:
This script plots high-precision Buy and Short Signals based on a combination of a custom Cluster Algorithm and a Normalized Stochastic RSI filter.
Cluster Algo Logic:
Detects momentum flips using a normalised EMA stretched against Bollinger Bands.
A "Cluster Turn" is identified when the momentum flips from Red→Green under 30 threshold (Buy setup) or Green→Red above 70 threshold (Short setup), combined with prior trend confirmation (required Red or Green bars).
Stochastic RSI Filter:
A normalised StochRSI is used to confirm oversold (for Buys) and overbought (for Shorts) reversals.
Crossovers of the %K and %D lines are required under strict thresholds (below 20 for Buys, above 80 for Shorts).
Entry Dot System:
Light Dots (Green for Buys, Red for Shorts) are plotted when either the Cluster condition or StochRSI condition is first satisfied ("Get Ready" signals).
Dark Dots (Strong Green or Strong Red) are plotted when both conditions are completed within a user-defined number of bars ("Confirmed Entry" signals).
This dual confirmation reduces false signals and aligns entries with meaningful momentum shifts and overbought/oversold conditions.
Editable Parameters:
Cluster Algo Settings:
Bollinger Bands Length
Bollinger Bands Standard Deviation
Signal Line Length (EMA)
Cluster Trend Filters:
Required Red Bars Before Cluster Turn (Buy setups)
Required Green Bars Before Cluster Flip Red (Short setups)
Timing Flexibility:
Max Bars Between Cluster and StochRSI (how far apart the two events can occur)
Stochastic RSI Settings:
RSI Length
Stochastic Length
K Smoothing
D Smoothing
Notes:
Only confirmed dual conditions within the allowed bar window trigger final entry signals.
Overbought and Oversold levels (20/30/70/80) are plotted faintly for additional visual clarity.
The script does not repaint — all signals occur after the bar closes.
This script plots high-precision Buy and Short Signals based on a combination of a custom Cluster Algorithm and a Normalized Stochastic RSI filter.
Cluster Algo Logic:
Detects momentum flips using a normalised EMA stretched against Bollinger Bands.
A "Cluster Turn" is identified when the momentum flips from Red→Green under 30 threshold (Buy setup) or Green→Red above 70 threshold (Short setup), combined with prior trend confirmation (required Red or Green bars).
Stochastic RSI Filter:
A normalised StochRSI is used to confirm oversold (for Buys) and overbought (for Shorts) reversals.
Crossovers of the %K and %D lines are required under strict thresholds (below 20 for Buys, above 80 for Shorts).
Entry Dot System:
Light Dots (Green for Buys, Red for Shorts) are plotted when either the Cluster condition or StochRSI condition is first satisfied ("Get Ready" signals).
Dark Dots (Strong Green or Strong Red) are plotted when both conditions are completed within a user-defined number of bars ("Confirmed Entry" signals).
This dual confirmation reduces false signals and aligns entries with meaningful momentum shifts and overbought/oversold conditions.
Editable Parameters:
Cluster Algo Settings:
Bollinger Bands Length
Bollinger Bands Standard Deviation
Signal Line Length (EMA)
Cluster Trend Filters:
Required Red Bars Before Cluster Turn (Buy setups)
Required Green Bars Before Cluster Flip Red (Short setups)
Timing Flexibility:
Max Bars Between Cluster and StochRSI (how far apart the two events can occur)
Stochastic RSI Settings:
RSI Length
Stochastic Length
K Smoothing
D Smoothing
Notes:
Only confirmed dual conditions within the allowed bar window trigger final entry signals.
Overbought and Oversold levels (20/30/70/80) are plotted faintly for additional visual clarity.
The script does not repaint — all signals occur after the bar closes.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.