Cross Terminal Trade Copier
- Utilities
-
Kazuma Uezono
MQL5 / MQL4 / Pine Script v6 developer and active trader.
Seller on the MQL5 Market (indicators for MT4/MT5).
Services:
- TradingView Pine Script to MT5/MT4 conversion (bar-by-bar matching, with tester report)
- MT4 to MT5 migration - Version: 1.4
- Activations: 5
Cross Terminal Trade Copier copies trades from one MetaTrader terminal to other terminals running on the same Windows computer: MT5 to MT5, MT5 to MT4, MT4 to MT5 and MT4 to MT4. One EA has two modes. In Master mode it publishes the trades of its account; in Receiver mode it copies them into the account it is attached to. The terminals exchange a small file in the MetaTrader common data folder. No DLL, no internet connection and no outside server are used.
This is a copy utility. It does not decide when to buy or sell and it is not a trading strategy or a signal. Every trade it copies is a decision made on the Master account by you (or by the EA you run there), and the results of those trades are your responsibility.
WHAT IT COPIES
- New market positions (buy / sell), optionally in reverse (buy <-> sell).
- Stop loss and take profit, including later changes. SL / TP can use the same price as the Master or the same distance from the entry (useful when two accounts quote slightly different prices).
- Pending orders (limit / stop): placing, moving and deleting.
- Full closes and partial closes of the Master's positions.
- Several Master channels can be received by one Receiver (comma separated, up to 8).
LOT SIZE (6 modes)
1. Same lot as the Master
2. Fixed lot
3. Master lot x multiplier
4. Balance ratio x multiplier (Receiver balance / Master balance)
5. Equity ratio x multiplier
6. Risk % of balance per trade, calculated from the Master's stop loss (a trade without a stop loss is not copied in this mode)
A maximum lot can be set. Lots are rounded to the Receiver symbol's lot step and minimum.
SYMBOL NAMES
- Prefixes and suffixes (for example EURUSD.m or EURUSD-pro) are detected and converted automatically.
- Common aliases are handled: GOLD <-> XAUUSD, SILVER <-> XAGUSD.
- A manual map (Master=Receiver, comma separated) for names that differ more, such as stock indices.
- Lists of symbols to copy only, or never to copy.
- On the Master side you can choose what to send: all trades, only listed magic numbers, only listed symbols, or both.
SAFETY FEATURES
- Ticket map: each copy is linked to its Master trade and the link is saved to a file, so a restart of either terminal does not create duplicate copies.
- Master stop detection: if the Master file is not updated for a set time (default 10 s), the panel shows it and the Receiver does nothing until the Master is back.
- Daily loss limit (optional, % of the day's starting balance): stop new copies for the rest of the day, or close the copied trades and stop.
- Notional cap (default on): a copy is skipped when its notional value would exceed 30 times the Receiver's equity. Example: with 1,000 USD equity, EURUSD copies above roughly 0.25 lot are skipped. The factor can be changed or set to 0 (off).
- Minimum-lot check in risk mode: if even the symbol's minimum lot would risk more than 2 times your risk % setting, the trade is skipped instead of being rounded up (factor adjustable, 0 = always copy).
- Optional price check: skip a copy when the Receiver's price is too far from the Master's entry.
PANEL
- Master: channel, number of positions and pending orders being sent, last update time.
- Receiver: connection state of each channel, open / copied / closed / skipped counts, the current lot cap, today's loss vs. the limit, and the last error with its reason (a long message is wrapped onto two or three lines).
- English or Japanese, chosen automatically from the terminal language. Colors follow a light or dark chart.
SETUP IN THREE STEPS
1. Attach the EA to any chart in the Master terminal, choose Mode = Master and a channel name (for example CH1).
2. Attach the EA to any chart in the Receiver terminal, choose Mode = Receiver and the same channel name. Choose the lot mode.
3. Turn on Algo Trading (MT5) / AutoTrading (MT4) in both terminals and allow trading in the EA settings.
REQUIREMENTS
- The EA runs in every terminal involved: the Master terminal and each Receiver terminal.
- Copying between MT5 and MT4 requires the MT4 edition of this tool on the MT4 terminal (sold separately).
- All terminals on the same Windows computer under the same Windows user, with automated trading allowed.
LIMITS YOU SHOULD KNOW BEFORE BUYING
- Same computer only. All terminals must run on the same Windows computer under the same Windows user. Copying between different computers, between virtual servers or over the internet is not possible.
- Both terminals must be running, connected, and have automated trading turned on. If the Master terminal is stopped, nothing is copied or closed during that time.
- Trades opened by the Master while the Receiver is stopped are not copied when the Receiver starts again (default). Copies whose Master trade was closed in the meantime are closed when the Receiver is back (when close following is on). An option copies trades that are already open at start.
- Copies are not instant. In our tests on one computer, the time from the Master's trade to the copy order was about 0.25 s for an MT5 Receiver and about 0.45 s for an MT4 Receiver, plus the broker's execution time. Fill prices on the Receiver will not be the same as on the Master; spreads, slippage and commissions differ between accounts.
- A copy is skipped (and shown on the panel with the reason) when the market is closed, the price is invalid, margin is not enough, the terminal is not connected, the symbol cannot be traded, or the notional cap / price check / daily limit applies. A copy that waited more than about 3 seconds is placed only if the price is still within the slippage setting.
- "Same lot" copies the lot number as it is. It does not convert different contract sizes between accounts (for example a gold contract of 100 vs 10 ounces, or different index contracts). Check the contract size or use another lot mode.
- With small accounts, gold and index trades are often skipped by the notional cap or the minimum-lot check. This is intended; adjust the settings only if you understand the risk.
- Receiver accounts must be hedging accounts. On a netting account the Receiver stops and shows a message. A Master on a netting MT5 account works, but volume added to an existing position is not copied.
- Do not receive into the same trading account from two terminals at the same time; this is not detected. Inside one terminal, a second Receiver with the same magic number on another chart stops itself.
- Do not delete the files in the LocalTradeCopier folder of the common data folder while copies are open. They hold the ticket map.
- One channel carries up to 400 open trades and pending orders. Above that, the rest are not sent and closing is paused on the Receiver until the number drops.
- Pips: on 3- and 5-digit symbols 1 pip = 10 points; on other symbols (most gold and index quotes) 1 pip = 1 point, the smallest price step.
- The daily loss limit counts only trades with the EA's magic number and uses the broker's server time for the day change.
- If close following is turned off, copied trades stay open after the Master closes. You then have to manage them yourself.
- When a Master pending order is filled right after it is placed, an MT4 Receiver may briefly show an error such as "delete ... error 3" or "Invalid S/L or T/P" (error 130). The trade is then copied as a market position; the message can be ignored.
- Strategy Tester: the tester cannot connect to another terminal. There the EA runs a built-in demo in which a virtual Master opens, modifies, partly closes and closes trades on a fixed schedule so that the copy process can be seen. Tester results are only a demonstration and say nothing about any trading performance.
IMPORTANT
- Copying a trade copies its risk. Test with demo accounts first and check every new symbol with a small lot.
- If you use the EA to copy trades into accounts of other people, or to provide your trades to others, you are responsible for checking the laws of your country (for example rules on investment advice or account management) and the terms of your broker and of any funded-account program. Many programs restrict copying between accounts.
- No result of the Master's trading is promised or implied.
OTHER
- Settings in seven groups (Mode, Master, Lot size, Copy rules, Symbols, Safety, Panel). Copied trades carry a magic number and a short comment tag you can change.
- Works on any symbol the accounts can trade. The EA can be attached to any chart; the chart symbol does not limit what is copied.
- Support through MQL5 messages, reply within 3 business days: installation, settings and bug reports. Questions about what or when to trade cannot be answered.
