PureBytes Links
Trading Reference Links
|
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" <juliangoodsell@xxxxxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
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
>
>
>
------------------------------------
**** 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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|