SUPPORTI
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)