High Low DayBox

//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?")

ph = security(tickerid, 'D', high)
// pdh = security(tickerid, 'D', high)
pl = security(tickerid, 'D', low)
// pdl = security(tickerid, 'D', low)

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


In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.