The code below creates a cumulative volume for intraday data. Well
almost. It works perfectly for every day except the first one.

d = Day();
newDay = d != Ref(d, -1);
newDay[0] = 1;
bs = BarsSince(newDay)+1;
CumVolume = Sum(V, bs);

Sum(V, bs) is filling the first bar of the CumVolume array with
{EMPTY}. Sum(V, 1) however works. I've traced the first value in the
bs array and it is always 1.
I can't work it out. Any ideas?

Cheers,
Jules.

Wayne's World! Wayne's World! Party on! Excellent! :)

Reply via email to