OPEN-SOURCE SCRIPT

RSI+Stoch Band Oscillator

495
📈 RSI + Stochastic Band Oscillator
Overview:

The RSI + Stochastic Band Oscillator is a technical indicator that combines the strengths of both the Relative Strength Index (RSI) and the Stochastic Oscillator. Instead of using static thresholds, this indicator dynamically constructs upper and lower bands based on the RSI and Stochastic overbought/oversold zones. It then measures the relative position of the current price within this adaptive range, effectively producing a normalized oscillator.

Key Components:

RSI-Based Dynamic Bands:

Using RSI values and exponential moving averages of price changes, upper and lower dynamic bands are constructed.

These bands adjust based on overbought and oversold levels, offering a more responsive framework than fixed RSI thresholds.

Stochastic-Based Dynamic Bands:

Similarly, Stochastic %K and %D values are used to construct dynamic bands.

These adapt to overbought and oversold levels by recalculating potential high/low values within the lookback window.

Oscillator Calculation:

The oscillator (osc) is computed as the relative position of the current close within the combined upper and lower bands of both RSI and Stochastic.

This value is normalized between 0 and 100, allowing clear identification of extreme conditions.

Visual Features:

The oscillator is plotted as a line between 0 and 100.

Color-filled areas highlight when the oscillator enters extreme zones:

Above 100 with falling momentum: Red zone (potential reversal).

Below 0 with rising momentum: Green zone (potential reversal).

Additional trend conditions (falling/rising RSI, %K, and %D) are used to strengthen reversal signals by confirming momentum shifts.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.