Jump to content

marcianopro

Members
  • Posts

    5
  • Joined

  • Last visited

marcianopro's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. ------------- Thanks martin and ptrex for the direction. Will try these and check if this works for me. Marcianopro
  2. -------------- Thanks Martin. Your suggested approach appears fine. Would appreciate if you can Provide more guidance and help. I assume that whn the second instance of autoit program is created by vbscript and it discovers that one instance is already running then the new values of the three parametrs will be passed on to the already running autoit program instance. That appoach looks ok Marcianopro
  3. 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.
  4. Hi, I am writing a script in Amibroker to do automated stock trading . Amibroker supports only vbscript and Jscript. I have written a script in Autoit to automatically login the trading web page and place Orders. However This Autoit script uses UDFs. I am using the AutoitX3.Control in vbscript to use the Autoit script. But my problem is that with AutoitX3, The UDFs are not working. Is there any way I can use autoit in vbscript and also use autoit UDFs. Needless to mention I am new to autoit as well as vbscript, but thanks to the excellent forum help, I am able to work with autoit. Marcianopro
×
×
  • Create New...