//Created By Patrick199415
//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?")
ph = security(tickerid, 'D', high)
// pdh = security(tickerid, 'D', high)
pl = security(tickerid, 'D', low)
// pdl = security(tickerid, 'D', low)
//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)