[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Revisit of ApplyTo function (pending adding suggestion to AmiBroker)



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "gmorlosky" <gmorlosky@xxx> 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.
>




------------------------------------

**** 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/