Correct ... I see what you want ... Regards, Ton.
----- Original Message ----- From: dingo To: [email protected] Sent: Wednesday, September 12, 2007 7:13 PM Subject: RE: [amibroker] Creating new watchlists from AFL Yes, I read it. But having done so and with TJ's comments it appears that if you want to add a new WL using AFL one has to: Using file I/O functions create a new file with name of watchlist and "tls" extension. write tickers to file close it. Do a Popup msg asking user to load another database and reload the original database. OR a popup asking user to save database exit AB and re-run AB. Removing a WL completely looks like it will take some manual intervention as well. d ------------------------------------------------------------------------------ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Ton Sieverding Sent: Wednesday, September 12, 2007 12:44 PM To: [email protected] Subject: Re: [amibroker] Creating new watchlists from AFL Dingo did you read the new ReadMe ? Should be possible. Or am I missing something in this conversation ... Version 5.00 brings hundreds of improvements including a.. New Watchlist system featuring: a.. unlimited number of watch lists b.. lists keep original order in which symbols were added (still can be sorted alphabetically on-demand) c.. new AFL function to refer to watch lists by name Regards, Ton. ----- Original Message ----- From: dingo To: [email protected] Sent: Wednesday, September 12, 2007 3:02 PM Subject: RE: [amibroker] Creating new watchlists from AFL Yes but how about his question on how to create a watchlist using AFL for > 64 watchlists? d ------------------------------------------------------------------------ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Tomasz Janeczko Sent: Wednesday, September 12, 2007 8:40 AM To: [email protected] Subject: Re: [amibroker] Creating new watchlists from AFL Hello, This statement from the AB guide is obsolete. Will be removed. There is NO limit on number of watchlists and NO limit in Category* functions. Best regards, Tomasz Janeczko amibroker.com ----- Original Message ----- From: RR To: [email protected] Sent: Wednesday, September 12, 2007 9:36 AM Subject: RE: [amibroker] Creating new watchlists from AFL Dingo, Suppose I want to create a new style watchlist titled "GuppyCountBackLine". The CategoryAddSymbol appears to be limited to a range of 0..63 for watchlists. (page 398 of 5.0 user's guide). All of the watchlists I want to create fall outside of the default range of 0..63. The only way I see to create these watchlists is to manually create these with the Symbol menu from the main toolbar. How do I create these new style watchlists with just AFL? How do I delete the new style watchlists using just AFL? I do have code for the default case of 1..63. For example: // ClearWatchList function ClearWatchlist(wl) { if (Status("stocknum") == 0) { // remove all existing symbols from the market list _TRACE("Removing Tickers from watchlist number " + NumToStr(wl, 1.0)+":"); List = CategoryGetSymbols(categoryWatchlist, wl); for( i = 0; ( sym = StrExtract( List, i ) ) != ""; i++ ) { _TRACE(sym); CategoryRemoveSymbol(sym, categoryWatchlist, wl); } _TRACE("Removing Tickers from Watchlist completed."); }; } This works great for 1..63 but it still appears that manually using SYMBOL..WATCHLIST..New Watchlist must be used to create the new style watchlist. I do not see how to do the logical equivalent of SYMBOL..WATCHLIST..New Watchlist strictly using AFL for the new style watchlist. For distribution purposes, I would prefer to not have a client have to manually enter potentially hundreds of watchlist names using the Symbol menu. If you try using the wl = CategoryFind ("GuppyCountBackLine",categoryWatchlist) you get a -1 return code according to debugview instead of the next available ordinal index number. Obviously, the CategoryFind function is used to retrieve the ordinal number of the watchlist for parameter entry into the other Category... functions in AFL. Thanks in advance :^)) ---------------------------------------------------------------------- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of dingo Sent: Tuesday, September 11, 2007 9:53 PM To: [email protected] Subject: RE: [amibroker] Creating new watchlists from AFL All of the old methods of creating watchlists remain - Check CategoryAddSymbol/ ..removesymbol in the help file and then do a search of this forum on them. There you'll find examples. d -------------------------------------------------------------------- From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of RR Sent: Tuesday, September 11, 2007 10:48 PM To: [email protected] Subject: [amibroker] Creating new watchlists from AFL I do not see a way to create new watchlists using AFL. Is this do-able? I have heard that you can code a workaround using FSO (file system object) and something about maintaining the index yourself. Unfortunately, I did not see any code posted. It seems this would be best done by TJ so the implementation of watchlists would not be broken in case additional enhancements were made. Also, the ability to delete a watchlist is needed from AFL so that you do not have to predict ahead of time which watchlists need to be created.
