CTC LOCAL COPIER 1.0 - free local trade copier for MetaTrader 4 and 5
=====================================================================
From CrazyTradeCopier - https://crazytradecopier.com/tools

Copies trades between MetaTrader terminals ON THE SAME Windows PC or VPS:
MT4 to MT4, MT5 to MT5, MT4 to MT5 and MT5 to MT4. Nothing goes over the internet.

FILES
  MQL5\CTC_LocalSender.mq5     -> the MASTER terminal (MT5), one chart
  MQL5\CTC_LocalReceiver.mq5   -> each COPY terminal (MT5), one chart
  MQL4\CTC_LocalSender.mq4     -> the MASTER terminal (MT4), one chart
  MQL4\CTC_LocalReceiver.mq4   -> each COPY terminal (MT4), one chart

SETUP (2 minutes)
  1. In each terminal: File > Open Data Folder, then copy the Sender (master) or the
     Receiver (copy terminals) into MQL5\Experts (MT5) or MQL4\Experts (MT4).
  2. Open the file in MetaEditor and press F7 (Compile), or restart the terminal.
  3. Drag the Sender onto any chart of the master terminal. Keep Channel = main
     (or give it a name, e.g. gold1).
  4. Drag the Receiver onto any chart of each copy terminal with the SAME Channel.
     Tick "Allow Algo Trading" and switch Algo Trading / AutoTrading on.
  5. The top-left of the chart says what it is doing, e.g. "following 2 master trade(s)".
  Several senders can run on one PC with different channels; a copy terminal can run
  one receiver per channel. TEST ON DEMO ACCOUNTS FIRST.

RECEIVER SETTINGS
  LotMode         Same / Multiplier (master x LotValue) / Fixed (LotValue lots) /
                  Balance ratio / Equity ratio (both accounts in the same currency)
  MinLot, MaxLot  limits for the copy size (then the broker's lot step)
  ReverseCopy     buys become sells; stop loss and take profit swap
  CopySL, CopyTP, CopyPending
  CopyExisting    also copy trades already open when the receiver starts (off)
  SymbolMap       e.g. XAUUSD=GOLD,US30=DJ30 ; or SymbolPrefix / SymbolSuffix.
                  Otherwise a Market Watch name that starts with the master's is used
                  (EURUSD -> EURUSD.r).
  AllowedSymbols, BlockedSymbols, MaxSlippagePoints
  MagicNumber     of the copies (their comment is CTCL#<master trade>)

WHAT IT DOES - AND NEVER DOES
  - New master trade -> a copy. Master moves its SL / TP -> the copy follows.
    Master closes part -> the copy closes the same share. Master closes -> copy closes.
  - A copy you close yourself (or closed by its own SL / TP) is NOT reopened.
  - If the sender stops, its terminal closes, or its file is older than
    MaxSnapshotAgeSec (10 s), the receiver DOES NOTHING - it never closes your copies
    because the master went quiet.
  - MT5 copy accounts must be HEDGING accounts (netting accounts are refused at start).

HOW IT WORKS
  The sender writes %APPDATA%\MetaQuotes\Terminal\Common\Files\CTCLocal\<Channel>.csv
  at every change and at least once a second. Each receiver reads it and keeps its
  master-trade -> copy links in the terminal's Global Variables (CL.<Channel>.*),
  so a restart picks up where it left off.

TERMS
  Free to use. Provided "as is", without warranty of any kind; you use it at your own
  risk. Trading carries risk of loss. Not financial advice. You may not sell it or
  pass it off as your own. (c) 2026 CrazyTradeCopier.

Need accounts on different computers or VPSes, cTrader, prop firm rule protection,
alerts and reports? The cloud copier: https://crazytradecopier.com (14-day free trial).
