PROTECTED SOURCE SCRIPT

Double RSI + MA Signal [AlgoRich]

146
Objective:

This indicator combines two RSI (Relative Strength Index) calculations with moving averages applied to each. It generates visual signals to help identify overbought, oversold conditions, and potential trend reversals.

Functions and Key Features:

Dual Customizable RSI:

Two RSIs are calculated using different periods (for example, one with 7 periods and another with 14 periods).
This allows you to compare two perspectives on price strength over different timeframes.
Selectable Moving Averages for the RSI:

Each RSI can be smoothed using a moving average, with the type being selectable:
EMA (Exponential Moving Average)
SMA (Simple Moving Average)
WMA (Weighted Moving Average)
DEMA (Double Exponential Moving Average), which is calculated in a custom way for a faster response.
You can also independently set the length (period) of these moving averages for each RSI.
Display of Key Levels:

Horizontal lines are drawn at important levels (80, 70, 50, 30, and 20).
These levels help identify overbought conditions (above 70 or 80) and oversold conditions (below 30 or 20).
Dynamic Colors and Fill Between the RSIs:

The two RSIs are plotted with dynamic colors that change based on their relationship:
For example, if the shorter-period RSI is above the longer-period RSI, a color (such as green) is used to indicate strength; otherwise, another color (such as red) is applied.
Additionally, a fill is drawn between the two RSIs that changes tone according to which RSI is dominant, making it easier to visualize divergences or convergences between them.
Signals Through Moving Averages Applied to the RSI:

snapshot

The moving averages applied to each RSI act as an additional reference line, helping to detect when the RSI is accelerating or stabilizing.
These lines are displayed on the chart in contrasting colors to make them easy to identify.
Benefits of Using This Indicator:

Early Trend Reversal Detection:
Combining two RSIs with different periods and their moving averages can help identify divergences and early changes in price strength.

Clear Visual Presentation:
The dynamic colors and fill between the RSIs provide a clear visual representation of which side (bullish or bearish) is dominating at any given time.

Flexibility and Customization:
The adjustable parameters allow you to tailor the indicator to different assets and timeframes, according to your trading preferences.

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.