NeoButane

Stochastic RSI with Divergences

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)
Versionshinweise: Added toggle for using average of K and D or only K for divergences
Versionshinweise: Added toggle for (low strikerate) hidden divergences. Now off by default.
Open-source Skript

Ganz im Sinne von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es verstehen und überprüfen können. Ein Hoch auf den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Publikation unterliegt den Hausregeln. Sie können das Skript den Favoriten hinzufügen, um es auf dem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?
My published indicators: https://www.tradingview.com/u/NeoButane/#published-scripts

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

Kommentare

is there any way to adjust the lookback period?
+4 Antworten
Good job
+4 Antworten
thanks!!!!!
+3 Antworten
Thank you, very useful!
+2 Antworten
pplscom HeroWanted
@HeroWanted, how to use this
+3 Antworten
Thanks :)
+2 Antworten
how can I get the ALARM???
+1 Antworten
NeoButane yanebaby3
@yanebaby3,

alertcondition(regular_bearish_div, "Regular Bearish Stoch RSI", "Regular bearish div. on SRSI")
alertcondition(regular_bullish_div, "Regular Bullish Stoch RSI", "Regular bullish div. on SRSI")
alertcondition(hidden_bearish_div, "Hidden Bearish Stoch RSI", "Hidden bearish div. on SRSI")
alertcondition(hidden_bullish_div, "Hidden Bullish Stoch RSI", "Hidden bullish div. on SRSI")

Add that to the bottom. Just a FYI it will let you know two candles late
Antworten
Redallica NeoButane
@NeoButane, Is there a way to make the alerts sent quicker than 2 days late ? let's say just one day ? What do we need to change in the code ?
Thanks
Antworten
NeoButane Redallica
@Redallica, it is impossible because the alerts requires two bars to confirm.

You can try setting alerts on a lower timeframe, such as using alerts on the 12H, which mean it will send it 1 day late; if on 4H, 8 hours late. But doing so will mean having different Stoch RSI values.
Antworten