soru

RSI candles by soru v.1 plus

62
As requested. Cheers
開源腳本

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

免責聲明

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

想在圖表上使用此腳本?
study("RSI candles by soru v.1 plus")
len = input(title="RSI Period", defval=14)
o=rsi(open,len)
h=rsi(high,len)
l=rsi(low,len)
c=rsi(close,len)


//inputs
left = input(title="# bars to the left", type=integer, defval=30)

left_low = lowest(left)
left_high = highest(left)
newlow = low <= left_low
newhigh = high >= left_high

q = barssince(newlow)
w = barssince(newhigh)
col = q < w ?  #8B3A3A : #9CBA7F

plotcandle(o,h,l,c,color=col)
hline(80, color=navy, linestyle=dotted, linewidth=1)
hline(60, color=navy, linestyle=dotted, linewidth=1)
hline(40, color=navy, linestyle=dotted, linewidth=1)
hline(20, color=navy, linestyle=dotted, linewidth=1)

相關想法