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.
סקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.
סקריפט קוד פתוח
ברוח TradingView אמיתית, היוצר של הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יכולים לבדוק ולאמת את הפונקציונליות שלו. כל הכבוד למחבר! למרות שאתה יכול להשתמש בו בחינם, זכור שפרסום מחדש של הקוד כפוף לכללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם אמורים להיות, ואינם מהווים, עצות פיננסיות, השקעות, מסחר או סוגים אחרים של עצות או המלצות שסופקו או מאושרים על ידי TradingView. קרא עוד בתנאים וההגבלות.