OPEN-SOURCE SCRIPT

Relative Strength Index - Divergences - Libertus

Aktualisiert
Hello all,

To ease everyone's trading experience I made this script which colors RSI overbought and oversold conditions and as a bonus displays bullish or bearish divergences in last 50 candles (by default, you can change it).
Script is open source, part of code is from Trading View examples. If you have suggestions or you already made some improvements, please report in comment.

Happy trading and good luck!
Versionshinweise
New version 2.0 of script. Most of logic is updated and upgraded.
Now divergences are shown for whole history.

Be warned that I increased lookback period to 90 bars by default. This is good for time frames up to 4H, even 4H in on the edge here.
Higher time frames then 4H probably need lower lookback period.

Please report any problems you encounter.
Versionshinweise
TD bugged out when publishing, repeating update.
Versionshinweise
Minor update: Added ability to set alerts per user request.
Versionshinweise
Update:
  • ability to remove pivots
  • ability to display smaller/shorter labels
Versionshinweise
What new:
  • adapted script to new pine language version (v4)
  • removed 8 n/a value that were cluttering indicator interface next to RSI value (only possible with v4 pine language)
  • added option to have colored indicator background instead of BULL/BEAR labels


If you don't want separate indicator for RSI divergences, you can use my RSI Divergences - Candle edition:
RSI Divergences - Candle Edition - Libertus


If you want OBV divergences script, check out:
OBV On Balance Volume - Divergences - Libertus
Versionshinweise
Small fix: Pivots didn't hide if you checked both "Hide pivot" and "Color background".
Versionshinweise
Per popular demand, added alerts to pivot high and low.
Some code cosmetics.
Versionshinweise
Added mid line with value 50 separating bullish and bearish momentum.
Changed colors for bullish and bearish momentum parts.
If you want to change colors or any value, you can do it in script settings (style part).
DIVdivergencesOscillatorsRelative Strength Index (RSI)rsi_divergence

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?


Auch am:

Haftungsausschluss