OPEN-SOURCE SCRIPT
RSI Divergence Indicator + Current Value - YOSI

RSI Divergence Indicator – TradingView
The RSI Divergence Indicator is a custom TradingView tool designed to detect and visualize both regular and hidden divergences between price action and the Relative Strength Index (RSI).
🔹 Core Features:
Plots RSI with standard overbought (70), oversold (30), and midline (50) levels.
Highlights regular bullish divergence (price makes lower low, RSI makes higher low).
Highlights regular bearish divergence (price makes higher high, RSI makes lower high).
Detects hidden bullish divergence (price higher low, RSI lower low).
Detects hidden bearish divergence (price lower high, RSI higher high).
Clear visual signals using colored markers and labels (“Bull”, “Bear”, “H Bull”, “H Bear”).
Built-in alert conditions to notify traders when new divergences appear.
🔹 Customization:
Adjustable RSI period and source (default: 14, close).
Configurable pivot lookback (left & right) for fine-tuning divergence detection.
Options to enable/disable plotting of specific divergence types.
Custom colors for bullish, bearish, hidden bullish, and hidden bearish signals.
🔹 Added Upgrade (based on your request):
Displays the current RSI value next to the line, allowing quick reference without hovering.
The RSI Divergence Indicator is a custom TradingView tool designed to detect and visualize both regular and hidden divergences between price action and the Relative Strength Index (RSI).
🔹 Core Features:
Plots RSI with standard overbought (70), oversold (30), and midline (50) levels.
Highlights regular bullish divergence (price makes lower low, RSI makes higher low).
Highlights regular bearish divergence (price makes higher high, RSI makes lower high).
Detects hidden bullish divergence (price higher low, RSI lower low).
Detects hidden bearish divergence (price lower high, RSI higher high).
Clear visual signals using colored markers and labels (“Bull”, “Bear”, “H Bull”, “H Bear”).
Built-in alert conditions to notify traders when new divergences appear.
🔹 Customization:
Adjustable RSI period and source (default: 14, close).
Configurable pivot lookback (left & right) for fine-tuning divergence detection.
Options to enable/disable plotting of specific divergence types.
Custom colors for bullish, bearish, hidden bullish, and hidden bearish signals.
🔹 Added Upgrade (based on your request):
Displays the current RSI value next to the line, allowing quick reference without hovering.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.