indicator · own pane · open source
ConnorsRSI
Running…
Loading chart…
About
ConnorsRSI combines three signals — a 2-period RSI on the up/down streak, the percentile rank of daily returns over 100 bars, and a 3-period RSI of price. Composite ranges 0-100.
- Above 90 = overbought, below 10 = oversold.
- Best on equities and indices; works on liquid crypto pairs.
- Raise
Rank Lookbackfor a smoother percentile score.
Source code
//@version=5
indicator("ConnorsRSI", overlay=false)
rsiLen = input.int(3, "RSI Length", minval=2, maxval=50)
streakLen = input.int(2, "Streak RSI Length", minval=2, maxval=20)
rankLen = input.int(100, "Percentile Lookback", minval=20, maxval=250)
src = input.source("close", "Source")
connorsRsi = (ta.rsi(src, rsiLen) + ta.rsi(ta.change(src), streakLen)) / 2.0
hline(90, "Overbought", color=color.gray, linestyle=hline.style_dashed)
hline(10, "Oversold", color=color.gray, linestyle=hline.style_dashed)
p_CRSI = plot(connorsRsi, "CRSI", color=color.maroon, linewidth=2)
alertcondition(ta.crossunder(connorsRsi, 10), "CRSI oversold", "ConnorsRSI crossed below oversold")
alertcondition(ta.crossover(connorsRsi, 90), "CRSI overbought", "ConnorsRSI crossed above overbought")
No comments yet.
Sign in to comment.