Download MetaTrader 5

MT5 integration with Pyton and R.

To add comments, please log in or register
fiestafalcon
1514
fiestafalcon  

Hello All,

I am developing autometed trading systems on Pyton and R.

I have a live real account  on MT5 broker.

1. Is it possible to call MT5 Order Managements functoins by MT5 APIs (if there such APIs, where to find them) through Pyton and R ?

2. Is it possible to call all MT5 funcitons within Pyton and R ?

3. Is it possible to call all Pyton and R functions within MT5 EA code ?

I have to figure out the easiest and effiect way of integrating MT5 and Pyton and R environmnets.

Thx for you support.


Marco vd Heijden
Moderator
6138
Marco vd Heijden  

1. No, but you can work with files.

2. Not directly, but you can work with files.

3.Not directly, but you can work with files.

It means you will have to design/create/write bridges.

fxsaber
10794
fxsaber  

https://sites.google.com/site/prof7bit/metatrader-python-integration

https://www.mql5.com/en/code/17468

Metatrader Python Integration - 7bit
  • sites.google.com
This is my solution for the problem of mql4 programs not being sufficiently able to communicate with the outside world. It adds the ability to run arbitrary python code (even multi-threaded) directly from within an mql4 script, expert advisor or indicator. Possible use cases include: import the RPy bindings and then directly call R functions...
fiestafalcon
1514
fiestafalcon  

Looks Pyton integration has still tons of to do list.

R integration seems finised (thx to fxsaber for sharing the link).

Is there anyone who gave a try for MT5 and R integration with  mt-R library which is "https://www.mql5.com/en/code/17468" ?


Thx for your valuable comments.

mt-R
mt-R
  • votes: 23
  • 2017.03.02
  • СанСаныч Фоменко
  • www.mql5.com
The source mt4R library that was developed by Bernd Kreuss was modified several times by different authors. Its latest version is available here with the required links to the source library, all changes and GitHub address. This version of the library is adjusted to 64 bit and thus can be used by the МetaТrader 5 library. Two libraries are...
Christian Peters
652
Christian Peters  

Since you can import .dll files in your own MQL Programs, you could communicate via sockets.

Just create a little .dll in c++ which will create a socket and listen for incoming commands. In python you would connect to that socket and send the commands over to the Metatrader.

To add comments, please log in or register