Brokeret LogoDocs
Plugins / Copy Trade/Installation

Installation

Step-by-step guide to installing the Copy Trade plugin.

Requirements

  • MetaTrader 5 Server (x64)
  • Windows Server with MT5 Trade Server running
  • Server public IP whitelisted by Brokeret

Installation Steps

Step 1: Copy Plugin

Copy BrokeretCopyTrade64.dll to your MT5 server's plugins directory:

<MT5 Server Directory>\plugins\BrokeretCopyTrade64.dll

Step 2: Whitelist API Port

If using the REST API for remote rule management, whitelist port 8443 (default) in your firewall:

netsh advfirewall firewall add rule name="Brokeret CopyTrade API" dir=in action=allow protocol=TCP localport=8443

The port can be changed via the API_Port plugin parameter.

Step 3: Restart Server

Restart the MT5 Trade Server (or the entire cluster if running multiple instances) so it discovers the new plugin DLL.

Step 4: Enable in MT5 Admin

  1. Open MT5 Administrator
  2. Navigate to ServerPlugins
  3. Click Add → select Brokeret Copy Trade
  4. Configure the API_Key parameter with a strong value
  5. Set plugin mode to Enabled
  6. Click Save
⚠️
WarningMake sure your server's public IP is authorized with Brokeret before enabling. Contact Brokeret if the plugin shows license REJECTED in the journal.

Licensing

The Copy Trade plugin requires IP whitelisting. No license keys or manual activation is needed — simply provide your MT5 server's public IP address to the Brokeret team and it will be whitelisted.

Once your IP is whitelisted, the plugin activates automatically on startup. If your server IP changes, contact Brokeret to update the whitelist.

For multiple servers or failover setups, provide all public IPs — up to 16 IPs can be authorized per license.

📧
NoteContact the Brokeret team with your server's public IP address to get started.

Verifying Installation

Check the MT5 server journal for:

Brokeret Copy Trade v1.00 — Copyright 2026, Brokeret
BrokeretCT: server IP detected: 203.0.113.5
BrokeretCT: license VALID
BrokeretCT: plugin started, monitoring master accounts

You can also verify via the API:

curl -H "X-API-Key: your-key" http://<server_ip>:8443/api/status

Troubleshooting

"license REJECTED — IP not found"

Your server's public IP is not registered with Brokeret. Run Invoke-RestMethod https://api.ipify.org on the server to find your IP, then contact Brokeret.

"license INACTIVE or EXPIRED"

Your license has been deactivated or has passed its expiry date. Contact Brokeret to renew.

"failed to detect server IP"

The server cannot reach https://api.ipify.org. Ensure the server has outbound HTTPS access on port 443.

Plugin not appearing in MT5 Admin

Ensure BrokeretCopyTrade64.dll is in the plugins\ directory and restart the MT5 Trade Server.

Cannot connect to the API

  • Ensure API_Key is set (not empty) — the API does not start when the key is empty
  • Check firewall allows inbound TCP on the configured API port
  • If you see Access denied, register the URL:
netsh http add urlacl url=http://+:8443/api/ user=Everyone

Position close not working

  • The follower position must have a comment matching cp:<master_position_id>
  • If comments were modified externally, the plugin cannot find the position
  • Check journal for CLOSE — no position found messages

Next Steps