Intraday Accumulator [close-open]
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © barnabygraham

//@version=5
indicator("Intraday Accumulator [close-open]",overlay=true,scale=scale.none)
var x = 0.
if barstate.isfirst
    x := close    
x := x + (close-open)
plot(x,'Out',color=color.orange)