luigi.cola

String input - time frame's high and low

26
SUPPORTI
開源腳本

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

免責聲明

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

想在圖表上使用此腳本?
study(title="String input - time frame's high and low", overlay=true)

tf = input(title="Higher time frame", type=string, defval="360")
High_Close  =input(title="High_Close",type=bool,defval=false)
Low_Close   =input(title="Low_Close",type=bool,defval=false)
Close_Cande =input(title="Close_Candle",type=bool,defval=false)

//plot_High(b,tfh,col) =>
//    tfhf=tfh
//    colf=col
//   plot( series=tfh, color=col, linewidth=2)
   // 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


tfHigh = security(tickerid, tf,high)
tfClose =security(tickerid,tf,close)
tfLow = security(tickerid, tf, low)
//DiffH=tfHigh-tfClose
hcolor=tfLow!= tfLow[1] ? na : blue
hcolor1=tfHigh!=tfHigh[1] ? na :red
hcolor2=tfHigh!=tfHigh[1] ? na :black
//h=High_Close
//plot(High_Close ? tfHigh:na)
//plot_High(High_Color,tfHigh,hcolor1)

plot( series=tfHigh, color=hcolor1, linewidth=2)
plot(series=tfClose,color=hcolor2,linewidth=2)
plot(series=tfLow, color=hcolor, linewidth=2)