Did you switch periodicity to "Intraday"?

Plus, don't add that "1". should be
Sum( V, BarsSince( newDay ) )

or better yet,

cv = Cum( Volume );

intradaycumvolume = cv - ValueWhen( newDay, cv );

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Julian" <[email protected]>
To: <[email protected]>
Sent: Friday, February 20, 2009 8:55 AM
Subject: [amibroker] Cum of Sum young guy


> 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! :)
> 
> 
> 
> ------------------------------------
> 
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
> 
> TO GET TECHNICAL SUPPORT send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> Yahoo! Groups Links
> 
> 
> 

Reply via email to