OPEN-SOURCE SCRIPT
Dynamic RSI Level + Divergence [Metrify]

This script provides a customized approach to tracking RSI divergence by replacing static overbought and oversold levels with dynamic volatility bands. Standard oscillators often fail during strong trends by staying pinned above 70 or below 30, producing premature signals. To handle this, the indicator calculates a moving baseline for the RSI and wraps it in standard deviation bands. This allows the overbought and oversold boundaries to adapt to the current market situation.
Does the divergence delayed?
No. The divergence label is printed exactly at the bar where the condition becomes valid. There is no forward confirmation or repaint shifting. This honest approach may produce losing signals in strong trends, but it preserves the integrity of real-time detection.
Divergence filters (optional, set this to 0 to avoid the filter):
Does the divergence delayed?
No. The divergence label is printed exactly at the bar where the condition becomes valid. There is no forward confirmation or repaint shifting. This honest approach may produce losing signals in strong trends, but it preserves the integrity of real-time detection.
Divergence filters (optional, set this to 0 to avoid the filter):
- Min RSI Diff (Steepness) -> requires sufficient vertical gap between RSI pivots to avoid weak, flat divergences.
- Min Price Diff -> minimum price to move a meaningful distance (relative to ATR) between both pivots.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.
סקריפט קוד פתוח
ברוח האמיתית של TradingView, יוצר הסקריפט הזה הפך אותו לקוד פתוח, כך שסוחרים יוכלו לעיין בו ולאמת את פעולתו. כל הכבוד למחבר! אמנם ניתן להשתמש בו בחינם, אך זכור כי פרסום חוזר של הקוד כפוף ל־כללי הבית שלנו.
כתב ויתור
המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.