luigi.cola

String input - time frame's high and low

186 0 21
SUPPORTI
Remove from Favorite Scripts Add to Favorite Scripts
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)
United States
United Kingdom
India
Deutschland
France
España
Italia
Polska
Türkiye
Россия
Brasil
Indonesia
Malaysia
ประเทศไทย
Việt Nam
日本
한국
简体
繁體
Home Stock Screener Forex Signal Finder Cryptocurrency Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing My Support Tickets Contact Support Ideas Published Followers Following Private Messages Chat Sign Out