MQLXpert Trade Copier
- Utilità
-
Luke John Smith
I’m a full-time MQL5 developer.
I build Expert Advisors, indicators, dashboards and trading tools for traders who want real automation — not theory.
I specialise in turning manual trading strategies into clean, stable and fully automated systems that can run reliably in real market conditions. - Versione: 1.11
- Attivazioni: 5
Advanced Local Trade Copying & Position Synchronisation | MetaTrader 5
MQLXpert Trade Copier is a professional trade management utility designed to automatically replicate and synchronise trading positions between multiple MetaTrader 5 terminals running on the same computer or VPS.
Featuring independent Master and Slave operating modes, flexible position sizing, reverse trade copying, advanced trade filters and an interactive control panel, MQLXpert Trade Copier provides complete control over local trade replication.
No external servers, DLL imports or subscription services are required.
Key Features
-
Automatic Buy and Sell trade copying.
-
Master and Slave operating modes.
-
Multiple independent copying channels.
-
Automatic stop loss synchronisation.
-
Automatic take profit synchronisation.
-
Partial closure synchronisation.
-
Full closure synchronisation.
-
Lot multiplier sizing.
-
Fixed lot sizing.
-
Proportional lot sizing.
-
Balance or equity-based proportional sizing.
-
Reverse trade copying.
-
Symbol prefix and suffix mapping.
-
Magic number filtering.
-
Symbol filtering.
-
Interactive MQLXpert dashboard.
-
Pause and Resume functionality.
-
Persistent position tracking.
-
Duplicate position prevention mechanisms.
-
Connection and snapshot monitoring.
-
Broker volume, margin and stop-distance checks.
-
Configurable synchronisation interval.
Master & Slave Operation
Master Mode
The Master monitors trading positions and publishes position information to the selected copying channel.
The Master does not execute trades itself.
Slave Mode
The Slave receives position information from the Master and automatically replicates eligible trading positions according to the configured copying settings.
Multiple Slave terminals can receive trading information from the same Master channel.
Each Slave can operate with its own independent position sizing, direction and filtering settings.
Position Sizing
Lot Multiplier
Automatically calculates the copied position size using a configurable multiplier.
For example:
-
Master position: 0.10 lots.
-
Multiplier: 2.0.
-
Slave position: 0.20 lots.
Fixed Lot Size
Opens copied positions using a predefined lot size, regardless of the original Master position size.
Proportional Lot Size
Automatically calculates position sizes relative to the Master and Slave account balances or equities.
A configurable multiplier provides additional control over the calculated position size.
Proportional sizing requires both accounts to use the same account currency.
All calculated volumes are subject to the broker's permitted trading volume specifications.
Automatic Position Synchronisation
MQLXpert Trade Copier continuously monitors the Master's trading positions and synchronises applicable changes.
Supported operations include:
-
Opening new positions.
-
Adding stop loss and take profit levels.
-
Modifying existing stop loss levels.
-
Modifying existing take profit levels.
-
Partial position closures.
-
Full position closures.
Existing positions are tracked individually to maintain their relationship with the corresponding Master positions.
Reverse Trade Copying
Reverse copying allows the Slave to execute positions in the opposite direction to the Master.
-
Master Buy becomes Slave Sell.
-
Master Sell becomes Slave Buy.
When enabled, the corresponding stop loss and take profit levels are reversed accordingly, subject to broker restrictions.
Reverse copying is compatible with all three position-sizing modes.
Advanced Trade Filtering
Symbol Filtering
Allows users to specify which trading instruments are eligible for copying.
Multiple symbols can be entered using a comma-separated list.
Magic Number Filtering
Allows positions to be filtered according to their assigned magic number.
This enables users to copy manual positions, positions belonging to a specific Expert Advisor or all eligible positions.
Copier Position Filtering
Provides the option to exclude positions identified as originating from the Trade Copier, helping prevent unintended copying loops.
Symbol Mapping
Configurable Master and Slave symbol prefixes and suffixes accommodate differences in broker symbol naming.
Broker contract specifications and symbol compatibility must be checked before use.
Interactive Trading Dashboard
The integrated MQLXpert dashboard provides real-time monitoring of the Trade Copier's operational status.
The dashboard displays:
-
Current operating mode.
-
Active copying channel.
-
Connection status.
-
Number of Master positions.
-
Number of copied positions.
-
Selected position-sizing method.
-
Selected copying direction.
-
Snapshot age.
-
Latest synchronisation activity.
Pause & Resume Functionality
The Slave dashboard includes an interactive control for temporarily suspending new copied positions.
While paused, existing copied positions continue to be managed according to the configured synchronisation settings.
Positions opened on the Master during the pause are excluded from copying.
When copying is resumed, only new eligible positions are copied following synchronisation.
This prevents missed trades from being opened retrospectively at potentially different market prices.
The pause status and excluded position records are retained during normal terminal restarts.
Persistent Position Tracking
MQLXpert Trade Copier maintains persistent position records to identify previously copied trades following normal terminal restarts and EA reinitialisation.
This helps prevent duplicate positions and allows existing copied positions to continue being managed.
The system also monitors Master identity, connection status and snapshot integrity.
New trading operations are restricted when valid synchronisation information is unavailable.
Input Parameters
Connection
-
Mode: Select Master or Slave operating mode.
-
Channel: Unique copying channel name.
-
ExpectedMasterLogin: Optional restriction to a specific Master account number. Zero disables the additional account-number restriction.
-
SyncSeconds: Synchronisation interval in seconds.
-
MaxSnapshotAgeSeconds: Maximum permitted age of received Master information.
-
CopyExistingPositions: Determines whether existing Master positions are copied during initial synchronisation.
Position Sizing (Slave)
-
LotMode: Select multiplier, fixed or proportional lot sizing.
-
LotMultiplier: Position-sizing multiplier.
-
FixedLots: Position size used in fixed lot mode.
-
UseEquity: Uses account equity instead of account balance for proportional sizing.
-
CopierMagic: Unique magic number assigned to copied positions.
-
DeviationPoints: Permitted execution deviation in points.
Copy Settings (Slave)
-
ReverseTrades: Enables opposite-direction trade copying.
-
CopyStopLoss: Enables stop loss synchronisation.
-
CopyTakeProfit: Enables take profit synchronisation.
-
SyncPartialCloses: Enables partial closure synchronisation.
-
SyncFullCloses: Enables full closure synchronisation.
-
MasterPrefix: Master broker symbol prefix.
-
MasterSuffix: Master broker symbol suffix.
-
SlavePrefix: Slave broker symbol prefix.
-
SlaveSuffix: Slave broker symbol suffix.
New Position Filters (Master or Slave)
-
FilterMagic: Filters positions by magic number. Use -1 for all magic numbers or 0 for manual positions.
-
FilterSymbols: Comma-separated list of permitted trading symbols. Leave blank to allow all symbols.
-
IncludeCopierPositions: Allows positions identified as originating from the Trade Copier to be included.
Control Panel
-
ShowPanel: Enables or disables the dashboard.
-
PanelX: Horizontal dashboard position.
-
PanelY: Vertical dashboard position.
Recommended Setup
-
Platform: MetaTrader 5.
-
Slave account type: Hedging.
-
Timeframe: Any.
-
Trading instruments: Compatible broker-supported instruments.
-
Connection: Local MT5 terminals running on the same computer or VPS.
-
Synchronisation interval: 1 second by default.
-
Algorithmic trading: Enabled on the Slave terminal.
How to Use
Master Terminal
-
Open MetaTrader 5.
-
Attach MQLXpert Trade Copier to a chart.
-
Select MODE_MASTER.
-
Configure the copying channel.
-
Confirm that the dashboard displays Broadcasting.
Slave Terminal
-
Open a separate MetaTrader 5 terminal.
-
Attach MQLXpert Trade Copier to a chart.
-
Select MODE_SLAVE.
-
Enter the same copying channel as the Master.
-
Configure position sizing and copying preferences.
-
Enable algorithmic trading.
-
Confirm that the dashboard displays Connected.
Eligible Master positions will then be copied according to the configured settings.
Important Information
-
Both terminals must operate on the same computer or VPS.
-
The Slave requires a hedging account.
-
Both terminals must remain operational and connected.
-
This utility copies open market positions, not pending orders.
-
Entry and exit prices may differ between accounts.
-
Execution depends on broker conditions, available margin, spreads and trading restrictions.
-
Proportional lot sizing requires matching account currencies.
-
Symbol mapping depends on compatible broker symbol names and contract specifications.
-
Conventional Strategy Tester backtesting is not supported because the utility requires separate operating MT5 terminals.
-
The featured screenshots demonstrate functionality using demo accounts.
-
Cross-broker prefix and suffix mapping has not yet been verified through a practical broker test.
-
Users should thoroughly test their configuration on demo accounts before using live accounts.
MQLXpert Trade Copier is a trade management utility and does not generate independent trading signals.
Communication and Support
For product enquiries, configuration assistance or technical support, please contact me directly through MQL5 private messaging.
Developed by MQLXpert
Code for Traders. By Traders.
