PureBytes Links
Trading Reference Links
|
Dennis,
I want to step through "all" symbols for two different applications. There are probably many more possible.
One application is to visit every symbol while the IB SWT is active, to fetch data for every symbol once a day. There must be a delay between each request to avoid triggering IB's punishing silent treatment when you ask it for too much data. I wrote a tiny AutoIt script that does this, which I posted a couple months ago. But it suffers from being wrong occasionally, since there is not a way to predict how the AmiBroker UI controls will be identified. It also doesn't know whether the data was actually fetched, and sometimes IB will take a long time to reply. So ideally my script will wait until the latest data has actually been fetched before moving on to the next symbol.
My other application is to run the optimizer on each symbol, one at a time. I (automatically) save separate optimized parameters for each symbol, and when trading, the script loads the appropriate parameter set. I have written a much hairier AutoIt script to control the IO optimization process, but this script also suffers from occasional breakdowns. So I would like to control it from within Amibroker itself, if possible. I'd also like to drive the new custom optimizer engines rather than being dependent on only IO (which, by the way, is doing a heroic job of working around the limitations of the plain exhaustive optimizer).
dan
On Thu, Jul 10, 2008 at 11:49 PM, Dennis Brown < see3d@xxxxxxxxxxx> wrote:
Dan,
Thanks for the answer. Our responses crossed in the net.
I did not find any problem with having it execute just once when I click the button. It is at the end of my script, so I am sure it will execute between AFL passes. I was going to make it step through the watch list, but since I only trade ES and ER2, I just hard coded the symbol for now --so I can use it tomorrow!
Were you going to cycle via a button/ pramTrigger? Or were you going to have it automatically cycle like a slide show via time?
Best regards,
Dennis
On Jul 10, 2008, at 11:33 PM, Daniel LaLiberte wrote:
Dennis,
There is a variable setting that changes the ticker. Took me a while to find it again, buried in a release note of a few versions ago. (It pays to read those.)
In jscript:
AB = new ActiveXObject("Broker.Application");
AB.ActiveDocument.Name = ticker;
I'm working on a script to step through each ticker in a watchlist, or in the list of all tickers. Since setting this variable in the current script will cause it to be reexecuted (but when? immediately? or after the rest of the script finishes?) it is a bit tricky to control the stepping process using just one script, but it can be done. More modularity and flexibilty will come from controlling this process via a separate script, in another chart or otherwise.
Anyone else doing anything interesting with this new feature?
dan
On Thu, Jul 10, 2008 at 10:02 PM, Dennis Brown < see3d@xxxxxxxxxxx> wrote:
Hello,
I could swear that I read that there was a new command in AFL to change the chart ticker. However, I don't remember what it was called, and all the searches I tried did not find it.
Could someone just reply with the name.
Thanks, Dennis
--
-- Daniel LaLiberte liberte@xxxxxxxxxxxxx
daniel.laliberte@xxxxxxxxx
__._,_.___
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
__,_._,___
|