Universal Trade Copier for MT4 and MT5 — User Guide 1. Product Overview Universal Trade Copier for MT4 and MT5 is a local trade copier for MetaTrader 4 and MetaTrader 5. It allows you to copy trades between terminals installed on the same computer or VPS. Supported directions: MT4 -> MT4 MT5 -> MT5 MT4 -> MT5 MT5 -> MT4 The product works in two modes: Master — the terminal from which trades are copied. Slave — the terminal where trades are copied. 2. Installation in MT4 1. Open your MT4 terminal. 2. Click File -> Open Data Folder. 3. Open the folder MQL4 -> Experts. 4. Copy the file: Universal_MT4_MT5_TradeCopier.mq4 5. Open MetaEditor. 6. Open the copied file. 7. Click Compile. 8. Return to MT4. 9. Attach the Expert Advisor to any chart. 10. Enable AutoTrading. 3. Installation in MT5 1. Open your MT5 terminal. 2. Click File -> Open Data Folder. 3. Open the folder MQL5 -> Experts. 4. Copy the file: Universal_MT4_MT5_TradeCopier.mq5 5. Open MetaEditor. 6. Open the copied file. 7. Click Compile. 8. Return to MT5. 9. Attach the Expert Advisor to any chart. 10. Enable Algo Trading. 4. How to Select the Copying Direction Use the setting: CopierRole Available values: ROLE_MASTER — this terminal sends trades. ROLE_SLAVE — this terminal receives and copies trades. 5. MT4 -> MT4 Setup First MT4 terminal: CopierRole = ROLE_MASTER CopierID = Copier_1 Second MT4 terminal: CopierRole = ROLE_SLAVE CopierID = Copier_1 6. MT5 -> MT5 Setup First MT5 terminal: CopierRole = ROLE_MASTER CopierID = Copier_1 Second MT5 terminal: CopierRole = ROLE_SLAVE CopierID = Copier_1 7. MT4 -> MT5 Setup MT4 terminal: CopierRole = ROLE_MASTER CopierID = Copier_1 MT5 terminal: CopierRole = ROLE_SLAVE CopierID = Copier_1 8. MT5 -> MT4 Setup MT5 terminal: CopierRole = ROLE_MASTER CopierID = Copier_1 MT4 terminal: CopierRole = ROLE_SLAVE CopierID = Copier_1 9. CopierID CopierID is the connection identifier between Master and Slave. You do not need to get it from anywhere. You set it yourself. Example: CopierID = Copier_1 The value must be exactly the same on both Master and Slave terminals. For several independent copying groups, use different IDs: Copier_1 Copier_2 Copier_3 Do not run two Master terminals with the same CopierID at the same time. 10. Main Copy Settings CopyMarketOrders — copies Buy and Sell market trades. CopyPendingOrders — copies pending orders: Buy Limit Sell Limit Buy Stop Sell Stop CopyStopLoss — copies Stop Loss. CopyTakeProfit — copies Take Profit. CopyModifications — copies order modifications and SL/TP changes. CopyCloseOrders — closes trades on the Slave when they are closed on the Master. CopyPartialClose — copies partial close operations. 11. Lot Settings LotMode Available modes: LOT_MULTIPLIER — copies the Master lot using a multiplier. LOT_FIXED — uses a fixed lot for all copied trades. LOT_RISK — calculates lot size by risk percentage. LotMultiplier Examples: 1.0 — copy the same lot size. 0.5 — copy half of the Master lot. 2.0 — copy double the Master lot. FixedLot is used when LotMode = LOT_FIXED. RiskPercent is used when LotMode = LOT_RISK. For correct risk-based lot calculation, the Master trade should have a Stop Loss. 12. Symbol Mapping Use Symbol Mapping if brokers have different symbol names. Examples for MT4 -> MT5: EURUSD=EURUSDm GBPUSD=GBPUSDm XAUUSD=XAUUSDm Examples for MT5 -> MT4: EURUSDm=EURUSD GBPUSDm=GBPUSD XAUUSDm=XAUUSD Multiple symbols can be written like this: EURUSD=EURUSDm;GBPUSD=GBPUSDm;XAUUSD=XAUUSDm If the symbols are the same, set: UseSymbolMapping = false 13. VPS Recommendation The copier works only while the terminals are running. For stable operation, it is recommended to use a VPS. If the computer is turned off, the terminal is closed, or the internet connection is lost, copying will stop. 14. Demo Testing Before Live Trading Before using the copier on a real account, test it on demo accounts. Recommended test steps: 1. Open a Buy trade on the Master and check that it opens on the Slave. 2. Open a Sell trade on the Master and check that it opens on the Slave. 3. Set Stop Loss and Take Profit. 4. Modify Stop Loss and Take Profit. 5. Open a pending order. 6. Modify the pending order. 7. Delete the pending order. 8. Close a trade on the Master and check that it closes on the Slave. 9. Test partial close. 10. Test lot multiplier mode. 11. Test fixed lot mode. 12. Test risk percent mode. 13. Test Symbol Mapping if symbols are different. Use a live account only after successful demo testing. 15. Important Limitations All terminals must be running on the same computer or VPS. The copier works locally through Common Files. For MT5, hedging accounts are recommended. On MT5 netting accounts, positions for the same symbol may be merged. MT5 Buy Stop Limit and Sell Stop Limit are not copied because MT4 does not have direct equivalents for these order types. Check all settings carefully before real trading. 16. Basic Usage Summary 1. Install the correct file in MT4 or MT5. 2. Set one terminal to ROLE_MASTER. 3. Set the other terminal to ROLE_SLAVE. 4. Use the same CopierID on both terminals. 5. Enable AutoTrading or Algo Trading. 6. Configure lot settings, Symbol Mapping, and copy options. 7. Test everything on demo accounts. 8. Use live accounts only after successful testing.