Run the MTsocketsAPI Expert Advisor
After install the MTsocketAPI.ex5 file (detailed instuctions here) we need start the API to enable the communication between Metratrader 5 and any tcp client.
There are 2 ways of run the MTsocketAPI Expert Advisor:
- Double click MTsocketAPI from the Experts box
- Drag and drop MTsocketAPI to any chart
Any of these two method will launch a screen like this:
Enable “Allow Algo Trading” and then click on the Dependencies tab:
Note: MTsocketAPI needs the ws2_32.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: