MT5 Trade Copier Slave with Smart Synchronization
- 实用工具
- 版本: 1.0
- 激活: 5
Intelligent Trade Copier with Missed Trade Recovery
Require Free Master EA: https://www.mql5.com/en/market/product/178682
This Slave EA REQUIRES the FREE SyncTrade Copier Master EA to function. Without the Master EA installed and running on a second MT5 terminal, this product will not copy any trades. Download the FREE Master EA from the MQL5 Market before or after purchasing this Slave EA. Both EAs must be running simultaneously.
Both MT5 terminals must be installed on the SAME computer for file sharing to work. They cannot be on different computers or VPS instances. To run two MT5 terminals on one computer, you must install the second MT5 in a DIFFERENT folder. Change the installation path during setup (for example, C:\Program Files\MetaTrader 5 Second).
What This Slave EA Does
🧠 This EA reads trade signals from the Master EA and executes them on your slave account with intelligent synchronization features that no other copier offers.
-
⚡ Copies trades within 100ms of master execution
-
🔄 Supports all order types: BUY, SELL, partial closes, and full closes
-
🎯 Real-time SL/TP synchronization when master modifies positions
-
🔍 Detects missed trades after network disconnections
-
💡 Waits for price to return to master's entry level before copying missed trades
-
🔧 Automatically corrects volume mismatches from missed partial closes
-
🗑️ Detects and closes orphaned positions master no longer holds
-
📊 Flexible lot sizing with fixed multiplier or balance-based scaling
-
🛡️ Floating loss protection to close all trades at maximum drawdown
-
🔗 Smart symbol mapping across different brokers
-
💾 Survives MT5 restarts without losing trade mappings
-
🔒 All communication is local and instant, no internet required
Smart Missed Trade Recovery
🧠 This is the feature that sets this copier apart from all others. When network drops occur, standard copiers simply lose trades forever. This Slave EA intelligently recovers them.
Missed Trade Opens:
-
📋 Detects master positions that slave missed during disconnection
-
⏳ Adds them to a persistent pending watchlist with original entry price
-
👀 Continuously monitors market price
-
✅ Only copies when price returns to master's entry level within your tolerance
-
📌 Uses current SL/TP from master, not outdated values
Missed Trade Closes:
-
🔍 Scans for slave positions that master no longer holds
-
⚡ Closes them immediately at current market price
-
📝 Logs all orphan closures with profit/loss details
Missed Partial Closes:
-
📐 Compares slave volume against master volume
-
🔧 Automatically closes extra volume to match master precisely
-
🎯 Maintains perfect lot size alignment at all times
Persistent Tracking:
-
💾 Remembers pending sync trades across MT5 restarts
-
📂 Stores watchlist to disk, survives terminal crashes
-
🔄 Resumes monitoring exactly where it left off
Input Parameters
Trade Execution:
📐 LotMode (default: Fixed Multiplier)
Choose between Fixed Multiplier for constant ratio copying, or Lot by Balance for automatic scaling based on account sizes.
🔢 LotMultiplier (default: 1.0)
Fixed lot multiplier when using Fixed Multiplier mode. Set 1.0 for same size as master, 0.5 for half size, 2.0 for double size.
📊 LotPercent (default: 100.0)
Percentage of balance ratio to apply when using Lot by Balance mode. At 100%, a slave with half the master's balance trades half the lot size. At 50%, it trades quarter size.
Risk Management:
🛡️ MaxFloatingLoss (default: 0.0)
Maximum floating loss in account currency before all trades are closed. Set to 0 to disable this protection.
🔢 MagicNumber (default: 777)
Must match the Magic Number set in the Master EA. Only trades with this Magic Number will be copied.
📉 MaxSpread (default: 50)
Maximum allowed spread in points. Trades are skipped if spread exceeds this limit to avoid excessive slippage.
Smart Synchronization:
🎯 MaxPriceDeviation (default: 5.0)
Maximum price difference in points from master's original entry price to allow copying a missed trade. Lower values mean tighter entry matching. Recommended: 3-5 for forex majors, 5-10 for gold and indices, 10-20 for cryptocurrencies.
⏱️ SyncCheckInterval (default: 1)
How often in seconds the EA checks for missed trades and synchronization opportunities. Set to 1 for near real-time monitoring.
How It Works
📄 The Slave EA continuously reads two files created by the Master EA:
📋 Event CSV File: Read incrementally to replicate trades in real-time as they happen on the master account. Each trade action including opens, closes, partials, and SL/TP modifications is processed within milliseconds.
📊 State CSV File: Read periodically to detect any discrepancies between master and slave positions. This enables the smart synchronization features including missed trade detection, orphan position closing, and volume correction.
During normal operation, trades are copied instantly through the event file. After any disconnection, the state file provides a complete picture of what the master currently holds, allowing the Slave EA to identify and fix every type of mismatch automatically.
Lot Sizing Examples
Fixed Multiplier Mode:
-
Master opens 1.0 lot, LotMultiplier=1.5, Slave opens 1.5 lots
-
Master opens 0.5 lots, LotMultiplier=0.5, Slave opens 0.25 lots
Lot by Balance Mode (LotPercent=100%):
-
Master balance 10 , 000 , S l a v e b a l a n c e 10,000,Slavebalance5,000, Ratio=50%
-
Master opens 1.0 lot, Slave opens 0.5 lots
-
Master opens 2.0 lots, Slave opens 1.0 lot
Lot by Balance Mode (LotPercent=50%):
-
Master balance 10 , 000 , S l a v e b a l a n c e 10,000,Slavebalance5,000, Ratio=50% x 50% = 25%
-
Master opens 1.0 lot, Slave opens 0.25 lots
Setup Instructions
-
📥 Install two MT5 terminals on your computer in DIFFERENT folders
-
🔐 Log into your master trading account on one terminal
-
🔐 Log into your slave receiving account on the other terminal
-
🆓 Download and attach the FREE Master EA to any chart on the master terminal
-
💰 Attach this Slave EA to any chart on the slave terminal
-
⚙️ Configure LotMode and sizing parameters for your needs
-
🎯 Set MaxPriceDeviation based on your instrument's volatility
-
✅ Verify both EAs show confirmation messages in the Experts tab
-
🧪 Open a small test trade on master to confirm slave copies correctly
-
🔄 Test partial close and SL/TP modification to verify full functionality
Requirements
-
💻 Two MT5 terminals installed on the same computer in different folders
-
⚡ Both terminals running simultaneously
-
🆓 SyncTrade Copier Master EA (FREE, sold separately)
-
🔄 Hedging accounts recommended for both master and slave
-
📁 Sufficient disk space for CSV files (minimal, typically under 1MB)
Why Choose This Copier
Standard trade copiers fail when networks drop. They miss trades, leave positions orphaned, and create volume mismatches that require manual intervention. This Slave EA automatically fixes every type of synchronization problem.
-
🧠 Smart enough to wait for the right price instead of copying at unfavorable levels
-
🔍 Detects problems you might not notice until it's too late
-
🔧 Fixes issues automatically without manual intervention
-
💾 Survives crashes and restarts without losing track
-
🛡️ Protects your account with built-in risk management
🚀 Purchase the SyncTrade Copier Slave EA now and experience the only copier that intelligently recovers from network failures!
