PROTECTED SOURCE SCRIPT
Updated

Divergences RSI

1 805
Shows divergences between RSI and price.

Price higher highs and RSI lower highs -> bear divergence
Price lower lows and RSI higher lows -> bull divergence

Uses pivots to detect highs/lows on RSI then compares them against previous values.

Use "Show pivots" to tune your pivot levels.

An EMA is applied to RSI for smoothing.
Release Notes
Fixed bug where multiple divergences didn't show on pivot recalculation
Release Notes
Cleanup
Release Notes
removed other inds in publish

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.