Hi
I am trying to write a script in Amibroker which uses vbscript and Jscript as hosts. However, though new to programming I found Autoit much more versatile.
What I am Trying to Achieve :
----------------------------------
Amibroker is the Technical Analysis tool which based on certain day trading rules provides the following Information.
- Trade Type : Buy or Sell
- Buy / Sell Price
- Value of a particular Technical Indicator (MACD)
These 3 information is captured by vbscript
vbscript to launch Autoit script which takes the Trade Type & Buy/Sell Price as two parameters. It opens the webpage of Trading site, uses Username & password to login in and navigates to Trading form. Based on the above three parameters it places the Order on the site and monitors the trade. In order to monitor the trade autoit script would require to be constanty updated with the MACD value. whenever the MACD value crosses Zero the trade has to be terminated.
Limitations :
--------------
-Unfortunately I couldnot find any way of Autoit directly interacting with Amibroker since it supports only vbscript & jscript hosts.
- I have written a script in vbscript, which is able to login the web site and able to place order. Based on the trading rules being met, the vbscript needs to pass on the 3 parameters to autoit. Would appreciate if someone can help me in giving possible ways to aschieve this.
- I tried using AutoitX3.Control in vbscript but faced a serious problem. with this setup the autoit UDFs just do not work at all and give errors.
Help Required :
-----------------
1. How to launch the autoit script from vbscript ?
2. While launching autoit script 3 parameters from vbscript to be passed on to autoit ?
3. Any change in any of the 3 variables to be constantly passed on to autoit script.
I would appreciate if anyone can help me in this regard. My apologies, I am new to Scripting be it vbscript or autoit, but am confident that with a broad direction would be able to achieve what i want.