Skip to content

Run the MTsocketsAPI Expert Advisor

Once the MTsocketAPI.ex5 file has been installed (detailed instructions available here), the API must be started in order to enable communication between Metatrader 5 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:

Enable "Allow Algo Trading" and then click on the Dependencies tab:

Note

MTsocketAPI needs the ws2_32.dll and kernel32.dll to work with sockets.

And finally, click OK to start MTsocketAPI.

Important

You must click the "Algo Trading" button to enable MTsocketAPI to work with orders:

If you only use MTsocketAPI to read data you don't need to enable "Algo Trading"

Note

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

Basic Usage >