OPEN-SOURCE SCRIPT
Advanced RSI with Divergence RCT

This indicator provides a comprehensive RSI analysis tool by combining the classic Relative Strength Index (RSI) with a smoothing Simple Moving Average (SMA), clearly defined overbought/oversold zones, and an advanced divergence detection engine.
--- Key Features ---
1. RSI with SMA: Plots the standard RSI along with a user-defined SMA of the RSI. This helps to smooth out price action and confirm the underlying trend, identifying potential buy/sell signals on crossovers.
2. Overbought/Oversold Levels: Highlights the extreme zones with dotted horizontal lines at 80 (overbought) and 20 (oversold), providing clear visual cues for potential market reversals.
3. Advanced Divergence Detection: Automatically identifies and plots both regular and hidden divergences (bullish and bearish) directly on the chart. This helps traders spot potential reversals that are not obvious from price action alone.
--- How to Use ---
- Trend Confirmation: When the RSI crosses above its SMA, it can signal a strengthening bullish trend. A cross below can signal a strengthening bearish trend.
- Reversal Zones: When the RSI enters the overbought zone (>80) or oversold zone (<20), traders may watch for a reversal in price.
- Divergence Signals:
- A Bullish Divergence (green label 'R') occurs when the price makes a lower low, but the RSI makes a higher low, suggesting downward momentum is fading.
- A Bearish Divergence (red label 'R') occurs when the price makes a higher high, but the RSI makes a lower high, suggesting upward momentum is fading.
- Hidden Divergences ('H' labels) can indicate the continuation of an existing trend.
--- Disclaimer ---
This script is for informational and educational purposes only. It is not financial advice. Past performance is not indicative of future results. Always do your own research before making any trading decisions.
--- Key Features ---
1. RSI with SMA: Plots the standard RSI along with a user-defined SMA of the RSI. This helps to smooth out price action and confirm the underlying trend, identifying potential buy/sell signals on crossovers.
2. Overbought/Oversold Levels: Highlights the extreme zones with dotted horizontal lines at 80 (overbought) and 20 (oversold), providing clear visual cues for potential market reversals.
3. Advanced Divergence Detection: Automatically identifies and plots both regular and hidden divergences (bullish and bearish) directly on the chart. This helps traders spot potential reversals that are not obvious from price action alone.
--- How to Use ---
- Trend Confirmation: When the RSI crosses above its SMA, it can signal a strengthening bullish trend. A cross below can signal a strengthening bearish trend.
- Reversal Zones: When the RSI enters the overbought zone (>80) or oversold zone (<20), traders may watch for a reversal in price.
- Divergence Signals:
- A Bullish Divergence (green label 'R') occurs when the price makes a lower low, but the RSI makes a higher low, suggesting downward momentum is fading.
- A Bearish Divergence (red label 'R') occurs when the price makes a higher high, but the RSI makes a lower high, suggesting upward momentum is fading.
- Hidden Divergences ('H' labels) can indicate the continuation of an existing trend.
--- Disclaimer ---
This script is for informational and educational purposes only. It is not financial advice. Past performance is not indicative of future results. Always do your own research before making any trading decisions.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。