The same executions can leave different records
On an MT5 netting account, a symbol can have one open position. On an account that uses hedging, multiple positions can exist for the symbol. An ordinary opposite order on a netting account can reduce, close or reverse the current position, depending on the executed amount. A hedging account can keep an independently opened opposite position. MQL5 · Account type ↗
An example for a support desk
Suppose a client holds one lot long and an additional sale of 0.4 lot executes. In netting mode, the resulting position is 0.6 lot long. In hedging mode, opening the sale independently can leave one long lot and a separate short position of 0.4 lot. Their signed quantities sum to 0.6 lot, while the open tickets and gross exposure differ.
What to check during a migration
Read the account’s ACCOUNT_MARGIN_MODE and record it with the snapshot. Test openings, targeted closures and reversals with a small set of known executions. Compare the resulting positions and tickets, then reconcile executed deals. Any comparison of margin also needs the settings applicable to those accounts.
