Copier Released
GDI Local Copier: Master Sender and Master Receiver
Copy gold trades from one MetaTrader 5 account to another on the same computer or Windows server, and decide with your own filters which of them are worth copying.
- Version4.00
- Last updated2026-12-05
- SymbolGold (XAUUSD) only
- TimeframeAny gold chart
Download the Master Sender ↓ Download the Master Receiver ↓ Get a GDI Key (7-day free trial) →
One system in two halves
The copier is made of two Expert Advisors that work together.
| Robot | Where you attach it | What it does | Does it trade? |
|---|---|---|---|
| Master Sender | On the source account (the one you copy from) | Writes the list of open gold positions to a file in the MetaTrader Common folder | No, it only reads |
| Master Receiver | On the destination account (the one you copy to) | Reads that file and opens, adjusts and closes the copies under your settings | Only in Automatic copy mode |
Nothing goes through a signal server: both terminals simply run on the same machine. To follow the GDI Signal over the internet instead, use the GDI Signal Copier EA.
An example: from a cent account to a real account
Imagine a Windows server with two MetaTrader 5 terminals. The first is logged in to a cent account that receives trades from a copy service such as Pelican Trading. The second is logged in to a real account, for example at IC Markets.
- The Master Sender runs on the cent account and publishes whatever gold trades appear there, no matter who opened them.
- The Master Receiver runs on the real account. Before opening each copy it applies the filters you switched on: for instance, only orders that arrive with a stop loss, never more than a total volume, nothing around high-importance news, nothing against the GDI Bot permission, and a day stop.
- If the source starts opening orders your filters reject, they stay on the cent account and are not repeated on the real one.
- For lot size, a fixed lot (for example 0.01) is the simplest choice with a cent source. A multiplier of 1 with the cent source read as real repeats the same lot number on the real account, which is a far bigger position in money terms than it was on the cent account.
The filters limit what gets copied; they do not make a poor source profitable, and no result is promised. Try the whole chain on demo accounts first.
The IC Markets link is an affiliate link: see the affiliate disclosure. Pelican Trading is only named as an example and is not connected with this site.
Requirements
| Requirement | Detail |
|---|---|
| Platform | MetaTrader 5 on Windows, a PC or a Windows server. Two separate installations if both accounts are on the same machine. |
| Symbol | Gold (XAUUSD) only. Broker suffixes are recognised. |
| Account type | A hedging account is the safe choice for the destination. |
| GDI Key | Required by both robots. The files are free to download. |
| Terminal settings | Tools > Options > Expert Advisors: tick 'Allow WebRequest for listed URL' and add https://sync.golddailyinsights.com. On the destination chart tick 'Allow Algo Trading'. |
Downloads
| File | What it is | SHA-256 |
|---|---|---|
GDI_Master_Sender_EA.ex5 | The sending robot | b2daf14d1318dbb598eca0102d33f4be5c0259a5c83e655e2bf635a34d8b135c |
GDI_Master_Receiver_EA.ex5 | The receiving robot | 01f71f1af03bb8b887bdb625d773b33fb488b41fa128b2806161d75aeb111584 |
Ready-made settings files (load them on the Inputs tab with the Load button, then type your GDI Key):
| Settings file | What it sets |
|---|---|
GDI_Master_Sender_EA.set | Sender, factory settings |
GDI_Master_Receiver_EA.set | Receiver, factory settings: Alert only, the GDI readings and the GDI Signal style protections off |
GDI_Master_Receiver_like_1K.set | Receiver, like the 1K version: at most 0.03 lots open together, 3% at the stop loss, day stop 10%, total stop 25%, smaller sizes in drawdown, GDI Bot permission, trend, news and market hours filters on |
GDI_Master_Receiver_like_10K.set | Receiver, like the 10K version: at most 0.20 lots open together, 1% at the stop loss, day stop 4%, total stop 8%, smaller sizes in drawdown, GDI Bot permission, trend, news and market hours filters on |
GDI_Master_Receiver_like_100K.set | Receiver, like the 100K version: at most 2.00 lots open together, 1% at the stop loss, day stop 4%, total stop 8%, smaller sizes in drawdown, GDI Bot permission, trend, news and market hours filters on |
The three presets take their percentages from the GDI Signal versions and measure them on your own account. They are starting points that you can change input by input, and they keep the operating mode on Alert only until you change it.
Installation
- Install two MetaTrader 5 terminals (or use two that you already have) and log each one in to its account.
- In each terminal use File > Open Data Folder, copy the robot into
MQL5/Experts(Sender in the source terminal, Receiver in the destination terminal) and refresh the Navigator. - In both terminals open Tools > Options > Expert Advisors, tick 'Allow WebRequest for listed URL' and add
https://sync.golddailyinsights.com. - Source terminal: open a gold chart, attach the Master Sender, type your GDI Key and leave the channel name as
GDI_MASTER(or choose your own). - Destination terminal: open a gold chart, attach the Master Receiver, type your GDI Key and the same channel name. It starts in Alert only: watch the chart panel and the Experts tab.
- Choose the lot size and the filters you want. When the alerts match what you expect, change Operating mode to Automatic copy and tick 'Allow Algo Trading'.
Master Sender: manual
- It reads the open gold positions several times a second and writes them to a file in the MetaTrader Common folder: openings, closings, partial closings and changes of stop loss and take profit.
- It never opens, changes or closes a trade.
- Choose what to publish by magic number (0 means trades opened by hand), and exclude magic numbers so that orders made by another copier are not sent on again.
- Optional gates on new positions only: news block, indicator or site bias, GDI Bot permission, duplicate filter and a daily loss limit measured on the source account. A position already published keeps being published.
- Give each sender on the same machine its own channel name.
Inputs of the Master Sender
GDI Key
| Input | Factory value | What it does |
|---|---|---|
InpGdiKey | (your key) | GDI Key |
Channel
| Input | Factory value | What it does |
|---|---|---|
InpChannel | GDI_MASTER | Channel name (receivers must use the same) |
Timing
| Input | Factory value | What it does |
|---|---|---|
InpPublishMs | 250 | Check for changes every N milliseconds |
InpHeartbeatSec | 2 | Rewrite the file at least every N seconds (receivers treat older data as stale) |
What to publish
| Input | Factory value | What it does |
|---|---|---|
InpSymbols | (empty) | Gold symbols to publish (empty = every XAUUSD / GOLD name) |
InpMagics | (empty) | Magic numbers to publish (comma separated, empty = all, 0 = trades opened by hand) |
InpExcludeMagics | (empty) | Magic numbers NOT to publish (comma separated, empty = none). Use it to keep orders that another copier made on this account from being sent on again |
Bias filter
| Input | Factory value | What it does |
|---|---|---|
InpBiasFilter | false | Only forward orders in the direction of the indicator bias of their symbol |
InpBiasSource | This terminal's own calculation | Where the bias comes from (the site's reading is for gold; other symbols use this terminal). Choices: This terminal's own calculation; The GDI site's reading of gold; Both must allow. |
InpBiasBlockMixed | false | When this terminal's bias is mixed, forward nothing |
InpBiasMinScore | 12 | Site bias: |score| from which the bias counts (12 = "mild", 40 = strong only) |
InpBiasMixed | Forward the order | Site bias: when the bias is "mixed" (between -score and +score). Choices: Forward the order; Hold the order back. |
InpBiasUnknown | Forward the order | Site bias: when it is unavailable or older than the limit below. Choices: Forward the order; Hold the order back. |
InpBiasUrl | (empty) | Site bias file (empty = server address + /feed/data/bias.json) |
InpBiasRefreshSec | 30 | Fetch the site readings every N seconds (the site updates them every 60 s) |
InpBiasMaxAgeSec | 300 | A site reading older than N seconds counts as unavailable |
GDI Bot permission
| Input | Factory value | What it does |
|---|---|---|
InpPermFilter | false | Follow the GDI Bot permission (both sides, buy only, sell only or pause) while it is valid |
InpPermUrl | (empty) | Permission file (empty = server address + /feed/data/copy-permission.json) |
News block
| Input | Factory value | What it does |
|---|---|---|
InpNewsBlock | true | Do not forward new orders around high-importance news for the symbol's currencies |
InpNewsSource | This terminal's own calculation | Where the news window comes from (the site's news_window is for gold). Choices: This terminal's own calculation; The GDI site's reading of gold; Both must allow. |
Duplicate filter (identical orders opened close together)
| Input | Factory value | What it does |
|---|---|---|
InpDedupEnabled | false | Hold back an order identical to one forwarded a moment ago |
InpDedupWindowSec | 60 | Seconds between the two openings |
InpDedupSameDirectionOnly | true | Identical means same symbol AND same direction (off: same symbol, any direction) |
InpDedupSameLotOnly | false | Also require the same lot size |
Daily loss limit (stops forwarding new orders)
| Input | Factory value | What it does |
|---|---|---|
InpLossMode | Percent of the start-of-day balance | Limit is set as. Choices: Money (account currency); Percent of the start-of-day balance. |
InpEnableDailyLimit | true | Stop forwarding NEW orders for the rest of the server day (the source account itself is never touched) |
InpMaxDailyLoss | 2.5 | Daily loss limit: drop from today's highest point (percent or money, as chosen above) |
InpNotifyRiskEmail | true | E-mail when the limit is hit and at the next day's reset (Tools > Options > Email) |
Master Receiver: manual
Operating mode
- Alert only (factory value): announces what the source does and copies nothing.
- Automatic copy: opens, adjusts, partly closes and closes the copies under your settings.
How it decides
- First the size: fixed lot, the source's lot times a multiplier, or proportional to the balances when both accounts use the same currency. A cent source can be read as it is or converted to real money.
- Then the filters you switched on. A copy that a filter holds back is retried while the trade stays open at the source and the filter allows it; the reason is shown on the chart panel.
- Open copies are managed even while new ones are being held back: closings, partial closings and stop changes are always followed.
Filters that consult the GDI system
| Filter | Switch | What it asks |
|---|---|---|
| Copy Permission | InpSafetyPermissionFilter | The GDI Bot permission: both sides, buy only, sell only or pause. With no valid permission nothing new is copied. |
| Trend | InpSafetyBiasAgreement | The bias on M15, H1 and H4, from this terminal or from the GDI site (InpSafetyBiasSource). |
| News | InpSafetyNewsPause | The high-importance news window, from this terminal's calendar or from the site. |
| Market hours | InpSafetyMarketHoursPause | Whether the gold market is open. |
Filters computed in your terminal
| Filter | Switch | What it does |
|---|---|---|
| Volatility | InpFiltVolatility | Waits while the market moves much faster than usual. |
| Anomaly | InpFiltAnomaly | Waits after a gap, a fast run, a very wide spread or broken candle data. |
| Exhaustion guard | InpFiltExhaustion | Holds back a buy that is already overbought and a sell that is already oversold. |
| No hedge | InpSafetyHedgeBlock | Refuses a copy that opposes a copy already open. |
| Spread, slippage and late entry | InpUseSpreadRatio, InpUseDeviationAtr, InpUseMaxOpenDelay | Do not copy at a bad price or long after the source opened. |
GDI Signal style protections
| Protection | Switch | What it does |
|---|---|---|
| Direction | InpCopyDirection | Copy buys, sells or both. |
| Stop loss required | InpRequireStop | Copy only orders that have a stop loss at the source. |
| Risk at the stop | InpUseRiskAtStop | Reduces the lot so that the loss at the source's stop stays within your percentage. |
| Total volume | InpUseTotalLots | Caps the volume of all copies open together. |
| Drawdown sizing | InpUseDrawdownSizing | Smaller new copies the deeper the account is below the reference balance. |
| Day stop | InpUseDayStop | Closes the copies and waits for the next day. |
| Total stop | InpUseTotalStop | Closes the copies and stops until you restart it. |
Percentages are measured on this account against the reference balance. Stops are checked by the robot, so a fast market or a gap can take the loss past the level you set.
Inputs of the Master Receiver
Every input is yours to change. Inputs marked 'used only when the switch above is on' do nothing while that switch is off.
Operating mode
| Input | Factory value | What it does |
|---|---|---|
InpOperatingMode | 1 Alert only (announces the source's trades, copies nothing) | Operating mode. Choices: 1 Alert only (announces the source's trades, copies nothing); 2 Automatic copy - standard (copies under your filters). |
GDI Key
| Input | Factory value | What it does |
|---|---|---|
InpGdiKey | (your key) | GDI Key |
Channel (the same computer as the Master Sender)
| Input | Factory value | What it does |
|---|---|---|
InpChannel | GDI_MASTER | Channel name (must match the sender's channel name) |
InpStaleSec | 15 | Treat the sender as offline after N seconds without a write |
InpPollMs | 250 | Read the channel every N milliseconds |
InpCloseAllAfterMin | 0 | Close every copied order after this many minutes without the sender (0 = never) |
Lot size
| Input | Factory value | What it does |
|---|---|---|
InpLotMode | Same size as the source x multiplier | How to size each copied order. Choices: Fixed lot; Same size as the source x multiplier; Proportional to the balance x multiplier (only when both accounts have the same currency). |
InpFixedLot | 0.01 | Fixed lot (used by "Fixed lot") |
InpLotMultiplier | 1.0 | Multiplier (used by the other two modes) |
InpUseMaxLot | true | Lot limit filter: limit the lot size of each copied order |
InpMaxLot | 1.0 | Largest lot allowed per order (used only when the switch above is on) |
InpCentMode | Cent source read as REAL (0.01 lot = 0.01 lot, 2003 USC = 2003 USD) | If the source is a cent account: read it as real or as cent. Choices: Cent source read as REAL (0.01 lot = 0.01 lot, 2003 USC = 2003 USD); Cent source converted to real money (0.01 lot .sc = 0.0001 lot, 2003 USC = 20.03 USD). |
Filters 1: limits on new copies (true = on; each one is your choice)
| Input | Factory value | What it does |
|---|---|---|
InpUseMaxOpenPositions | true | Open positions filter: limit how many positions this copier keeps open |
InpMaxOpenPositions | 10 | Most positions open at the same time (used only when the switch above is on) |
InpUseSpreadRatio | true | Spread filter: wait while the spread is abnormally wide (relative to its usual size) |
InpMaxSpreadRatio | 4.0 | Wait while the spread is wider than this many times its usual size (used only when the switch above is on) |
InpUseDeviationAtr | true | Slippage filter: skip a copy when the price already moved away from the source's entry (in candle ranges) |
InpMaxDeviationAtr | 0.5 | Skip if the price is worse than the source's entry by more than this many average candle ranges (used only when the switch above is on) |
InpUseSpreadPoints | false | Wait while the spread is above a fixed number of points |
InpMaxSpreadPoints | 50 | Wait while the spread is above this many points (used only when the switch above is on) |
InpUseDeviationPoints | false | Skip a copy when the price is worse than the source's entry by a fixed number of points |
InpMaxDeviationPoints | 50 | Skip if the price is worse than the source's entry by more than this many points (used only when the switch above is on) |
InpUseMaxOpenDelay | true | Late filter: ignore a trade that opened a long time ago (do not copy late) |
InpMaxOpenDelaySec | 120 | Do not copy a trade that opened more than this many seconds ago (used only when the switch above is on) |
InpSlippagePoints | 0 | Fixed slippage allowed on copied orders, in points (0 = automatic by symbol) |
InpCopySLTP | true | Copy the source's stop loss and take profit |
InpCopyExistingOnStart | false | Also copy trades that are already open when the EA starts |
Filters 1: time window (true = on)
| Input | Factory value | What it does |
|---|---|---|
InpSessionFilter | false | Time window filter: only open copies inside a time window (broker time) |
InpSessionStartHour | 1 | Window starts at (hour, 0 to 23) |
InpSessionEndHour | 23 | Window ends at (hour, 0 to 23) |
Order identification
| Input | Factory value | What it does |
|---|---|---|
InpMagic | 990504 | Magic number of the copied orders |
InpOrderComment | golddailyinsights.com | Comment written on the copied orders |
Copy Permission and filters (true = on; new copies only: an open position is never closed by these)
| Input | Factory value | What it does |
|---|---|---|
InpSafetyMergeEnabled | false | Merge same-direction orders opened close together into one copy |
InpMergeOrdersWithinSeconds | 60 | Merge same-direction orders opened within this many seconds into one copy (0 = off) |
InpMergeCloseMode | Close when the LAST order of the group closes | When to close a merged copy. Choices: Close when the LAST order of the group closes; Close when the FIRST order closes. |
InpSafetyBiasAgreement | false | Trend filter: only copy when the indicator bias (M15, H1, H4) does not disagree with the order's direction |
InpSafetyBiasSource | This terminal's own calculation | Where the bias comes from. Choices: This terminal's own calculation; The GDI site's reading of gold; Both must allow. |
InpSafetyBiasMinScore | 12 | |score| from which a timeframe counts as having a direction (12 = "mild") |
InpSafetyHedgeBlock | true | No-hedge filter: refuse a new copy that opposes a copy already open on the same symbol |
InpSafetyPermissionFilter | false | Copy Permission: follow the GDI Bot permission (both sides, buy only, sell only or pause); with no valid permission nothing new is copied |
InpSafetyNewsPause | false | News filter: pause new copies around high-importance news for the symbol's currencies |
InpSafetyNewsSource | This terminal's own calculation | Where the news window comes from. Choices: This terminal's own calculation; The GDI site's reading of gold; Both must allow. |
InpSafetyMarketHoursPause | false | Market hours filter: pause new copies while the symbol's market is closed |
InpSafetyMarketSource | This terminal's own calculation | Where the market-open flag comes from. Choices: This terminal's own calculation; The GDI site's reading of gold; Both must allow. |
InpSafetySiteUrl | (empty) | Site reading of the bias, news window and market flag (empty = server address + /feed/data/bias.json) |
InpSafetyPermissionUrl | (empty) | GDI Bot permission file (empty = server address + /feed/data/copy-permission.json) |
InpSafetySiteRefreshSec | 30 | Fetch the site readings every N seconds |
InpSafetySiteMaxAgeSec | 300 | A site reading older than N seconds counts as unavailable (that check is skipped) |
InpSafetyLossLimitEnabled | false | Loss filter: stop new copies after a daily or total loss (this copier's own positions) |
InpSafetyMaxDailyLossPct | 0.0 | Daily loss limit, percent of today's highest point (0 = not set) |
InpSafetyMaxTotalLossPct | 0.0 | Total loss limit, percent of the highest point since the EA started (0 = not set) |
Filters 2: volatility and anomaly (true = on; each one is your choice)
| Input | Factory value | What it does |
|---|---|---|
InpFiltVolatility | false | Volatility filter: wait while the market moves much faster than usual |
InpVolMaxRatio | 2.5 | Volatility is "too fast" when the last M5 candle range is above this many times the average of the 100 before it |
InpFiltAnomaly | false | Anomaly filter: wait after a gap, a fast run, a very wide spread or broken candle data |
InpAnomGapAtr | 1.0 | Gap: the current M5 candle opened more than this many M5 ATRs away from the previous close |
InpAnomRunAtr | 4.0 | Run: the last 6 M5 candles moved more than this many M5 ATRs net |
InpAnomSpreadAtr | 0.25 | Spread: the spread is above this share of the M15 ATR |
Filters 3: Exhaustion guard (true = on; blocks entries when the price is about to turn)
| Input | Factory value | What it does |
|---|---|---|
InpFiltExhaustion | false | Exhaustion guard: block a BUY already overbought and a SELL already oversold |
InpExhMinSigns | 3 | Block when at least this many of the 6 signs below agree (1 to 6) |
InpExhRsiHigh | 70.0 | Sign 1 and 2: RSI(14) on M15 and on H1 at or above this = overbought (a SELL is checked at 100 minus this) |
InpExhAtrDist | 2.0 | Sign 3: the H1 price is this many H1 ATRs above (BUY) or below (SELL) its 20-period average |
InpExhDayRangePct | 90.0 | Sign 4: the price is in the top (BUY) or bottom (SELL) part of today's range, in percent (90 = top 10 percent) |
InpExhWeekRangePct | 90.0 | Sign 5: the same for this week's range |
InpExhBiasScore | 60.0 | Sign 6: the bias score (-100 to +100) of H1 and H4 together is this far on the side of the trade |
Loss limit protection (this copier's trades only)
| Input | Factory value | What it does |
|---|---|---|
InpLossMode | Percent of start-of-day balance | Loss limits are set as. Choices: Cash amount (account currency); Percent of start-of-day balance. |
InpEnableDailyLimit | false | Daily loss limit: close the copies and stop copying until tomorrow |
InpMaxDailyLoss | 5.0 | Max daily loss (drop from today's peak; cash or %) |
InpEnableSessionLimit | false | Session loss limit: close the copies when their open loss reaches |
InpMaxSessionLoss | 2.0 | Max open (floating) loss (cash or %) |
Trailing lock and profit target (this copier's trades only)
| Input | Factory value | What it does |
|---|---|---|
InpTrailingMode | Percent of start-of-day balance | Levels are set as. Choices: Cash (account currency); Percent of start-of-day balance; Points x open volume. |
InpEnableTrailing | false | Profit trailing lock on the copies' open profit |
InpTrailingStart | 1.0 | Trailing lock starts when the open profit reaches |
InpTrailingLock | 0.5 | Profit it secures once started (must be below the start level) |
InpEnableHardTarget | false | Hard profit target |
InpTargetProfit | 2.0 | Close every copy when the open profit reaches |
GDI Signal style protections (as in the 1K / 10K / 100K versions; true = on, each one is your choice)
| Input | Factory value | What it does |
|---|---|---|
InpCopyDirection | Buys and sells | Directions to copy. Choices: Buys and sells; Buys only; Sells only. |
InpRequireStop | false | Stop-loss filter: copy only orders that have a stop loss at the source |
InpRefBalance | 0.0 | Reference balance for the protections below (0 = the balance when the copier first starts) |
InpUseRiskAtStop | false | Risk filter: reduce the lot so the loss at the source's stop stays within the percent below |
InpRiskAtStopPct | 1.0 | Most to lose at the stop loss, percent of the reference balance |
InpUseTotalLots | false | Volume filter: limit the volume of all copies open together |
InpMaxTotalLots | 0.20 | Largest total open volume, lots |
InpUseDrawdownSizing | false | Drawdown sizing: smaller new copies the deeper the account is below the reference balance |
InpDrawdownFullPct | 8.0 | Drawdown at which the size reduction is strongest, percent |
InpUseDayStop | false | Day stop: close the copies and wait for the next day (00:00 Central European time) |
InpDayStopPct | 4.0 | Day stop: equity down this percent of the reference balance since 00:00 |
InpUseTotalStop | false | Total stop: close the copies and stop completely |
InpTotalStopPct | 8.0 | Total stop: equity down this percent from the reference balance |
InpTotalStopRestart | 0 | After a total stop: change this number to start again |
Frequently asked questions
- Are the two robots separate products?
- No. They are one copier in two halves: the Master Sender runs on the account you copy from, the Master Receiver on the account you copy to.
- Do they need the internet to copy?
- The positions travel through a file on the same computer or Windows server. The internet is used for the licence check and, only if you switch them on, for the GDI readings behind some filters.
- Can I switch every filter off?
- Yes. Each filter and protection has its own true or false switch. With all of them off the receiver copies every gold trade the sender publishes, within your lot settings.
- Does it copy other markets?
- No. It copies gold (XAUUSD) only; any other trade on the source account is ignored.
- Do the filters guarantee better results?
- No. A filter only decides whether a new copy is opened and how large it is. It can also keep out a trade that would have made money.
- Can one sender feed several receivers?
- Yes. Several receivers on the same computer can read the same channel, each with its own lot settings and filters.
- What happens if the sender stops?
- The receiver reports that the sender is offline and leaves the copies as they are, unless you set a number of minutes after which it closes them.
- Do I need a GDI Key?
- Yes. The files are free to download, and each robot checks a GDI Key when it starts and then every hour.
Trading carries risk. An EA can lose money, and nothing here is advice. Risk disclosure
Next steps
GDI Key and plans Getting started Ask a question All GDI EAs
GDI Signal online (web version): follow the signal from any browser or phone, with e-mail alerts straight from the server and no VPS or computer left switched on. Automatic copying into your own account still needs MetaTrader 5 running with the GDI Signal Copier EA. Open GDI Signal online