DRSI by Cryptos Rocket - Relative Strength Index (RSI) Indicator with Enhancements
This script is a custom implementation of the Relative Strength Index (RSI) indicator, designed with several advanced features to provide traders with additional insights. It goes beyond the traditional RSI by including moving averages, Bollinger Bands, divergence detection, dynamic visualization and improved alert functions.
________________________________________
Key Features
1. RSI Calculation
The RSI is a momentum oscillator that measures the speed and change of price movements. It ranges from 0 to 100 and is calculated as:
• RSI = 100−(1001+Average GainAverage Loss)100 - \left( \frac{100}{1 + \frac{\text{Average Gain}}{\text{Average Loss}}} \right)
This script allows users to:
• Set the RSI length (default: 14).
• Choose the price source for calculation (e.g., close, open, high, low).
________________________________________
2. Dynamic Visualization
• Background Gradient Fill:
o Overbought zones (above 70) are highlighted in red.
o Oversold zones (below 30) are highlighted in green.
• These gradients visually indicate potential reversal zones.
________________________________________
3. Moving Averages
The script provides a range of moving average options to smooth the RSI:
• Types: SMA, EMA, SMMA (RMA), WMA, VWMA, and SMA with Bollinger Bands.
• Customizable Length: Users can set the length of the moving average.
• Bollinger Bands: Adds standard deviation bands around the SMA for volatil
ity analysis.
________________________________________
4. Divergence Detection
This feature identifies potential price reversals by comparing price action with RSI behavior:
• Bullish Divergence: When price forms lower lows but RSI forms higher lows.
• Bearish Divergence: When price forms higher highs but RSI forms lower highs.
Features include:
• Labels ("Bull" and "Bear") on the chart marking detected divergences.
• Alerts for divergences synchronized with plotting for timely notifications.
________________________________________
5. Custom Alerts
The script includes alert conditions for:
• Regular Bullish Divergence
• Regular Bearish Divergence
These alerts trigger when divergences are detected, helping traders act promptly.
________________________________________
Customization Options
Users can customize various settings:
1. RSI Settings:
o Length of the RSI.
o Price source for calculation.
o Enable or disable divergence detection (enabled by default).
2. Moving Average Settings:
o Type and length of the moving average.
o Bollinger Band settings (multiplier and standard deviation).
________________________________________
Use Cases
1. Overbought and Oversold Conditions:
o Identify potential reversal points in extreme RSI zones.
2. Divergences:
o Detect discrepancies between price and RSI to anticipate trend changes.
3. Volatility Analysis:
o Utilize Bollinger Bands around the RSI for added context on market conditions.
4. Trend Confirmation:
o Use moving averages to smooth RSI and confirm trends.
________________________________________
How to Use
1. Add the indicator to your chart.
2. Customize the settings based on your trading strategy.
3. Look for:
o RSI crossing overbought/oversold levels.
o Divergence labels for potential reversals.
o Alerts for automated notifications.
________________________________________
DRSI by Cryptos Rocket combines classic momentum analysis with modern tools, making it a versatile solution for technical traders looking to refine their strategies.