gRPC

 
Hi,
I'm interested in knowing if the MQL5 programming language supports gRPC. 

I need to utilize this protocol to implement copy trading functionality between various platforms.

 
B.Moreno: I'm interested in knowing if the MQL5 programming language supports gRPC. I need to utilize this protocol to implement copy trading functionality between various platforms.

You will have to port it to MQL5 yourself, or use DLLs calls to an existing C++ library implementation.

However, if you plan to use MQL5 sockets, then please be aware that they can only act as a client, not as a server.

 
Fernando Carreiro #:

You will have to port it to MQL5 yourself, or use DLLs calls to an existing C++ library implementation.

However, if you plan to use MQL5 sockets, then please be aware that they can only act as a client, not as a server.

Thank you for your guidance. 

What solution do you suggest for copy trading from other platforms to MetaTrader5 with the least possible delay?
 
B.Moreno #: What solution do you suggest for copy trading from other platforms to MetaTrader5 with the least possible delay?
I can offer no advice, because I don't do copy-trading nor do I have any interest in developing such functionality.
 
B.Moreno #:
Thank you for your guidance. 

What solution do you suggest for copy trading from other platforms to MetaTrader5 with the least possible delay?
The classical approach to copy trading is to have a file in which all positions are listed, and slave accounts all read from that file and modify their positions accordingly. 

If your accounts are not on the same computer, you can store that file via FTP on a server.

Personally, I suggest doing it differently: create a PostgreSQL table hosted on a server, on which you have all the informations about your trades.

Master accounts has an OnTradeTransaction function that automatically updates the table at each transaction, and slave accounts read from that table at fixed interval, say each 0.5s or less depending on your available performances.

For other platforms to MT, you do the same, easier if they have some kind of equivalent to OnTradeTransaction, or else you can just loop through and that's it.