Skip to content

MT5 Coverage Sync

Balance synchronization between MT5 (Netting position accounting system) and XCore is configured on both the XCore and MT5 sides. The process is executed once per day at a predefined time (CovSyncTime), and whenever a balance is updated (deposits, withdrawals, or adjustments) and during EOD reconciliation, and is performed only when all required conditions are met.

Position Base Check

  • If the base of the position is fully synchronized across all symbols, the balance synchronization is executed.
  • If any symbol is not synchronized, a warning is generated and the base of the position must be synchronized manually.
Hedged Positions

Coverage sync will function, but only with the first open position for each symbol. Additional hedged positions for the same symbol will not be included in the synchronization.

Leverage Configuration

If multiple leverage tiers are configured in MT5, XCore must be configured accordingly using AccountProfileSymLeverageSetting. XCore supports multiple leverage layers to match MT5 configuration.

Note: Ensure that all symbols are covered, so no symbols net at the currency level, and that XCore matches MT5 leverage tiers.

Account, AccountGroupSettings Recommendations

Balance Adjustments(MT5)

Swaps, Dividends, Tax, Commissions, and other charges that have already been applied to the MT5 account balance are automatically reflected in XCore during synchronization.

How to configure in MetaTrader 5

How to configure MetaTrader 5 Manager API

MT5 Gateway Parameters:

Parameter Value Description
1 MgrHost=ip:port MetaTrader 5 server IP address and port.
2 MgrLogin=manager_login Manager login.
3 MgrPwd=manager_password Manager password.

How to configure in XCore

An example of a rule is shown below in the Connector Config Setting table:

name config type data type required description
CovSyncTime trading VARCHAR Y Defines the time(HH:mm) when daily synchronization is executed. The time is interpreted according to the timezone specified in the System table.
CovSync_[NUMBER] trading VARCHAR Y CovSync_N defines a synchronization rule.
The value must include the following parameters, separated with a comma:
• MT5 login
• Account name
• Wallet name under AccountProfileWalletSetting

Notes: Multiple synchronization rules by adding additional parameters is allowed, such as: CovSync_0, CovSync_1, CovSync_2 and so on. Exactly three comma-separated parts are required, the login must be numeric, the account and the wallet must exist, and a login can appear in only one rule; a rule that fails these checks is logged and skipped.