TimeFliesBuy

Patriot RSI

I haven't been on in awhile. Thought I'd do a quick 4th of July RSI

開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
//@version=2
study(title="Jesse's RSI", shorttitle="Patriotic RSI")
src = close, len = input(7, minval=1, title="Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
plot(rsi, color=orange)
band3 = hline(0, "zero", black, 2, 0)
band4 = hline(100, "100", black, 2, 0)
band1 = hline(80, "OB", red, 2, 1)
band0 = hline(20, "OS", green, 2, 1)
fill(band1, band0, color=white, transp=90)
fill(band4, band1, color=red, transp=30)
fill(band3, band0, color=blue, transp=30)