study(title="Daily High/Low", shorttitle="Daily High/Low", overlay=true) active = input(true, title="Show On Chart") pricehigh = security(tickerid, 'D', high[1]) pricelow = security(tickerid, 'D', low[1]) //Daily Plots offs_daily = 0 plot(active and pricehigh ? pricehigh : na, title="Previous Daily High", style=linebr, linewidth=2, color=white) plot(active and pricelow ? pricelow : na, title="Previous Daily Low", style=linebr, linewidth=2, color=white)