Skip to content
All library documents

MT5 Trade Copier with Master-Slave Accounts and Flexible Sizing

Article MQL5 code base

Summary

This MT5 trade-copying program uses a master account to supply trades and one or more slave accounts to receive them. The stated features include copying from multiple providers to one slave, independently enabling stop-loss, take-profit, and pending-order copying, and adjusting copied trade direction. Users can size copied positions by fixed volume, in proportion to account balance, or by matching the supplier’s volume. An optional price-deviation condition can delay opening a copied trade until the slave’s price differs from the supplier’s by a specified amount.

The operating description requires both terminals to remain open: the provider terminal runs in Master mode, and the receiving terminal runs in Slave mode with a provider selected and copying enabled. The document describes functionality and setup only; it gives no latency, slippage, reliability, or performance measurements. Copying supplier trades also does not establish that those trades suit the receiving account’s risk limits.

Key ideas

  • The copier uses master and slave terminal roles to transmit trades between accounts.
  • Multiple trade providers can feed a single receiving account.
  • Users can configure copied protective orders, pending orders, direction, and volume sizing.
  • A price-deviation condition can govern when copied positions open on the slave account.
  • Both terminals must run simultaneously, and no reliability or performance evidence is provided.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.