After specifying the condition that assigns the symbol to the watch list (e.g., condition = cross(two moving averages)) use something like if(lastvalue(condition), categoryaddsymbol(name(), categorywatchlist, number) to place the symbol in the watchlist. You probably also want to clear the watch list before entering new symbols which can be done by looping through the watch list numbers and applying categoryremovesymbol() to each watch list.
Bill ----- Original Message ----- From: museleading To: [email protected] Sent: Monday, May 05, 2008 6:24 PM Subject: [amibroker] filtering based on close price Hi all, Just setting up my watchlists. I would like to set some up based on closing price bands, but am unsure how to do so without manually entering in each code within a band. Is there a better way to do this? Cheers, Museleading ------------------------------------ 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 -- No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 269.23.9/1418 - Release Date: 5/6/2008 5:17 PM
