Log vs. no log is virtually the same.
@fskrypt for introducing geometric mean
Divergences by @RicardoSantos (@JustUncleL's edit)
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 a publication is governed by House Rules. You can favorite it to use it on a chart.
Sorry if I haven't replied to your message yet, I'm a bit backlogged :)
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
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.