Use CategoryFind
http://www.amibroker.com/guide/afl/afl_view.php?id=349

Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "TomB" <[email protected]>
To: <[email protected]>
Sent: Tuesday, November 24, 2009 9:45 PM
Subject: [amibroker] How to add symbols to a *named* watchlist?


> 
> The following code
> will clear old tickers
> and add the found tickers to the watchlist:
> 
> CategoryRemoveSymbol("", categoryWatchlist, 1);
> 
> Buy= C> 125 AND C< 200;
> 
> if( LastValue(Buy) )
> CategoryAddSymbol("" , categoryWatchlist, 1);
> 
> 
> But it is not working
> if watchlist 1 has a name like 'Buys'.
> 
> I have tried things like:
> 
> Buys= 1;
> CategoryRemoveSymbol("", categoryWatchlist, Buys);
> 
> with no success.
> 
> Is there a way to work with named watchlists?
> 
> 
> 
> ------------------------------------
> 
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
> 
> TO GET TECHNICAL SUPPORT send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> Yahoo! Groups Links
> 
> 
> 

Reply via email to