//2 days High Low Box
study(title="2 days High Low Box", shorttitle="High Low Box, overlay=true)
st = input(true, title="Show Todays OHLC?")
//sy = input(false, title="Show Yesterdays OHLC?")
//Daily
ph = security(tickerid, 'D', high[2])
//pdh = security(tickerid, 'D', high[1])
pl = security(tickerid, 'D', low[2])
//pdl = security(tickerid, 'D', low[1])
plot(st and ph ? ph : na, title="2 Days High", style=line, linewidth=1, color=blue)
plot(st and pl ? pl : na, title="2 Days Low", style=line, linewidth=1, color=red)