How to Trade Crypto with MT5

 

Hello everybody,

I want to trade on Binance broker via an Expert Advisor, written in MT5.

Unfortunately, the course data for Binance are not available for the MT5.
However, Phyton is able to both retrieve the price data from Binance through an API, as well as trading on Binance.

Now there are two options:

1. Option: I write and backtest the EA in the MT5 and send the signals to Phyton, which then gives the order to Binance.

2. Option: I write and backtest the EA in the MT5 and implement the strategy in Phyton. Phyton can then send orders to Binance without the constant communication with the MT5.


My questions:

Which option is the simplest?

Are there any existing scripts?

Thanks in advance.
Claudius


 
Another option would be to create an mt5 service maintaining a custom symbol to provide you with the necessary data in mt5.

Then you could implement in this service a functionality that provides you the connector to binance. Either using webrequests or utilizing python.

To connect your EA to the service I would use named pipes for the communication between the service and your EA.

There are code snippets available here on the forum as well as in the code base to support your doings.

The advantage would be to have an abstraction layer which gives you the option to implement another crypto exchange in future without the need to change the original EA.

That would be my approach.
 
Thank you Dominik,

sounds like a german name. I am from germany too.

Do you remember the keywords to find the code snippets or the discussions in the forum? I'm sorry but I did not find anything
 
Yes, German.

Here is an article on how to use named pipes.
https://www.mql5.com/en/articles/503

Here is an article about custom symbols. It's german.
https://www.mql5.com/de/articles/3540

Here is a search on GitHub.
https://github.com/search?q=mt5+binance

Hope this helps.

 
Thanks, Dominik!
 
Welcome.

If you create such a binance bridge service, would you post it on codebase?

I'd be very happy to support your efforts.
 
If my team agrees, sure
 
websocket is way to go, IMHO

Reason: