OPEN-SOURCE SCRIPT

Stochastic RSI with Divergences

Updated
Took my other Log RSI script and plugged in Stochastic RSI to see how divergences play on an oscillator with two lines. Turns out divergences are good at predicting changes in the oscillator but that doesn't mean that the oscillator will always mimic price action.

Log vs. no log is virtually the same.

Credits to
fskrypt for introducing geometric mean
Divergences by RicardoSantos (JustUncleL's edit)
Release Notes
Added toggle for using average of K and D or only K for divergences
Release Notes
Added toggle for (low strikerate) hidden divergences. Now off by default.
Centered OscillatorsdivergencesRelative Strength Index (RSI)Stochastic RSI (STOCH RSI)

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


My published indicators: tradingview.com/u/NeoButane/

Sorry if I haven't replied to your message yet, I'm a bit backlogged :)
Also on:

Disclaimer