Unified Local Copier
- Utilitários
- Versão: 1.27
Cross-Platform, Highly Reliable Local Trade Copier (Unified MT4 / MT5 Manual)
UnifiedLocalCopier (ULC) is a high-concurrency, ultra-low latency, local intelligent trade copying tool tailored specifically for MetaTrader platforms, with zero DLL dependencies. Built upon a robust sandbox file-queue IPC (Inter-Process Communication) mechanism, it bypasses third-party Dynamic Link Libraries (DLLs) entirely.
This guarantees a higher execution security level and ensures 100% compliance with strict security audits from brokers and the MQL5 Market—eliminating the risk of crossing platform security red lines. MT4 MT5
🔥 Limited-Time Free Trial Live Now!
To gather comprehensive user feedback under diverse live trading environments (multi-broker, cross-platform, high-concurrency), this system is currently open for a limited-time free trial! Traders and quantitative teams are welcome to download and test it.
-
🎁 Free spots are limited to the first 20 users. Once filled, the price will return to its regular rate of $30.
-
💡 Join our beta test now and submit your valuable feedback or one-click optimization suggestions directly to the developer!
1. Core Architecture & Copying Logic
The system utilizes a classic Master-Slave pattern to achieve seamless synchronization through high-speed polling. A single channel supports the "One Master, Multiple Slaves" configuration:
-
Master (Signal Provider): Monitors all order actions on the master trading account in real time (including manual trades, EA executions, pending order triggers/modifications, and partial/full closures). Upon capturing a transaction, it instantly writes standardized binary signal records into the terminal's common data folder ( FILE_COMMON ).
-
Slave (Signal Receiver): Deep-polls the signal file at an ultra-high frequency (50ms by default). Once a new sequence is detected, it instantly triggers local risk management, slippage calculation, and 1:1 order mapping, passing the data to the execution engine to mirror the trade.
-
Cross-Platform Interoperability: Since the underlying data format is fully standardized, the system seamlessly supports an MT5 Master guiding multiple MT4 Slaves, or an MT4 Master guiding MT5 Slaves. No matter which platform your strategy runs on, it copies flawlessly.
2. Core Input Parameters
When loading the EA onto a chart, carefully configure the parameters below based on the account's designated role (Master or Slave):
| Parameter Name | Default / Type | Applicable Role | Description & Configuration Advice |
| InpRole | ROLE_MASTER | Universal | Role Switch: Select whether the EA on the current chart acts as the signal provider ( ROLE_MASTER ) or the signal receiver ( ROLE_SLAVE ). |
| InpChannelID | 8888 (int) | Universal | Channel ID: The unique credential for Master-Slave pairing. The Channel ID on the Master and Slave sides must match exactly. To run multiple independent copying systems on the same PC, simply assign different IDs (e.g., 8888, 9999). |
| InpLotSize | 0.01 (double) | Slave | Copy Lot Size: Defines the fixed lot size used by this receiver terminal. The system includes built-in normalization to auto-check and round orders toward the broker's min/max lots and step sizes. |
| InpDeviation | 30 (ulong) | Slave | Max Allowed Slippage (Points): The maximum price difference allowed during copying. If the current local market price deviates from the Master's execution price by more than this value, risk protection triggers and rejects the trade. |
| InpComment | "ULC" (string) | Slave | Order Comment Prefix: The comment prefix attached to copied trades. The system automatically appends the master ticket number (e.g., ULC_M123456 ) to enable precise order tracking and position alignment after unexpected network reconnections. |
| InpSymbolSuffix | "" (String) | Slave | Symbol Suffix: Used to handle symbol name variations across different brokers (e.g., Master uses XAUUSD , Slave uses XAUUSDm ). Leave empty for smart automatic fuzzy matching; if matching fails across brokers, enter the suffix manually (e.g., "m" or ".m"). |
| InpClearQueueOnStart | false (bool) | Master | Clear Queue on Startup: If set to true, the EA wipes out historical channel data when reloaded. Keeping this at false is highly recommended to safeguard history across chart period switches or power resets, allowing Slaves to reconnect safely. |
| InpReplayHistoryOnStart | false (bool) | Slave | Replay History on Startup: If set to false , the Slave directly joins the current live sync and skips backed-up old signals (preventing margin calls upon reconnection). If set to true , it fills pending historical signals in order. |
3. Step-by-Step Deployment Guide
1. Deploying the Master (Signal Provider)
-
Open the MT4 or MT5 terminal from which you want to export signals, and open any single symbol chart (any instrument, any timeframe; attaching it to a permanent chart like EURUSD or XAUUSD is recommended).
-
Drag and drop the compiled UnifiedLocalCopier EA onto the chart.
-
Under the Inputs tab, set InpRole to ROLE_MASTER and configure your InpChannelID (e.g., 8888).
-
Ensure the terminal's "Algo Trading" (or "AutoTrading") master switch is turned on.
⚠️ The Golden Rule of Master Deployment: Within the same trading account, one specific Channel ID can only and must only be assigned to a single Master EA! Never attach two Master EAs to different timeframes (like M15 and H1) on the same account simultaneously; doing so causes write conflicts and double signal broadcasts. A single Master EA listens to the entire account's order stream globally.
2. Deploying the Slave (Signal Receiver)
-
Open one or multiple receiving terminals (can be another MT4/MT5 client on the same PC, logged into a different account).
-
Similarly, open any single chart and drag the same UnifiedLocalCopier EA onto it.
-
Under the Inputs tab, switch InpRole to ROLE_SLAVE .
-
Change InpChannelID to match the Master side exactly (e.g., 8888). Adjust your InpLotSize (copy volume) as needed.
-
Enable algorithmic trading permissions. The EA will enter a 50ms high-frequency polling state, waiting for inbound Master signals.
4. Key Highlights & Risk Controls
-
🚀 Zero DLL Dependencies (Market-Safe): Utilizing native sandbox shared-channel architecture, it completely avoids risks associated with external DLL injections, such as antivirus false positives or backend rejections by strict brokers.
-
🔒 Deduplication Engine: Before executing an opening order, the Slave processes a triple-verification chain ( Map record checks -> Live position comment scanning -> Order underlying feature analyses ) to ensure that rapid polling under network delays never leads to accidental double-copying.
-
⏱️ Modify Suppression: To address frequent, trivial update events triggered during market order matching on MT5 (e.g., rapid shifting between ORDER_ADD and DEAL_ADD ), the EA features an internal 800ms suppression window. It filters out redundant modification requests, reducing unnecessary CPU load and VPS bandwidth consumption.
-
🛠️ File-Lock Self-Healing (Retry Logic): When multiple orders fire simultaneously (e.g., during grid or martingale basket executions), file access conflicts (Error 5004) may occur. The Master automatically triggers a high-frequency retry chain up to 5 times at 25ms intervals, ensuring zero dropped signals even during extreme market spikes.

