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 <[EMAIL PROTECTED]> 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@yahoogroups.com, "Joe Landry" <[EMAIL PROTECTED]> 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@yahoogroups.com
>  >   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
>
>
>
>
>
>

Reply via email to