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 #:
Thank you for your guidance. 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.
What solution do you suggest for copy trading from other platforms to MetaTrader5 with the least possible delay?
B.Moreno #:
Thank you for your guidance.
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. Thank you for your guidance.
What solution do you suggest for copy trading from other platforms to MetaTrader5 with the least possible delay?
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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register