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!
發布通知: 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.
發布通知: TD bugged out when publishing, repeating update.
發布通知: Minor update: Added ability to set alerts per user request.
發布通知: Update:
  • ability to remove pivots
  • ability to display smaller/shorter labels
發布通知: 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:
發布通知: Small fix: Pivots didn't hide if you checked both "Hide pivot" and "Color background".
從常用腳本中移除 新增至常用腳本

評論

Bull :What does it represent
Pivot :What does it represent
Bear :What does it represent
Red thread :What does it represent
+28 回覆
Looks great, does it repaint at all?
+8 回覆
emmanueldesk MDicko123
+2 回覆
Nice work friend, thanks for sharing. I threw your divergences on an implementation of RSX here:
+2 回覆
Libertus jaggedsoft
@jaggedsoft, thank you and good job with making that indicator.
+2 回覆
Love this, best RSI divergence script on TradingView
+2 回覆
Hi, are the signals provided immediately or two candles late?
+2 回覆
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.
+6 回覆
Great job. Among all scripts i find this one easiest to use and get lots of information on a single indicator. Adding pivots and emas i find nice entries. And one question : repaint? lol jk thanks for sharing man.
+1 回覆
首頁 股票篩選器 外匯篩選器 加密貨幣篩選器 全球財經日曆 如何運作 圖表功能 價格 推薦朋友 網站規則 幫助中心 網站 & 經紀商解決方案 小工具 圖表解決方案 輕量圖表庫 部落格 & 新聞 推特
概覽 個人資料設定 賬戶和賬單 推薦朋友 代幣 我的客服工單 幫助中心 發表的想法 粉絲 正在關注 私人訊息 在線聊天 登出