Libertus

Relative Strength Index - Divergences - Libertus

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!
Oct 04
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.
Oct 04
Versionshinweise: TD bugged out when publishing, repeating update.
Oct 05
Versionshinweise: Minor update: Added ability to set alerts per user request.
Oct 08
Versionshinweise: Minor update: fixed bug where divergences in some rare cases didn't show, usually on very low time frames


If you find this useful and want to revard me:
BTC TIP JAR: 1i7nojAjxFuyFwvnZx6hbXBTLkWaUjZ8C

Or visit my friends at CryptoCurrently community:
https://www.cryptocurrentlyvip.com/21
Oct 13
Versionshinweise: Update:
  • ability to remove pivots
  • ability to display smaller/shorter labels
Sep 27
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:

If you want OBV divergences script, check out:
Feb 28
Versionshinweise: Small fix: Pivots didn't hide if you checked both "Hide pivot" and "Color background".
Von Favorisierten Skripten entfernen Zu Favorisierten Skripten hinzufügen

Kommentare

Bull :What does it represent
Pivot :What does it represent
Bear :What does it represent
Red thread :What does it represent
+4 Antworten
Nice work friend, thanks for sharing. I threw your divergences on an implementation of RSX here:
+2 Antworten
Libertus jaggedsoft
@jaggedsoft, thank you and good job with making that indicator.
+1 Antworten
Looks great, does it repaint at all?
+1 Antworten
+1 Antworten
Love this, best RSI divergence script on TradingView
+1 Antworten
Hi, are the signals provided immediately or two candles late?
+1 Antworten
Libertus rashmi_kamaldeep_ico
@rashmi_kamaldeep_ico, Divergence signal is provided after two conditions are met: 1. last closed candle has divergences 2. current candle rsi/price is under (bear) or over (bull) last candle rsi/close price.
In real world that mean anything between few seconds after candle close or whole candle time, depending when price meets condition. Pivot is provided after 2 candles, but that isn't important for divergences.
+4 Antworten
Hello Libertus, Thanks for the great code. I want lines to be drawn on RSI connecting pivot and Bull or bear points. Can you help me as I am poor at coding.
Antworten
Startseite Aktien-Screener Forex-Screener Krypto-Screener Wirtschaftskalender So funktioniert es! Chartmerkmale Preise Einen Freund empfehlen Hausregeln Hilfe Center Webseite & Brokerlösungen Widgets Charting Lösungen Lightweight Charting Library Blog & News Twitter
Profil Profileinstellungen Konto und Abrechnung Einen Freund empfehlen Meine Support Tickets Hilfe Center Veröffentlichte Ideen Followers Ich folge Private Nachrichten Chat Abmelden