PROTECTED SOURCE SCRIPT

Cluster + StochRSI convergence Buy & Short Dots

128
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.

Declinazione di responsabilità

Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.