Libertus

Relative Strength Index - Divergences - Libertus

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".
版本注释:
Per popular demand, added alerts to pivot high and low.
Some code cosmetics.
版本注释:
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).

开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?