How To Connect MT4/MT5 With Python Using ZeroMQ?

11 March 2018, 07:11
Ahmad Hassam
3
12 769

MT4 as well MT5 have become popular trading platforms over the years.

But both MT4 and MT5 have severe limitations when you develop EAs you realize it.

MQL4 and MQL5 are basic languages that copy C++ syntax but lack good libraries.

Especially when you want to use machine learning and reinforcement learning in your EA.

What is the solution? Develop machine learning libraries in MQL4/MQL5?

It is very much possible but why redo things when everything has been done in Python/R/JAVA/C++.

Why not somehow find a method that connects MT4/MT5 with Python/R/JAVA/C++.

Using ZeroMQ library we can do that precisely.

I have written a blog post on how to connect MT4/MT5 with Python using ZeroMQ.

You only have to work once. After that you can develop algorithmic trading strategies in Python.

MT4/MT5 will feed the live market data to the algorithmic trading strategy in Python.

Python will tell MT4/MT5 when to open and close orders.

Share it with friends: