Hi, thanks for doing this indicator, but i think there is an error.
I compared your code with the Tradingview built-in Connors RSI code and it looked similar. But when I made my own StochCRSI with the built-in code it gave a slightly different result...
After some research i found that the error is in your updown function. If you plot updown(src, ud) the result is always 0. You can look at the built-in CRSI code to fix this...
@tsfp, @tsfp, Here is the weird thing - this is still better then the right calculation somehow. At least in my tests. I also found changing RSI length to 30 is better in most cases for connors rsi and stoch connors rsi. There are good things around 9 as well but I found 30 caught more winning signals.
The top is Everget. The bottom is with the normal CRSI added in direct from Tradingviews script.
Similar, but there are a few signals that the CRSI wins with the other misses. I'll show leading up to the breakout as well.
So please don't fix the code unless its a seperate upload. I like this!
burgercrisis
⋅
and here is leading up to the breakout. Last signals are the breakout occurrence. So, you can see that they are very similar, but if there is a winner, it is Evergets mistake. I love when that happens! xD
ts123
⋅
Hey, thanks for sharing this! Are you sure the updown calculation is correct? I've tried plotting it, and it seems the values are always -1, 0 or +1, but my understanding of the Connors RSI specs is they should be consecutive (e.g -1, -2, -3, +1, +2, -1, +1, +2): alvarezquanttrading.com/wp-content/uploads/2016/05/ConnorsRSIGuidebook.pdf
See page 7, it's streak duration as far as I understand it.
I compared your code with the Tradingview built-in Connors RSI code and it looked similar. But when I made my own StochCRSI with the built-in code it gave a slightly different result...
After some research i found that the error is in your updown function. If you plot updown(src, ud) the result is always 0. You can look at the built-in CRSI code to fix this...