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
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