I decided to add the previous daily closing line to the original script. Basically looking for good
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/Close 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_Open",style=circles, color=dcolor, linewidth=3) cdl = input(true, title="Previous Closing Daily Line") dclose = security(tickerid, 'D', close) dcolor2 = close < dclose ? red : green plot(cdl and dclose ? dclose :na , title="Daily_Close",style=circles, color=dcolor2, linewidth=3)
The only thing you do is add "offset=1" to both plot lines and this will push it 1 bar ahead for you.