[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Addtocomposite - counting totals in a watchlist



PureBytes Links

Trading Reference Links

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




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___