Brokeret LogoDocs
Plugins / Copy Trade/Parameters

Parameters

Configuration parameters, copy rule format, and lot sizing options.

Plugin Parameters

Configure these parameters in MT5 Administrator under the plugin settings.

ParameterTypeDefaultDescription
API_KeyString(empty)Secret key for the HTTP REST API. Leave empty to disable the API.
API_PortString8443HTTP 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
FieldValuesDescription
MasterLoginAccount loginThe account whose trades are copied
FollowersComma-separated loginsAccounts that receive copies
modemult / multiplier / fixedHow to calculate follower lot size
valueDecimal numberMultiplier factor or fixed lot size
directionsame or reverseCopy 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

RuleEffect
1001>2001,mult,1.0,same1 master → 1 follower, same lot
1001>2001,2002,2003,mult,1.0,same1 master → 3 followers, same lot
1001>2001,2002,fixed,0.01,reverse1 master → 2 followers, fixed 0.01, reversed
1001>2001,2002,2003,2004,mult,0.5,same1 master → 4 followers, half lot

Manual Parameters

Copy rules can be added manually in MT5 Admin as Copy_N parameters:

  1. In MT5 Admin → Plugins → Brokeret Copy Trade → click Add
  2. Set Name to Copy_1, Copy_2, etc.
  3. Set Type to String
  4. 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_N parameters
  • To reset to parameter-based config: delete the .dat file and restart
💡
TipUse the REST API for day-to-day rule management. Use manual parameters only as an initial/fallback configuration.

Capacity

ItemLimit
Maximum copy rules256
Minimum follower lot size0.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