Here's a comprehensive guide on how to install and use the Local Reverse Trade Copier E

24 June 2026, 22:09
Chukwuemeka Kingsley Anyanwu
0
30
## Overview
The Local Reverse Trade Copier EA allows you to synchronize trades between two MetaTrader 5 accounts on the same computer. One account acts as the **MASTER** (sends trades) and the other as the **SLAVE** (copies trades). All communication happens through a local server, ensuring instant trade copying with minimal latency.

📦 What's Included

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

🚀Installation Guide

### Step 1: Install the Server Application

1. **Download** `trade_copier_server.exe` from the provided link
2. **Place** the file in a convenient location (e.g., `C:\TradeCopier\`)
3. **Run** the server by double-clicking `trade_copier_server.exe`
4. You should see a command prompt window showing:
   ```
   🚀 Starting Trade Copier Server on 127.0.0.1:5000
   ```
5. **Keep this window open** - the server must run continuously for the EA to work

### Step 2: Install the EA in MetaTrader 5

1. **Copy** `LocalTradeCopier.ex5` to your MT5 Data Folder:
   - Open MT5 → File → Open Data Folder
   - Navigate to: `MQL5\Experts\`
   - Paste the EA file here

2. **Refresh** the Navigator panel in MT5:
   - Right-click in the Navigator panel → Refresh
   - You should see "Local Trade Copier" appear

### Step 3: Configure the Master Account

1. **Attach** the EA to a chart on your MASTER account
2. Set the following parameters:

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

3. Click **OK** to start the EA
4. Check the Experts tab for confirmation:
   ```
   ✅ Registered as master successfully
   📤 New trade sent: 1001 EURUSD BUY
   ```

### Step 4: Configure the Slave Account

1. **Open** MetaTrader 5 on your SLAVE account (can be on the same or different instance)
2. **Attach** the EA to a chart
3. Set the following parameters:

| Parameter | Setting |
|-----------|---------|
| **Operation Mode** | `SLAVE` |
| **Master Account Number** | Enter the SAME number as master (e.g., `12345`) |
| **Slave Lot Size** | Fixed lot size (e.g., `0.01`) |
| **Use Percentage Lot** | `true` to use % of master's lot, `false` for fixed |
| **Lot Size Percentage** | If using %, set here (e.g., `100` = same as master) |
| **Reverse Trades** | `true` to reverse BUY/SELL, `false` for normal |
| **Copy Only Same Symbol** | `true` to only copy if symbol exists |

4. Click **OK** to start the EA
5. Check the Experts tab for confirmation:
   ```
   ✅ Connected
   📥 Copying trades from master...
   ```

 ⚙️ How It Works


### Master Mode (Sends Trades)
- Automatically detects when you open, modify, or close trades
- Sends trade data to the local server instantly
- Updates the server when SL/TP are modified
- Notifies the server when trades are closed

### Slave Mode (Copies Trades)
- Connects to the server using the Master Account Number
- Fetches trades from the master instantly
- Copies trades with your chosen lot size settings
- Auto-closes trades when master closes them
- Updates SL/TP when master modifies them
- Skips trades older than 10 seconds (prevents duplicate copies)

 🎯Features

### 🔄 Trade Reversal
When `Reverse Trades = true`:
- Master BUY → Slave SELL
- Master SELL → Slave BUY
- SL/TP distances are preserved and applied in the opposite direction

### 📊 Lot Size Options
- **Fixed Lot Size**: Always use a specific lot size
- **Percentage of Master**: Use % of master's lot (e.g., 50% = half the lot size)

### 🔒 Smart Copying
- Prevents duplicate trades
- Auto-syncs when EA restarts
- Handles symbol name differences (e.g., XAUUSD → XAUUSDm)
- Detects and closes stale trades

 🛠️Troubleshooting

### Server Not Connecting
1. Ensure `trade_copier_server.exe` is running
2. Check if port 5000 is free: `netstat -ano | findstr 5000`
3. Disable firewall temporarily to test
4. Check the EA Experts tab for connection errors

### Trades Not Copying
1. Verify both accounts use the SAME Master Account Number
2. Check if the symbol exists on the slave account
3. Ensure `Copy Only Same Symbol` is set correctly
4. Check the Experts tab for error messages

### SL/TP Not Updating
1. Ensure the master is sending "modify" actions
2. Check if SL/TP are within broker limits on slave
3. Verify `Reverse Trades` setting if enabled

### Duplicate Trades Opening
1. Restart both EAs
2. The EA has built-in duplicate detection
3. Wait 10 seconds for the stale trade check to run

 

📊 Server Status Indicators


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

| Indicator | Meaning |
|-----------|---------|
| 🟢 **Connected** | Server is running and connected |
| 🔴 **Disconnected** | Server not running or unreachable |
| 🟡 **Connecting...** | Attempting to connect |

⚠️ Important Notes


1. **Always run the server first** before attaching the EA
2. **Keep the server running** while using the EA
3. **Use the same Master Account Number** on both Master and Slave
4. **Test with small lot sizes first** to ensure everything works
5. **Both MT5 instances must be on the same computer**
6. **The server uses localhost (127.0.0.1) only** - it doesn't work over the internet

🔧Server URL Configuration

The EA uses the following URLs internally:
- **Server URL**: `http://127.0.0.1:5000`
- **Endpoints**:
  - `POST /register_master` - Register master account
  - `POST /update_trade` - Send trade updates
  - `GET /get_trades/{master_id}` - Get trades from master
  - `GET /check_connection` - Check server status

**Do not change these unless you know what you're doing.**

 📝 Example Scenarios


### Scenario 1: Copying with Same Lot Size
- Master opens: EURUSD BUY 0.10 lots
- Master Account Number: `12345`
- Slave settings: Operation Mode = `SLAVE`, Master Account Number = `12345`, Lot Size Percentage = `100`
- Result: Slave opens EURUSD BUY 0.10 lots

### Scenario 2: Copying with Reduced Lot Size
- Master opens: GBPUSD SELL 0.20 lots
- Slave settings: Lot Size Percentage = `50`
- Result: Slave opens GBPUSD SELL 0.10 lots

### Scenario 3: Reversed Trades
- Master opens: XAUUSD BUY 0.05 lots, SL: 1950, TP: 1980
- Slave settings: Reverse Trades = `true`
- Result: Slave opens XAUUSD SELL 0.05 lots, SL: 1980, TP: 1950


💡 Tips & Best Practices


1. **Use a demo account first** to test the copier
2. **Monitor the Experts tab** for any errors
3. **Keep the server window visible** to monitor activity
4. **Restart both EAs** if you notice any sync issues
5. **Use consistent symbol names** between brokers (or use the symbol matching feature)

 

🆘 Getting Help


If you encounter any issues:
1. Check the Experts tab for error messages
2. Check the server command prompt for server-side errors
3. Ensure both accounts have sufficient margin
4. Verify the symbol is available on the slave account
5. Check that SL/TP levels are within broker limits

🔒 Security Note


The Local Trade Copier uses **localhost (127.0.0.1) only** - it does NOT expose any ports to the internet. All communication stays within your computer, making it completely secure.


**Happy Copy Trading! 📈**

*Version 1.00 | Support: Contact the developer*