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

[amibroker] Re: Batch Port-Backtesting many WLs



PureBytes Links

Trading Reference Links

Herman,

I will admit that I haven't thought this through, so it may not have any merit. But, it seems to me that the limitation is that once an optimization has started on a watchlist, it will continue with that same watchlist for the duration of the optimization.

So, you could possibly introduce a dummy optimization variable in your script which simply iterates from 1..~1000 (i.e. the number of watchlists you want to test against).

Then, start the optimization (exhaustive) on the first watchlist (i.e. WL 1), and in custom backtester code (or perhaps simply in a status(action) block, empty the contents of the watchlist and repopulate it on the fly from the contents of the next watchlist.

At each subsequent pass, the backtest will be operating on the new watchlist contents, albeit within the original named watchlist. Assuming numerically sequential watchlist names, the optimization variable appearing in the output would be the key to which watchlist's contents were acted upon.

Alternatively, you could adopt the same concept, but try using OLE interface to set a different watchlist on the COM object instead of copying contents. That would probably be faster, but is more dangerous since you would be interfering with a running process as opposed to simply the data upon which the process is acting.

Mike



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

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