OPEN-SOURCE SCRIPT

RSI Divergence and Gradient

Theo stopl055
Cập nhật
The RSI Divergence and Gradient Indicator simplifies the process of identifying the relationship between price action and the Relative Strength Index (RSI). By integrating RSI data directly into the price chart, traders no longer need to open a separate pane to monitor RSI or manually compare price action and RSI.

This indicator allows traders to easily spot overbought or oversold conditions and detect divergences between price and RSI. These signals can help identify potential reversal points and more effectively assess trend strength.

Features

RSI Divergences: The script identifies and plots bullish and bearish RSI divergences, which can signal potential reversals. Bullish divergences are indicated by an upward triangle below the price bars, while bearish divergences are indicated by a downward triangle above the price bars.
Overbought/Oversold Gradient: The script uses a color gradient to highlight overbought and oversold conditions on the chart, helping traders visualize momentum and trend strength. The gradient dynamically adjusts based on RSI values, transitioning through different colors to represent the intensity of overbought or oversold conditions.
Customizable Gradient: The gradient is customizable, allowing traders to set their own thresholds for overbought and oversold levels, and to choose the colors that best suit their trading style. This flexibility ensures the indicator can be tailored to individual preferences.

How It Works

RSI Calculation: The indicator calculates RSI using the standard 14-period length by default, but this can be adjusted to suit the trader's needs.
Divergence Detection: The script identifies divergences by comparing the highest and lowest points of the RSI with the corresponding price levels over the RSI period length. When a divergence is detected, it is plotted on the chart to indicate a potential reversal.
Gradient Coloring: The gradient coloring system changes the bar colors based on RSI levels. The color transitions from a neutral tone to specified start and end colors as RSI approaches overbought or oversold thresholds, providing a visual cue for potential overextended market conditions.

Intended Use

This indicator is particularly useful for traders who want to combine momentum analysis with divergence signals to identify potential reversal points or confirm trend strength. The visual gradient aids in quickly assessing market conditions, making it easier to spot high-probability trading opportunities.
Phát hành các Ghi chú
The RSI Divergence and Gradient Indicator simplifies the process of identifying the relationship between price action and the Relative Strength Index (RSI). By integrating RSI data directly into the price chart, traders no longer need to open a separate pane to monitor RSI or manually compare price action and RSI.

This indicator allows traders to easily spot overbought or oversold conditions and detect divergences between price and RSI. These signals can help identify potential reversal points and more effectively assess trend strength.

Features

  • RSI Divergences: The script identifies and plots bullish and bearish RSI divergences, which can signal potential reversals. Bullish divergences are indicated by an upward triangle below the price bars, while bearish divergences are indicated by a downward triangle above the price bars.
  • Overbought/Oversold Gradient: The script uses a color gradient to highlight overbought and oversold conditions on the chart, helping traders visualize momentum and trend strength. The gradient dynamically adjusts based on RSI values, transitioning through different colors to represent the intensity of overbought or oversold conditions.
  • Customizable Gradient: The gradient is customizable, allowing traders to set their own thresholds for overbought and oversold levels, and to choose the colors that best suit their trading style. This flexibility ensures the indicator can be tailored to individual preferences.


How It Works

  1. RSI Calculation: The indicator calculates RSI using the standard 14-period length by default, but this can be adjusted to suit the trader's needs.
  2. Divergence Detection: The script identifies divergences by comparing the highest and lowest points of the RSI with the corresponding price levels over the RSI period length. When a divergence is detected, it is plotted on the chart to indicate a potential reversal.
  3. Gradient Coloring: The gradient coloring system changes the bar colors based on RSI levels. The color transitions from a neutral tone to specified start and end colors as RSI approaches overbought or oversold thresholds, providing a visual cue for potential overextended market conditions.


Intended Use

This indicator is particularly useful for traders who want to combine momentum analysis with divergence signals to identify potential reversal points or confirm trend strength. The visual gradient aids in quickly assessing market conditions, making it easier to spot high-probability trading opportunities.
Phát hành các Ghi chú
Bugfix Update:

- Added a short name to the indicator
- Fixed a bug with the oversold price color
- Updated the divergence logic so that the arrow shows on the peak and so that it doesn't print false positives
Relative Strength Index (RSI)rsi14rsi_divergencersidivergencersioverboughtrsioversold
stopl055

Mã nguồn mở

Theo tinh thần TradingView thực sự, tác giả của tập lệnh này đã xuất bản dưới dạng nguồn mở để các nhà giao dịch có thể hiểu và xác minh. Chúc mừng tác giả! Bạn có thể sử dụng miễn phí. Tuy nhiên, bạn cần sử dụng lại mã này theo Quy tắc nội bộ. Bạn có thể yêu thích nó để sử dụng nó trên biểu đồ.

Bạn muốn sử dụng tập lệnh này trên biểu đồ?

Thông báo miễn trừ trách nhiệm