## ConnorsRSI

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

### Re: ConnorsRSI

ConnorsRSI_with_alert.lua
(18.84 KiB) Downloaded 323 times

Done, but... there is something wrong. I didn't manage to find not a single instance on the chart where these conditions for the alert are met. All screenshot provided are from TradingView. Maybe we needs this alert based on different indicator?

Apprentice
FXCodeBase: Confirmed User

Posts: 25428
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: ConnorsRSI

This is formula from Tradingview.

Source: https://www.tradingview.com/script/OD1o ... -RSI-Test/

Code: Select all
`//--study(title="Connors RSI")study("Connors RSI Test", shorttitle = "CRSI Test", overlay=false)//--------------- input parameterssrc = input(defval=close, type=source, title="Source")lenrsi = input(3, minval=1, type=integer, title="RSI Length")lenupdown = input(2, minval=1, type=integer, title="UpDown Length")lenroc = input(100, minval=1, type=integer, title="ROC Length")//--------------- define functionupdown(s) =>     isEqual = s == s[1]    isGrowing = s > s[1]    ud = isEqual ? 0 : isGrowing ? (nz(ud[1]) <= 0 ? 1 : nz(ud[1])+1) : (nz(ud[1]) >= 0 ? -1 : nz(ud[1])-1)    ud//--------------- calculate RSIsrsi = rsi(src, lenrsi)updownrsi = rsi(updown(src), lenupdown)percentrank = percentrank(roc(src, 1), lenroc)crsi = avg(rsi, updownrsi, percentrank)//--------------- calculate signalsig1 = (close >= open) and (crsi < (crsi[1] - 3)) ? 1 : nasig2 = (close <= open) and (crsi > (crsi[1] + 3)) ? 1 : na//-------------- plottingplot(crsi, color=blue, linewidth=1, title="Connors RSI")band1 = hline(70, color=gray, linestyle=dashed)band2 = hline(30, color=gray, linestyle=dashed)fill(band1, band2)plotshape(sig1, style=shape.labeldown, size=size.tiny, location=location.top, color=red)plotshape(sig2, style=shape.labelup, size=size.tiny, location=location.bottom, color=blue)//--END`
isamegrelo
FXCodeBase: Initiate

Posts: 114
Joined: Mon May 29, 2017 3:36 pm

### Re: ConnorsRSI

Your request is added to the development list under Id Number 4067

Apprentice
FXCodeBase: Confirmed User

Posts: 25428
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: ConnorsRSI

ConnorsRSI_with_alert.tradingview.lua
(18.86 KiB) Downloaded 345 times

Try this version.

Apprentice
FXCodeBase: Confirmed User

Posts: 25428
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: ConnorsRSI

why your version of Connors RSI is lagging?

isamegrelo
FXCodeBase: Initiate

Posts: 114
Joined: Mon May 29, 2017 3:36 pm

### Re: ConnorsRSI

I'm not sure the code looks the same.

Apprentice
FXCodeBase: Confirmed User

Posts: 25428
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

### Re: ConnorsRSI

Try ConnorsRSI_with_alert.tradingview now.

Apprentice
FXCodeBase: Confirmed User

Posts: 25428
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Previous

Return to Custom Indicators

### Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 13 guests