Local Reverse Trade Copier EA - Installation & Updated Usage Guide

24 June 2026, 21:37
Chukwuemeka Kingsley Anyanwu
0
24
 

Overview

The Local Reverse Trade Copier EA enables seamless trade synchronization between two MetaTrader 5 accounts on a single computer. One account functions as the MASTER(transmitting trades), while the other operates as the SLAVE (receiving and copying trades). Communication occurs via a local server, ensuring ultra-low latency trade execution.

 📦

Package Contents

  1.  Nexus Local Copier.ex5 - MetaTrader 5 Expert Advisor file DOWNLOAD HERE
  2.  trade_copier_server.exe - Local server application DOWNLOAD SERVER HERE

 🚀 Installation Process

Step 1: Server Application Setup
  1. Download `trade_copier_server.exe` from the provided link
  2. Save the file to your preferred location (e.g., `C:\TradeCopier\`)
  3.  Launch the server by double-clicking `trade_copier_server.exe`
  4.  A command prompt window will appear displaying:
   🚀 Starting Trade Copier Server on 127.0.0.1:5000
        
5. Keep this window active - the server must remain running for the EA to function

 Step 2: EA Installation in MetaTrader 5

1. Copy `Nexus Local Copier.ex5` to your MT5 Data Folder:
   - Open MT5 → File → Open Data Folder
   - Navigate to: `MQL5\Experts\`
   - Paste the EA file into this directory

2. Refresh the Navigator panel:
   - Right-click in the Navigator panel → Select Refresh
   - "Local Trade Copier" should now appear in the list

 Step 3: Master Account Configuration
  1. Apply the EA to a chart on your MASTER account
  2. Configure the following parameters:

| Parameter | Setting |
|-----------|---------|
| Operation Mode | `MASTER` |
| Master Account Number | Enter a unique identifier (e.g., `12345`) |

3. Click OK to activate the EA
4. Verify activation in the Experts tab:
   ```
   ✅ Registered as master successfully
   📤 New trade sent: 1001 EURUSD BUY
   ```
 Step 4: Slave Account Configuration
  1. Launch MetaTrader 5 on your SLAVE account (can be same or separate instance)
  2. Apply the EA to a chart
  3.  Configure the following parameters:

| Parameter | Setting |
|-----------|---------|
| **Operation Mode** | `SLAVE` |
| **Master Account Number** | Enter the SAME identifier used for master (e.g., `12345`) |
| **Slave Lot Size** | Fixed lot size (e.g., `0.01`) |
| **Use Percentage Lot** | `true` for percentage-based, `false` for fixed |
| **Lot Size Percentage** | If using percentage, set value (e.g., `100` = identical to master) |
| **Reverse Trades** | `true` to invert BUY/SELL, `false` for standard copying |
| **Copy Only Same Symbol** | `true` to copy only if symbol exists on slave |

4. Click OK to activate the EA
5. Confirm activation in the Experts tab:
   ✅ Connected
   📥 Copying trades from master...

⚙️ Operational Mechanics

### Master Mode (Transmitting Trades)
- Automatically detects trade openings, modifications, and closures
- Instantly transmits trade data to the local server
- Updates server when Stop Loss/Take Profit levels are adjusted
- Notifies server upon trade closure

### Slave Mode (Receiving Trades)
- Establishes connection to server using Master Account Number
- Retrieves trades from master in real-time
- Executes trades with your specified lot size configuration
- Automatically closes trades when master closes them
- Updates SL/TP when master modifies them
- Ignores trades older than 10 seconds (prevents duplicate execution)

🎯 Key Features

### 🔄 Trade Reversal Capability
When `Reverse Trades = true`:
- Master BUY → Slave SELL
- Master SELL → Slave BUY
- SL/TP distances are maintained and applied inversely

### 📊 Lot Size Flexibility
- **Fixed Lot Size**: Consistent position sizing
- **Percentage of Master**: Proportional lot sizing (e.g., 50% = half the master's lot)

### 🔒 Intelligent Copying
- Duplicate trade prevention
- Automatic synchronization upon EA restart
- Symbol name variation handling (e.g., XAUUSD → XAUUSDm)
- Stale trade detection and closure

 🛠️ Troubleshooting Guide

### Server Connection Issues
1. Verify `trade_copier_server.exe` is running
2. Check port availability: `netstat -ano | findstr 5000`
3. Temporarily disable firewall for testing
4. Review EA Experts tab for connection errors

### Trade Copying Failures
1. Confirm identical Master Account Numbers on both accounts
2. Verify symbol availability on slave account
3. Check `Copy Only Same Symbol` setting
4. Review Experts tab for error messages

### SL/TP Update Problems
1. Ensure master is transmitting modification actions
2. Verify SL/TP levels comply with slave broker limits
3. Check `Reverse Trades` configuration if enabled

### Duplicate Trade Creation
1. Restart both EAs
2. Built-in duplicate detection will activate
3. Allow 10 seconds for stale trade verification

 📊 Status Indicator Guide

The EA displays a status indicator in the top-right corner:

| Indicator | Status |
|-----------|--------|
| 🟢 **Connected** | Server operational and connected |
| 🔴 **Disconnected** | Server offline or unreachable |
| 🟡 **Connecting...** | Connection attempt in progress |

 ⚠️ Critical Notes

1. **Server must be launched before attaching the EA**
2. **Maintain continuous server operation** during EA usage
3. **Consistent Master Account Number** required across both instances
4. **Test with minimal lot sizes** initially to verify functionality
5. **Both MT5 instances must reside on the same computer**
6. **Localhost (127.0.0.1) only** - no internet connectivity

 🔧 Server URL Configuration

Internal server endpoints:
- **Server Address**: `http://127.0.0.1:5000`
- **Endpoints**:
  - `POST /register_master` - Master registration
  - `POST /update_trade` - Trade updates
  - `GET /get_trades/{master_id}` - Retrieve master trades
  - `GET /check_connection` - Server status verification

**Modification not recommended** unless you have advanced technical knowledge.

 📝 Practical Scenarios

 Scenario 1: Identical Lot Sizing
- Master trade: EURUSD BUY 0.10 lots
- Master Account Number: `12345`
- Slave settings: Operation Mode = `SLAVE`, Master Account Number = `12345`, Lot Size Percentage = `100`
- Result: Slave executes EURUSD BUY 0.10 lots

Scenario 2: Reduced Lot Sizing
- Master trade: GBPUSD SELL 0.20 lots
- Slave settings: Lot Size Percentage = `50`
- Result: Slave executes GBPUSD SELL 0.10 lots

Scenario 3: Trade Reversal
- Master trade: XAUUSD BUY 0.05 lots, SL: 1950, TP: 1980
- Slave settings: Reverse Trades = `true`
- Result: Slave executes XAUUSD SELL 0.05 lots, SL: 1980, TP: 1950

💡 Best Practices

1. **Begin with demo accounts** for testing purposes
2. **Monitor the Experts tab** regularly for errors
3. **Keep server window visible** for activity monitoring
4. **Restart both EAs** if synchronization issues arise
5. **Maintain consistent symbol naming** between brokers when possible


 🆘 Support Resources

If issues persist:
1. Check Experts tab for error details
2. Review server command prompt for server-side errors
3. Verify sufficient margin on both accounts
4. Confirm symbol availability on slave account
5. Ensure SL/TP levels comply with broker restrictions

 🔒 Security Information

The Local Trade Copier operates exclusively via **localhost (127.0.0.1)** - no external ports are exposed. All communication remains confined to your computer, ensuring complete security.

Happy Copy Trading! 
Version 5.00 | For support: Contact the developer