Parameters
Configuration parameters, copy rule format, and lot sizing options.
Plugin Parameters
Configure these parameters in MT5 Administrator under the plugin settings.
| Parameter | Type | Default | Description |
|---|---|---|---|
API_Key | String | (empty) | Secret key for the HTTP REST API. Leave empty to disable the API. |
API_Port | String | 8443 | HTTP port the API listens on |
Copy Rule Configuration
Copy rules define which master accounts are copied to which followers. Rules can be managed via the REST API (recommended) or configured manually as plugin parameters.
Rule Format
MasterLogin>Follower1,Follower2,...,mode,value,direction
| Field | Values | Description |
|---|---|---|
MasterLogin | Account login | The account whose trades are copied |
Followers | Comma-separated logins | Accounts that receive copies |
mode | mult / multiplier / fixed | How to calculate follower lot size |
value | Decimal number | Multiplier factor or fixed lot size |
direction | same or reverse | Copy same direction or opposite |
The last 3 comma-separated values are always mode,value,direction. Everything between > and those last 3 values are follower logins.
Rule Examples
| Rule | Effect |
|---|---|
1001>2001,mult,1.0,same | 1 master → 1 follower, same lot |
1001>2001,2002,2003,mult,1.0,same | 1 master → 3 followers, same lot |
1001>2001,2002,fixed,0.01,reverse | 1 master → 2 followers, fixed 0.01, reversed |
1001>2001,2002,2003,2004,mult,0.5,same | 1 master → 4 followers, half lot |
Manual Parameters
Copy rules can be added manually in MT5 Admin as Copy_N parameters:
- In MT5 Admin → Plugins → Brokeret Copy Trade → click Add
- Set Name to
Copy_1,Copy_2, etc. - Set Type to String
- Set Value to the rule in the format above
Copy_1 = 1001>2001,2002,2003,mult,1.0,same
Copy_2 = 1001>2004,fixed,0.01,reverse
Copy_3 = 5001>6001,6002,mult,0.5,same
Rules reload automatically when you save changes in MT5 Admin (no restart needed).
API vs Parameter Rules
Using the REST API is the recommended method for managing rules:
- Rules added via API are saved to
BrokeretCopyTrade_rules.dat(next to the DLL) - If this file exists, it takes priority over plugin parameters
- If no file exists, the plugin loads rules from
Copy_Nparameters - To reset to parameter-based config: delete the
.datfile and restart
Capacity
| Item | Limit |
|---|---|
| Maximum copy rules | 256 |
| Minimum follower lot size | 0.01 (100 volume units) |
Live Config Reload
The plugin subscribes to MT5 config change notifications. When plugin parameters are modified in MT5 Admin, rules reload automatically — no server restart needed.
The server journal logs: BrokeretCT: plugin config updated, reloading rules...
Logging
All plugin activity is logged to the MT5 server journal with the BrokeretCT: prefix.
Trade copy examples:
BrokeretCT: OPEN follower 45163 BUY XAUUSD vol=200 price=2925.50 (master pos 1184097)
BrokeretCT: CLOSE follower 45163 pos 1184098 XAUUSD vol=200
Rule management:
BrokeretCT: API added rule — master 3005 -> follower 47000
BrokeretCT: 3 rules saved to file
Next Steps
- API Reference — Manage rules remotely via REST
- Introduction — Back to the plugin overview