Attachments forums

Re: Trade Copy

funchi, Tue Aug 18, 2026 11:29 am

“TradeCopier_Master” and “TradeCopier_Client” are used to copy trades between PCs within a local network.
Their operating specifications are almost the same as “Trade_copy_src” and “Trade_copy_des”.

However, I have only tested them on the same PC. I have not tested operation between different PCs. If you encounter any problems, please let me know.

Overview

  Copies trades to another account.
  For use on a local network.

Operating Environment

  Works with both MT5 and MT4.

Overview of Operation

  The source and destination EAs associate trade copies using the “Pairing ID” parameter.
  Trades from one source account can be copied to multiple destination accounts.
  The source EA allows multiple Magic Numbers to be specified as copy targets.

Operating Conditions / Limitations

  Limited to use within a local network.
  Hedging mode only; Netting mode is not supported.
  Market orders only; pending orders are not supported.
  Full position closures only; partial closures are not supported and have not been tested.
  If you are setting up a complex trade-copying configuration, please include details of your configuration when asking questions.

Detailed Operating Specifications

  Trades to be copied

    New orders
      Copies market orders, SL and TP.

    Order modifications
      Modifies SL and TP.

    Closing orders
      Any order on the destination that does not exist on the source will be closed.
      Full position closures only. Partial closures are not supported and have not been tested.

    Magic Numbers
      The Magic Numbers specified in the parameters are copied.
      Multiple Magic Numbers can be specified.

    Ignore new orders older than X seconds.
      Specifies whether trades that have been open for a certain amount of time since execution should be copied.
      This determines whether trades are copied retrospectively.
      The value is specified in seconds.

  Destination behaviour

    Magic Numbers
      Operates using the configured Magic Numbers.

    User intervention
      A closing order made manually on the destination remains closed and will not be copied again.
      If an order on the destination is manually modified, it will be changed back to match the source order.
      A new order on the destination that does not exist on the source will be closed. (If the Magic Number is different, it is not affected.)

    Lot size
      As a basic calculation, the lot size is calculated according to the balance ratio between the source and destination accounts.
      It is then recalculated according to the configured conversion ratio parameter.

  Behaviour in abnormal situations (or until both the source and destination EAs have finished starting up)

    As a basic rule, source trade information is reflected on the destination even if there is a delay in operation.
    However, new orders are copied according to the “Ignore new trade orders older than X seconds” parameter.

Startup Procedure

  There is no specific order in which the source and destination should be started.

How It Works

  Trade information is transferred over the network using TCP.
  The “Pairing ID” parameter can be set within the range of -10000 to 10000.
  The port used is adjusted from 49000 based on the value of the “Pairing ID” parameter.
  Transfers are limited to PCs within the same local network. It also works between terminals on the same PC.
  Trade information is never transferred to an external network.

Before Use
  Windows will display a security warning window once.
  Please allow access if you wish to continue using the software.
  Depending on your environment, additional configuration of your router or other network equipment may be required. I cannot provide support for such network configuration.

Known Issue

If you use the EA button to switch between “Inactive” and “Active”, a message indicating that a connection cannot be established may appear at some point, after which trades can no longer be copied.
As a workaround, please restart the terminal or the EA.
All files in topic