Thanks. Externally I have recorded a script that copies all the content of the 42 watchlists (I set the .tls extension association to notepad) to a single watchlist. It's works for now. I'll submit a suggestion for simpler functionally for end users.
--- In [email protected], "Mike" <sfclimb...@...> wrote: > > It's possible, but not in the direct form that you are trying. The ApplyTo > only accepts a single value for each of group, watchlist, etc. You can't > specify multiple watchlists. > > You would have to iterate through all the stocks of interest and > indidvidually add them to a temporary watchlist, then set that single > watchlist on the Analysis object. You would them presumably want to remove > them from the watchlist when done. > > Alternatively, you might choose to run your exploration on each watchlist of > interest, export the results, then build up an amalgamated set of results, > all from within your script. > > Mike > > --- In [email protected], "gmorlosky" <gmorlosky@> wrote: > > > > I'd like to use the ApplyTo function instead of filtering and can't quite > > get > > this to work (my jscript skills are minimal). Awhile back a thread went on > > and > > TJ noted that the functionality is there (but later on others thought it > > needed > > enhanced) > > > > Basically I want to have ApplyTo use Watchlist 18 through 59: > > > > List = ""; > > OAB = CreateObject( "Broker.Application" ); > > OAA = OAB.Analysis; > > for(i=18,i=59,i++) > > List = List + i + "/n"; > > MyApplyTo = OAA.Analysis.AppyTo (InWatchList(List)) > > > > reference: > > AmiBroker's OLE Automation Object Model > > Analysis.ApplyTo - defines apply to mode: 0 - all stocks, 1 - current > > stock, 2 - > > use filter ***(maybe this is where we also need #3 = List)*** > > > > If I have explained this well and the functionality isn't there, I'll add > > to the WishList location on amibroker.com. > > >
