PureBytes Links
Trading Reference Links
|
Sorry my mistakes
the data holes in last x bars should be
NoofMarketDays = N - ref(N, -xbars);
holes = NoofMarketDays - xbars;
--- In amibroker@xxxxxxxxxxxxxxx, "Paul Ho" <paul.tsho@xxx> wrote:
>
> Not easily
> but the following should work
> create a afl that do atc on DJI
> --------------------------
> if(name() == ^DJI)
> addtocomposite(cum(1), "~bars", "X");
>
> --------------------------------------
> this will create an array of bar numbers of the market days
> So N = foreign("~bars", "C");
> and your data holes are cum(1) - N
> thats it
>
> --- In amibroker@xxxxxxxxxxxxxxx, "buandbe" <buandbe@> wrote:
> >
> > I'd like to sum the volumes of the last N market days.
> >
> > When there are M holes in the data in the last N market days, how
do I
> > get ( N - M ) ?
> >
> > TIA
> >
>
------------------------------------
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
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/
|