Cross Terminal Trade Copier MT4
- 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
Copy trades between MetaTrader 4 and MetaTrader 5 terminals on one Windows computer. Cross Terminal Trade Copier MT4 runs in an MT4 terminal, either as the sending side (Master) or as the copying side (Receiver). The data goes through a file in the MetaTrader common data folder: no DLL imports, no web requests, no outside server.
Please note: the EA only repeats trades that already exist on the Master account. It has no entry logic of its own, gives no trading signals, and does not make any trade better or worse. What is traded on the Master account, and the outcome on every account that copies it, remains the user's own decision and responsibility.
TYPICAL USES
- You trade manually or run an EA in one MT4 terminal and want the same trades in a second account with a different lot size.
- You keep an MT4 account and an MT5 account and want trades placed in one to appear in the other.
- You want an account to take the opposite side of another (reverse copy), for example for testing.
HOW TO START
Step 1 - Master terminal: drag the EA onto any chart. Set Mode = Master and a channel name such as CH1. Optionally limit what is sent to certain magic numbers or symbols.
Step 2 - Receiver terminal: drag the EA onto any chart. Set Mode = Receiver and the same channel name. Pick a lot mode and the copy rules.
Step 3 - In both terminals turn on AutoTrading (Algo Trading in MT5) and allow live trading in the EA properties. The panel on the Receiver shows "connected" when the channel is found.
Run it on demo accounts first.
WHAT IT NEEDS TO RUN
- The EA running in each terminal that sends or copies.
- Copying between MT4 and MT5 requires the MT5 edition of this tool on the MT5 terminal (sold separately).
- One Windows computer and one Windows user for all terminals; automated trading allowed in each.
HOW IT HANDLES...
...lot size: six modes - same as Master, fixed, Master lot x multiplier, balance ratio x multiplier, equity ratio x multiplier, or risk % of balance calculated from the Master's stop loss. In risk mode a trade without a stop loss is not copied. An optional maximum lot applies to every mode.
...stop loss and take profit: copied and kept in sync when the Master changes them, either at the same price or at the same distance from entry.
...pending orders: copied, moved and removed together with the Master's orders (can be turned off).
...closing: full and partial closes are followed. In MT4 a partial close gives the remaining position a new ticket; the EA follows that change on both sides.
...different symbol names: prefixes and suffixes are recognised automatically, GOLD / XAUUSD and SILVER / XAGUSD are matched, and anything else can be written in a manual map (Master=Receiver). Allow and block lists are available.
...restarts: a saved ticket map links every copy to its Master trade, so restarting a terminal does not create duplicate copies.
...a Master that stops: after a set time without updates (default 10 seconds) the panel shows the Master as stopped and the Receiver waits.
...losing days: an optional daily loss limit (% of the day's starting balance) stops new copies for the day, or closes the copied trades and stops.
...oversized trades: by default a copy is skipped when its notional value would be more than 30 times the Receiver's equity (for example above roughly 0.25 lot EURUSD with 1,000 USD equity). In risk mode a copy is also skipped when the minimum lot alone would risk more than twice the risk you set. Both factors can be changed.
...several sources: one Receiver can listen to up to 8 channels.
WHAT YOU SEE
A small panel shows the mode, channel state, open / copied / closed / skipped counts, today's loss against the limit, and the latest error with its reason, wrapped onto two or three lines when it is long. Language is English or Japanese, picked from the terminal language.
WHAT IT CANNOT DO (please read)
1. Work across computers. Every terminal must be on the same Windows computer and run under the same Windows user. Different computers, virtual servers and internet connections are not supported.
2. Copy while a terminal is off. Both terminals must be open, connected to their servers, with automated trading on. When the Master terminal is off, nothing is copied or closed. Trades the Master opens while the Receiver is off are not copied later (default setting); copies whose Master trade closed in the meantime are closed when the Receiver returns, if close following is on.
3. Match the Master's fill price. Each account fills at its own price, spread, slippage and commission. Measured on our test computer, the copy order followed the Master's trade after about 0.45 s with an MT4 Receiver and about 0.25 s with an MT5 Receiver, before the broker's own execution time.
4. Copy every trade. A trade is skipped, with the reason on the panel, when the market is closed, there is no valid price, margin is short, the terminal is disconnected, the symbol is not tradable, or a safety rule applies (notional cap, minimum-lot check, price check, daily limit). If a copy had to wait about 3 seconds or more, it is placed only while the price is within the slippage setting.
5. Convert contract sizes. "Same lot" copies the lot number. If the two accounts use different contract sizes (gold 100 oz vs 10 oz, index CFDs), the exposure is different. Use another lot mode or check the contract specifications.
6. Copy large gold or index trades into small accounts. They are frequently skipped by the safety rules. That is on purpose.
7. Copy into a netting account. A Receiver on an MT5 netting account stops with a message. (This concerns MT5 Receivers; MT4 has no netting accounts.)
8. Share one account between two Receivers. Do not receive into the same trading account from two terminals at once; this is not detected.
9. Carry more than 400 open trades and pending orders on one channel. Above 400 the rest are not sent and closing on the Receiver pauses.
10. Survive deleting its files. Keep the LocalTradeCopier folder in the common data folder while copies are open.
SMALL PRINT
- Pips: 1 pip = 10 points on 3- and 5-digit symbols, otherwise 1 point (the smallest price step, as on most gold and index quotes).
- The daily loss limit counts only trades with the EA's magic number; the day changes at the broker's server time.
- With close following turned off, copies stay open after the Master closes and must be managed by you.
- MT4 limits chart object text to about 63 bytes. Error messages are therefore wrapped onto up to three lines; other long panel lines, mainly in Japanese, may be shortened.
- Pending order filled at once: if a Master pending order is filled right after it is placed, the Receiver panel may briefly show "delete ... error 3" or "Invalid S/L or T/P" (error 130). The EA then copies the trade as a market position, so the result is not affected and the message can be ignored.
- Strategy Tester: there is no second terminal in the tester, so the EA runs a built-in demo. A virtual Master opens, changes, partly closes and closes trades on a fixed schedule and the Receiver logic copies them. The tester report is a demonstration only and is not a measure of any trading performance.
YOUR RESPONSIBILITY
- Copying a trade copies its risk. Test on demo accounts and check each new symbol with a small lot.
- If you copy into accounts of other people, or provide your trades to others, check the laws that apply to you (for example rules on investment advice or managing accounts for others) and the terms of your broker and of any funded-account program. Many such programs restrict copying between accounts.
- No trading result is promised or implied.
SUPPORT
MQL5 messages, reply within 3 business days. Installation, settings and bug reports only; questions about what or when to trade cannot be answered.
