TradingView
ahoudori
2017年12月15日午前1時23分

High Low DayBox 

British Pound/Japanese YenFXCM

詳細

//Created By Ahoudori
//High Low DayBox
study(title="High Low DayBox", shorttitle="High Low DayBox", overlay=true)
st = input(true, title="Show Todays OHLC?")
//sy = input(false, title="Show Yesterdays OHLC?")

//Daily
ph = security(tickerid, 'D', high)
//pdh = security(tickerid, 'D', high[1])
pl = security(tickerid, 'D', low)
//pdl = security(tickerid, 'D', low[1])

//Daily Plots
//offs_daily = 0
plot(st and ph ? ph : na, title="Daily High", style=line, linewidth=1, color=blue)
//plot(sy and pdh ? pdh : na, title="Previous Daily High", style=cross, linewidth=1, color=lime)
plot(st and pl ? pl : na, title="Daily Low", style=line, linewidth=1, color=red)
//plot(sy and pdl ? pdl : na, title="Previous Daily Low", style=cross, linewidth=1, color=red)
詳細