Skip to content

Run the MTsocketsAPI Expert Advisor

Once the MTsocketAPI.ex4 file has been installed (detailed instructions available here), the API must be started in order to enable communication between Metatrader 4 and any TCP client.

There are two ways of running the MTsocketAPI Expert Advisor:

  • Double-click MTsocketAPI from the Experts box
  • Drag and drop MTsocketAPI to any chart

Either of these two methods will launch a screen similar to the following:

Now, click on the Common tab and check "Allow DLL imports":

Note

MTsocketAPI needs ws2_32.dll windows library to manage sockets.

And finally, click OK to start MTsocketAPI.

Warning

If you see a "sad" face like this:

You must click the "Auto Trading" button to enable it:

Now you must see the happy face:

Note

To make sure that MTsocketAPI started successfully, you can check the Metatrader 4 Experts tab:

Basic Usage >