Number of symbols belonging to category

Watchlists, groups and market listings contain the number of issues contained. That number is visible when list is left clicked.

Example: NASDAQ (4) (3244 symbols) ---- Is this number accessible via AFL?

Ara

Please start new topic. Your question got nothing to do with current topic of identifying when analysis is being finished.

Anyway, use StrCount and Categorygetsymbols()

EnableTextOutput(0);

listnum = 0;
category = categoryWatchlist;
symlist = CategoryGetSymbols( category, listnum );
num_symbols = StrCount( symlist , "," ) + 1;

printf( "Number of symbols in Watchlist(%g) -> %s: %g", listnum, CategoryGetName(category, listnum), num_symbols );
2 Likes