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.
// Written by Robert N. 030615 // Still looking for way to remove from previous days study("Open Daily Line", overlay=true) odl = input(true, title="Open Daily Line") dopen = security(tickerid, 'D', open) dcolor = close < dopen ? red : green plot(odl and dopen ? dopen :na , title="Daily",style=circles, color=dcolor, linewidth=3)