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

[amibroker] How To Display Watch List Names In v4.92



PureBytes Links

Trading Reference Links

I've been using the following code to display watch list names of all watch lists to which a selected ticker belongs. Before, when the maximum number of watch lists was 64 the "for" loop looked like this:

for( i = 0; i < 64; i++ )

What's the best way to find the number of the last watch list in v4.92, where the number of watch lists is unlimited?

For now, I setup watch list named "ztmp" as the last one and first run:

wlnum = CategoryFind("ztmp", categoryWatchlist );

to find its number, but this is not a very neat solution.

// Display Watch List names

// Find watch list number by WL name (returns WL number).
// WL "ztmp" must always be the last WL in Index.txt.

wlnum = CategoryFind("ztmp", categoryWatchlist );

// the remaining code

WLs = "";

for( i = 0; i < wlnum; i++ )
{
if( InWatchList( i ) )
 {
 WLs = WLs + CategoryGetName( categoryWatchlist, i ) + "\n";
 }
}

Title = "\\c11" + WLs + wlnum;

/*** END ***/




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/