PureBytes Links
Trading Reference Links
|
when you create the composite have one field using 1, eg
addtocomposite(1,"~XXX","I");
--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com
On 19/04/2008, droskill <droskill@xxxxxxxxx> wrote:
> Thanks - that's helpful - I'm just trying to figure out how to
> incorporate that into a scan without it executing on every symbol
> everytime.
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Joe Landry" <jelandry@xxx> wrote:
> >
> > droskil
> > Here's one way but I think it's going to depend on what operation
> you're in. Is it AA, then you can count each symbol as you step
> through it. If you're using the custom backtester then I don't know.
> >
> > Here's a clip from years past. Pull the list of symbols then count
> them within the FOR loop.
> >
> > JOE
> >
> >
> >
> > list = CategoryGetSymbols( categoryWatchlist, 63 );
> >
> > pop=0;
> >
> > for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
> >
> > {
> >
> > pop=POP+1;
> >
> > }
> >
> > Plot(pop,"",5,2);
> >
> > to plot the population pop of a WL63. The result will be a flat line,
> >
> > which is not correct when you have missing data, shorter or longer
> >
> > histories.
> >
> > Dimitris Tsokakis
> >
> > ----- Original Message -----
> > From: droskill
> > To: amibroker@xxxxxxxxxxxxxxx
> > Sent: Friday, April 18, 2008 1:41 PM
> > Subject: [amibroker] Addtocomposite - counting totals in a watchlist
> >
> >
> > Hey all - is there anyway to count the number of symbols in a
> > watchlist? I want to make an AddtoComposite-created index a % rather
> > than a hard number. Is there a function to do this?
> >
> > Thanks!
> >
>
>
>
> ------------------------------------
>
> 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
>
>
>
>
>
>
------------------------------------
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/
|