Forex Media News Station

2009/06/16

How to install TWSLink

A step-by-step guide on how to use TWSLink to connect MT4 to IB's TWS platform.

The MT4 part:

1. Move twslinkdemo.mq4 to the "/expert" folder.

2. Move twslink.mqh to the "/expert/include" folder

3. Open MT4 platform, go to the expert advisor list, select twslinkdemo and right click to choose modify.

4. After entering the editor, choose "compile". After it is ok, close the editor.

5. Attach twslinkdemo to a chart.

6. Remember to check "Allow DLL imports" and uncheck "Confirm DLL function calls" in the Expert Advisor tab in Options.

The TWS part:

1. Find out your own IP address. If you don't know it then do the following. Click on Start -> execute. Type in “cmd” and run. Type in Console Window: ipconfig and press and you will see your IP address.

2. Goto Main Menu of TWS and select Configure -> Global Configuration; click on API. Check of all Boxes under General except the second one.

3. Then, enter your own IP address in Trusted IP addresses.

After that: Leave both MT4 and TWS online and you can let your EA to enter orders into TWS!

No comments:

Post a Comment