PureBytes Links
Trading Reference Links
|
Interesting.
If you don't find a more obvious way, you could have your JScript get at the value by having the OLE object first run a scan on an AFL script like the following (untested, assumes scan on current symbol for last 1 bars):
Buy = Sell = 0;
watchListNum = CategoryFind("My List Name", categoryWatchList);
fh = fopen("c:\\temp\\listnum.txt", "w");
if (fh) {
fputs("" + watchListNum, fh);
fclose(fh);
}
Then have your JScript read from the file to get your filter value before running what you really wanted to run in the first place.
Mike
--- In amibroker@xxxxxxxxxxxxxxx, Mark Hike <markhike@xxx> wrote:
>
> I am talking about OLE object for Analysis, not AFL. CategoryGetName() is
> not available in OLE.
>
>
> On Fri, Sep 25, 2009 at 6:40 AM, bistoman73 <bistoman73@xxx> wrote:
>
> >
> >
> >
> > you could find the actual number of the watchlist that you want to use
> > looking in all the watchlist (i=1 to 100 or 1000) and finding which one has
> > the name, given by CategoryGetName( categoryWatchlist, i) , equal to the one
> > you want
> >
> > hope it could help
> >
> > Bisto
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx <amibroker%40yahoogroups.com>, Mark Hike
> > <markhike@> wrote:
> > >
> > > Folks,
> > >
> > > I am working to automate an exploration on a watchlist using JScript.
> > > It seems the OLD Analysis object only accept watchlist number as filter,
> > not
> > > watchlist name.
> > > I only have the watchlist name and its index number can change any time
> > > since I keep adding and deleting watchlists all the time.
> > >
> > > Is there any workaround to get the filter work with watchlist name?
> > >
> > > Thanks,
> > >
> > > - Mark
> > >
> >
> >
> >
>
------------------------------------
**** 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
<*> 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/
|