[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Daily Accumulator



PureBytes Links

Trading Reference Links

Lets say I was using 5 minute bars, and wanted to add the High-Low for each 
bar, to the previous bar, BUT reset at day's end.


Vars:

BarSpread(0), Accum(0);

BarSpread = H-L;

Accum = BarSpread + Accum[1];

Plot1(Accum,"");


The above accumulates, but does not reset.

Thanks for the help.