Enhanced RSI Indicator with Divergence and Bands | TradingView Pine Script
A versatile TradingView Pine Script indicator that enhances the standard RSI with multiple moving average types, Bollinger Bands, divergence detection (regular and hidden), and an optional cRSI calculation. This script provides a comprehensive tool for technical analysis.
Type: technical indicators
Overview
This TradingView Pine Script indicator offers an enhanced version of the Relative Strength Index (RSI), incorporating customizable moving average overlays, Bollinger Bands, and both regular and hidden divergence detection. It also includes an optional cRSI (Cycle RSI) calculation for an alternative perspective on momentum.
Key Features
- Customizable RSI: Adjust RSI length and source input (e.g., close, open).
- Moving Average Integration: Overlay multiple moving average types (SMA, EMA, SMMA, WMA, VWMA) on the RSI with configurable lengths and types.
- Bollinger Bands: Optionally display Bollinger Bands around a chosen RSI or cRSI source, with options to highlight breakouts.
- Divergence Detection: Automatically identifies and plots regular and hidden bullish and bearish divergences on the RSI or cRSI.
- Optional cRSI: Calculate and display a Cycle RSI with configurable dominant cycle length.
- Additional Levels: Define custom horizontal levels for RSI analysis.
- Candle Coloring: Option to color price candles based on RSI overbought/oversold conditions.
How To Use
Apply this indicator to your TradingView charts and adjust the input parameters in the indicator settings to suit your trading strategy. Experiment with different symbols and timeframes to observe its behavior and identify potential trading signals.
Notes
This script is provided for educational and research purposes. Backtested results do not guarantee future performance. Always perform your own due diligence and employ robust risk management techniques before making any trading decisions.
Tags: TradingView Pine Script, free Pine Script code, indicator source code, RSI indicator, divergence indicator, Bollinger Bands, custom indicator, Pine Script library, trading indicator