Copier & bridge · MT5

MT5 Trade Copier

by bpareshgit

This EA copies all open trades from a provider MetaTrader 5 account to receiver accounts on the same or different machines.

GitHub stars1
Forks2
Last update4 days ago22 Oct 2026
LicenceMIT

Overview

MT5 Trade Copier supports local sync via shared files and remote sync via FTP upload and HTTP download. Trades are mirrored including openings, SL/TP adjustments, and closures. The copier uses a magic number to identify trades and supports multiple providers with symbol mapping. Risk controls include optional filters for trade deviation, age, and profitability, plus equity reserve percentage. It operates in provider or receiver mode and is designed to work with manual trades or any other EA running on the provider account.

Details

Author

bpareshgit on GitHub

Type

Copier & bridge

Platform

MetaTrader 5 (MQL5)

Markets

Any symbol

Timeframes

Any timeframe

Risk Profile

No grid, martingale or hedging logic was found in its code or README. That says nothing about how it performs: backtest it first.

Input Parameters

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

NameTypeDefaultDescription
InpModeENUM_COPIER_MODECOPIER_RECEIVEROperating mode
InpPollIntervalMsint1000Poll interval (ms)
InpMagicNumberlong56001501Magic number for copied trades
InpLogLevelENUM_COPIER_LOG_LEVELCOPIER_LOG_INFOLog level
InpLogToFilebooltrueWrite rotating log file
InpLogMaxKbint512Rotate log after (KB)
InpShowChartStatusbooltrueShow live status on chart
InpProviderRequireHedgingbooltrueRefuse if account is netting
InpProviderAccountsstringREQUIRED: provider MT5 login(s), comma-separated
InpLotModeENUM_COPIER_LOT_MODELOT_SAME_AS_PROVIDERLot sizing mode
InpFactorLeverageboolfalseFactor account leverage into lot sizing
InpSymbolMapstringSymbol remap (EURUSD=EURUSD.micro;GBPUSD=GBPUSDm)
Show all 32 inputs
NameTypeDefaultDescription
InpSlippagePointsint20Max slippage (points) for orders
InpReceiverRequireHedgingbooltrueRefuse if account is netting
InpFullMirrorbooltrueFull mirror: open + SL/TP edit + close (recommended)
InpRemoteUploadFtpboolfalseProvider: upload snapshot via FTP
InpFtpRemotePathstringProvider: FTP remote path (SendFTP)
InpRemoteDownloadHttpboolfalseReceiver: download snapshot via HTTP
InpHttpDownloadUrlstringReceiver: snapshot URL (per provider; use {account} token)
InpHttpUsernamestringHTTP basic auth username
InpHttpPasswordstringHTTP basic auth password
InpHttpTimeoutMsint5000HTTP timeout (ms)
InpRemoteMinIntervalMsint2000Min interval between remote I/O (ms)
InpHeartbeatUrlstringHeartbeat URL (HTTP GET)
InpHeartbeatIntervalSecint60Heartbeat interval (sec)
InpMaxPriceDeviationPtsint0Skip if price deviates more than (points, 0=off)
InpMaxTradeAgeMinutesint0Skip trades older than (minutes, 0=off)
InpIgnoreProfitableboolfalseSkip trades already in profit on provider
InpDirectionFilterENUM_COPIER_DIRECTION_FILTERDIRECTION_BOTHDirection filter
InpExcludedTicketsstringExcluded provider tickets (comma-separated)
InpEquityReservePercentdouble0.0Reserve equity % (0=off; stop new copies when breached)
InpMassCloseModeENUM_COPIER_MASS_CLOSE_MODEMASS_CLOSE_AUTOMultiple losing closes at once

How to Install It

  1. 1Download the sourceUse "Download source (.zip)" above, or clone bpareshgit/MT5TradeCopier 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

Darwinex DWX Connect

by darwinex
235 stars

DWX Connect is an open-source bridge that links external trading strategies written in Python, C#, or Java to MetaTrader 4 and 5. It functions as a server EA that facilitates communication via file-based messaging, allowing users to execute trades and subscribe to market data without coding in MQL. The EA manages trade

MT4MT5 Copier & bridge
Updated 1 year ago BSD-3-Clause GitHub repository of Darwinex DWX Connect
109 stars

MetaTrader 5 To Telegram is a utility expert advisor designed to bridge a MetaTrader 5 terminal with a Telegram bot. It monitors the trading account for updates and broadcasts notifications regarding orders, deals, and active positions to a specific user, group, or channel. The EA uses a timer-based system to process i

MT5 Copier & bridge

MT5 REST API Server

by mikha-dev
98 stars

This utility for MetaTrader 5 transforms the trading terminal into a REST API server, enabling external software to control trading operations via HTTP. It facilitates remote account monitoring, price retrieval, and full trade execution, including market orders, pending orders, and partial closes. The system supports a

MT5 Copier & bridge
Updated 7 years ago None stated GitHub repository of MT5 REST API Server

Hitback ZMQ Bridge

by EricSchles
59 stars

This expert advisor functions as a data bridge for streaming real-time market information from MetaTrader 4 and 5 to external applications. It utilizes the ZeroMQ library to transmit price ticks and order book updates to a remote server. The tool is intended for developers building quantitative trading platforms or dat

MT4MT5 Copier & bridge
Updated 6 years ago Apache-2.0 GitHub repository of Hitback ZMQ Bridge

Sharing Is Caring

by wait4signal
59 stars

Sharing Is Caring is a MetaTrader 5 trade copier designed for local or remote synchronization between trading accounts. It operates in either provider or receiver mode, utilizing CSV files for local communication and FTP or HTTP for remote data transfer. The tool supports proportional lot sizing adjusted for balance an

MT5 Copier & bridge
Updated 2 years ago GPL-3.0 GitHub repository of Sharing Is Caring

Neo Trader

by diliproshitha
51 stars

Neo Trader is an order execution bridge that facilitates the transfer of trade data from TradingView to MetaTrader 4 and 5 terminals. Operating through a local socket server and a browser extension, it allows users to execute trades directly from TradingView position drawing tools. The expert advisor handles market and

MT4MT5 Copier & bridge
Updated 1 year ago Apache-2.0 GitHub repository of Neo Trader

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