RicardoSantos

[RS]Multi Time Frame RSI

this one is more eye candy then usefull :p multiple lengths rsi.
開源腳本

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

免責聲明

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

想在圖表上使用此腳本?
study(title="[RS]Multi Time Frame RSI", shorttitle="[RS]MTFRSI", overlay=false)

fc = rsi(close, 2)
fh = rsi(close, 3)
fl = rsi(close, 5)


mc = rsi(close, 8)
mh = rsi(close, 13)
ml = rsi(close, 21)


sc = rsi(close, 34)
sh = rsi(close, 55)
sl = rsi(close, 89)

f1 = plot(fc, color=(fc >= fh ? green : red), style=circles, linewidth=2)
f2 = plot(fh, color=(fh >= fl ? green : red), style=circles, linewidth=1)
f3 = plot(fl, color=(fl >= mc ? #5dd963 : #d9635d), style=circles, linewidth=1)

m1 = plot(mc, color=(mc >= mh ? #2fcf37 : #cf372f), style=circles, linewidth=2, join=true)
m2 = plot(mh, color=(mh >= ml ? #18ca21 : #ca2118), style=circles, linewidth=1)
m3 = plot(ml, color=(ml >= sc ? #13a11a : #a11a13), style=circles, linewidth=1)

s1 = plot(sc, color=(sc >= sh ? #0e7913 : #79130e), style=circles, linewidth=2, join=true)
s2 = plot(sh, color=(sh >= sl ? #09500d : #500d09), style=circles, linewidth=1)
s3 = plot(sl, color=#9ca6b3, style=circles, linewidth=1)

hline(0, color=gray)
hline(30, color=gray)
hline(50, color=gray)
hline(70, color=gray)
hline(100, color=gray)

bgcolor(black, transp=0)