Very good and interesting article. I learnt a lot of new and useful things. Frankly speaking, this does not happen often, but this is the case. I will study your other articles carefully.
Реter Konow #:
Very good and interesting article. I learnt a lot of new and useful things. Frankly speaking, this does not happen often, but this is the case. I will study your other articles carefully.
Very good and interesting article. I learnt a lot of new and useful things. Frankly speaking, this does not happen often, but this is the case. I will study your other articles carefully.
Hey, Peter! I'm glad you found some useful information on the article.
By the way, the code is on GitHub, freely available for use, study, and development.
From the README:
"Update on January 6th, 2025
As the saying goes, the best open-source code starts by itching your own itch. This was the case here.
But it turns out that we've eventually found a better solution for our itch, so we are no longer working on this code.
If you think it can be useful as a starting point — or want to learn from our mistakes — just fork it and use it at will."
Have a great new year!

GitHub - gavranha/mql5-mqtt-cli: A native MQTT client for MQL5
- gavranha
- github.com
As the saying goes, the best open-source code starts by itching your own itch. This was the case here. But it turns out that we've eventually found a better solution for our itch, so we are no longer working on this code. If you think it can be useful as a starting point — or want to learn from our mistakes — just fork it and use it at will...

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
Check out the new article: Developing an MQTT client for MetaTrader 5: a TDD approach — Final.
This article is the last part of a series describing our development steps of a native MQL5 client for the MQTT 5.0 protocol. Although the library is not production-ready yet, in this part, we will use our client to update a custom symbol with ticks (or rates) sourced from another broker. Please, see the bottom of this article for more information about the library's current status, what is missing for it to be fully compliant with the MQTT 5.0 protocol, a possible roadmap, and how to follow and contribute to its development.
Finally, in this seventh and last part we want to share with you some working code that is intended to address a very common trader need when it comes to the building of indicators signals to be used in Expert Advisors: the lack of a required symbol for the indicator in the trading account.
We suggest one possible solution using custom symbols and a pair of MQTT clients running as services on the Metatrader 5 terminal. Even though the demo code is oversimplified and runs on a single terminal instance, due to the main characteristic of the MQTT protocol itself - which is the decoupling between the sender and the receiver by a “broker” mediation - this solution can be extended to accommodate any number of device instances and symbols.
At the end of the article, we indicate the current status of the library, our development priorities with a possible roadmap, and where you can follow and contribute to the project.
Author: Jocimar Lopes