Copy Trades
- Yardımcı programlar
- Aleh Piatrenka
- Sürüm: 1.0
- Etkinleştirmeler: 20
Automatically copies BUY/SELL trades from one trading account (Master) to another account (Slave) with full SL and TP synchronization, partial close support, and selectable close behavior.
Designed for real-time trade copying between different MT5 accounts. The Slave account fully mirrors the Master account and does not make independent trading decisions.
Copy Trades is suitable for traders using multiple accounts to replicate manual or automated trading, test strategies on different account types, as well as for prop traders, trading teams, and VPS users who require stable and synchronized trade copying without manual intervention. The utility eliminates constant monitoring and saves time.
How It Works. For example, Account 1 (Master) opens a BUY position on EURUSD with a lot size of 0.12 and sets Stop Loss and Take Profit. Within seconds, Account 2 (Slave) automatically opens the same position with synchronized SL and TP. Lot size can be calculated proportionally to the Slave’s deposit or set to a fixed 1:1 ratio. This parameter is configured in the input settings.
If you need to copy all trades from Account 1 to Account 2 regardless of the trading instrument, attach Copy Trades to any chart on Account 1, select the Master role, set a Channel Name, and select All Symbols. On Account 2, attach Copy Trades to any chart, select the Slave role, and enter the same Channel Name - trades will be copied automatically across all symbols.
If you need to copy specific instruments only (for example, EURUSD and XAUUSD), attach Copy Trades to each corresponding chart on Account 1 and select Current Chart Only for each Master instance. On Account 2, attach the Slave to the same instruments (EURUSD and XAUUSD). Use a separate Channel Name for each Master–Slave pair.
If the Master modifies SL or TP on existing positions, or partially or fully closes a trade, the Slave repeats these actions.The close behavior can be configured so that the Slave ignores Master full close signals and manages position exits independently using its own TP/SL rules.
The solution is resistant to internet disconnections, “no connection” errors, terminal restarts, and broker-side delays. Automatic symbol mapping is supported if brokers use different symbol names (e.g., EURUSDm, EURUSD_i). If Account 1 opens a trade while the market is closed on Account 2, the trade will not be copied.
Only one Slave account is supported per Channel Name (multi-slave support and pending order copying are planned for future versions). It is recommended to use Copy Trades on timeframes M5 and higher.
Setup:
- Create a Google Apps Script (step-by-step setup instructions are available in my MQL5 blog). This is a free relay server used for exchanging trade events between Master and Slave.
- In MetaTrader 5, enable WebRequest for your Google Apps Script URL and allow algorithmic trading.
- Attach Copy Trades on the required symbol on the Master account (the source account) and set the role to Master in the input settings.
- Attach Copy Trades on the same symbol on the Slave account (the target account) and set the role to Slave in the input settings.
- Enter the Google Apps Script URL in the Copy Trades input settings on both Master and Slave.
- Enter the Api Key from Google Apps Script (for example, I_AM_API_KEY) in the inputs on both Master and Slave. The Api Key is a simple “password” that protects your copying channel from unauthorized access (you can use any text).
- Set the same Channel Name on both Master and Slave (for example: symbol_copier). This is the trade queue name and must match on both sides.
Each independent Master–Slave pair must use its own unique Channel Name. - Set the Trade ID (magic) on the Slave, for example: slave_2.
- Copying will start automatically.
To avoid missing important product updates, enable notifications in your MQL5 profile (Profile → Settings → Notifications → versions of purchased products).
If you find this tool useful, a review would be greatly appreciated.
For grid trading, please see my Grid Copier utility.
