Copier & bridge · MT5

MQTT MQL5 Library

by gmag11

This library and example Expert Advisor provide an MQTT client interface for MetaTrader 5.

High risk

GitHub stars6
Forks6
Last update3 years ago14 May 2023
LicenceMIT

Overview

MQTT MQL5 Library enables the platform to communicate with external MQTT brokers using version 3.1 or 3.1.1 protocols. The system supports both encrypted TLS and standard TCP/IP connections. Users can publish messages to specific topics and subscribe to receive incoming data from external sources. The code handles connection maintenance and basic Quality of Service levels. It serves primarily as a bridge for data exchange between MetaTrader and external IoT or web-based messaging systems.

Details

Author

gmag11 on GitHub

Type

Copier & bridge

Platform

MetaTrader 5 (MQL5)

Strategy

Martingale

Markets

Any symbol

Timeframes

Any timeframe

Risk profile

  • Uses martingale lot scaling: losses can grow fast

Input parameters

Read from mqttTest.mq5. Defaults are the author's; change them in the EA's Inputs tab.

NameTypeDefaultDescription
brokerstringtest.mosquitto.orgMQTT server (broker) address
portuint16_t8883Broker TCP port
mqttuserstringUser, if needed
mqttpasswordstringPassword, if needed
useTLSbooltrueUse encrypted communication
baseTopicstringmetatraderBase topic

How to install it

  1. 1Download the sourceUse "Download source (.zip)" above, or clone gmag11/MQTT-MQL5-Library from GitHub, and unzip it.
  2. 2Open the data folderIn MetaTrader choose File, then Open Data Folder, and go to MQL5/Experts.
  3. 3Copy the filesCopy the .mq5 file into Experts, and any .mqh files into the Include folder the code expects.
  4. 4Compile in MetaEditorOpen the file in MetaEditor and press Compile. Fix any missing includes the compiler reports.
  5. 5Test before you tradeRun it in the Strategy Tester, then attach it to a demo chart and allow algorithmic trading.
Third-party code. ForexR did not write, test or endorse this EA, and the summary above was generated automatically from its README and code. ForexR lists only repositories with readable source code and never hosts files. Read the code, backtest it and use a demo account first; automated trading can lose money quickly.

Similar expert advisors

Mql5 Json Api

by parrondo
18 stars

This expert advisor acts as a server bridge for MetaTrader 5, facilitating communication with external applications via ZeroMQ sockets and JSON messaging. It enables remote control from languages like Python to request account details, trade history, and current positions. The system supports the execution of market an

MT5 Copier & bridge Martingale High risk
Updated 6 years ago GPL-3.0 GitHub repository of Mql5 Json Api

Crypto Bridge Pro

by rabbitholeanalytics
4 stars

This MetaTrader 5 expert advisor acts as a connectivity bridge between the MetaTrader platform and various cryptocurrency exchanges such as Binance, Bybit, and Bitmex. It allows traders to execute automated strategies on external crypto markets directly from the terminal. The included Ping Pong module functions as a ma

MT5 Copier & bridge GridMartingale High risk
Updated 6 years ago None stated GitHub repository of Crypto Bridge Pro
4 stars

This expert advisor facilitates trade replication between MetaTrader 4 and MetaTrader 5 platforms using TCP communication. It functions as either a sender or a receiver, allowing cross-platform signal transfer. The tool includes a lot size multiplier to scale positions on the receiving side and requires IP and port con

MT4MT5 Copier & bridge Martingale High risk
Updated 1 year ago None stated GitHub repository of MT4-MT5 Signal Copier

Trade Copy MT4

by vobornik
256 stars

This MetaTrader 4 expert advisor functions as a local trade copier, allowing users to replicate trades from one terminal to another. It operates by sharing a data file between a master and a slave instance on the same computer or filesystem. The slave EA manages order execution, including market, limit, and stop orders

MT4 Copier & bridge Martingale High risk
Updated 3 years ago GPL-2.0 GitHub repository of Trade Copy MT4
2 stars

This MetaTrader 4 utility acts as a bridge between custom technical indicators and Telegram channels for signal distribution. It monitors specific indicator buffers to identify trade entries and transmits alerts to a designated chat via the Telegram API. The tool is specifically configured for binary options workflows,

MT4 Copier & bridge Martingale High risk

Trade Copy Slave

by lofyer
2 stars

This MetaTrader 4 expert advisor functions as a trade copier, specifically acting as the slave component to receive and replicate orders from a source file. It features flexible lot sizing options, allowing users to apply a scaling coefficient, force a fixed lot size, or calculate volume based on the account balance. T

MT4 Copier & bridge Martingale High risk
Updated 8 years ago None stated GitHub repository of Trade Copy Slave

More copiers and bridges

Need a broker for MT5?

Compare regulated brokers that support MetaTrader, with spreads, minimum deposits and leverage side by side.

Compare brokers