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.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.