OPEN-SOURCE SCRIPT
Advanced RSI — Mark 4

RSI was introduced by J. Welles Wilder Jr. in 1978 in New Concepts in Technical Trading Systems. It measures the velocity of gains vs. losses on a bounded 0–100 scale and popularized the 14-period lookback with 70/30 guide rails for overbought/oversold. Over time, traders added variations (different lengths, thresholds, smoothing, adaptive levels), but the core idea stayed the same: momentum turns often precede price turns.
and i initially started to make minor adjustments for personal use like changing the default to 17 , and using Tradingviews official RSI which comes with a MA embedded. but it was not enough. especially the visuals.
so, for this public release Mark 4 i enhanced RSI by incorporating :
1. Dual-Length Fusion
Two RSI periods (default 17 + 21) blended then lightly smoothed (TEMA by default) → steadier
line without dulling turns.
2. Adaptive OB/OS (ATR-aware) for fewer whipsaws.
3. OB/OS alt solution:
Brief yellow segments appear only at local extremes (default: >72 tops, <32 bottoms) to
emphasize exhaustion without repainting the whole line.
4. Signals you can actually see
Triangle markers for:
Bullish: RSI crossing up through adaptive OS (and still <40 at the cross).
Bearish: RSI crossing down through adaptive OB (and still >60 at the cross).
“Strong Bull/Bear” background nudges appear when momentum is pushing beyond the
bands.
Optional Divergence Tags
and
Tiny diamonds to flag potential bullish/bearish divergences (look-back based).
Info Table (can be hidden)
my Fav feature i included 5 colorways with modern themes.(pls check under INPUTS)
and i made all that to make the indicator visualization look awesome on high end displays.
Credits & acknowledgment
Inspired by the original RSI by J. Welles Wilder Jr. (1978).
Built to be modern, focused, and comfortable for long sessions—especially on dark/OLED displays.
THIS INDICATOR IS MORE THAN ENOUGH BUT I DO HAVE PRIVATE INDICATORS WITH DIFFERENT LOGIC FUNCTIONS.
I'm open for feedback/collaboration.
drsamc.
and i initially started to make minor adjustments for personal use like changing the default to 17 , and using Tradingviews official RSI which comes with a MA embedded. but it was not enough. especially the visuals.
so, for this public release Mark 4 i enhanced RSI by incorporating :
1. Dual-Length Fusion
Two RSI periods (default 17 + 21) blended then lightly smoothed (TEMA by default) → steadier
line without dulling turns.
2. Adaptive OB/OS (ATR-aware) for fewer whipsaws.
3. OB/OS alt solution:
Brief yellow segments appear only at local extremes (default: >72 tops, <32 bottoms) to
emphasize exhaustion without repainting the whole line.
4. Signals you can actually see
Triangle markers for:
Bullish: RSI crossing up through adaptive OS (and still <40 at the cross).
Bearish: RSI crossing down through adaptive OB (and still >60 at the cross).
“Strong Bull/Bear” background nudges appear when momentum is pushing beyond the
bands.
Optional Divergence Tags
and
Tiny diamonds to flag potential bullish/bearish divergences (look-back based).
Info Table (can be hidden)
my Fav feature i included 5 colorways with modern themes.(pls check under INPUTS)
and i made all that to make the indicator visualization look awesome on high end displays.
Credits & acknowledgment
Inspired by the original RSI by J. Welles Wilder Jr. (1978).
Built to be modern, focused, and comfortable for long sessions—especially on dark/OLED displays.
THIS INDICATOR IS MORE THAN ENOUGH BUT I DO HAVE PRIVATE INDICATORS WITH DIFFERENT LOGIC FUNCTIONS.
I'm open for feedback/collaboration.
drsamc.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.