Skip to content
All library documents

Copying MetaTrader 5 Positions to MetaTrader 4 by Volume

Article MQL5 articles

Summary

The article describes a bridge that mirrors open MetaTrader 5 positions in MetaTrader 4. Its core premise is that matching the instrument and position volume is enough to reproduce aggregate position profit, even if the individual MT4 orders are closed in a different sequence. It outlines transmitting each symbol’s position volume and stop-loss and take-profit levels through a shared file, with the MT5 side checking for changes on a timer and the MT4 side parsing updates and reconciling its orders.

The author illustrates the aggregate-profit point with two equal-sized sell orders closed at swapped levels: individual trade profits change, but their total remains the same. The article also identifies price differences and transmission delay as sources of tracking error, warning that these make scalping unsuitable. The approach is presented as a general-purpose transitional copier, not a fully equivalent replacement for direct execution: broker symbol availability, connection stability, and the treatment of pending orders can affect results. It does not provide evidence of profitability for the copied strategy itself.

Key ideas

  • The copier sends position volume, symbol, and protective levels from MT5 to MT4.
  • Matching total volume at each price level can preserve aggregate profit despite different individual order closures.
  • A shared file and timer-based monitoring are proposed for transmitting position changes.
  • Quote differences and copying delays can cause the receiving account to diverge from the source.
  • The article says these execution gaps make the method unsuitable for scalping.

Tags

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