Maria Copier
Maria Copier copies trades from one MetaTrader 4 account to other MetaTrader 4 accounts that run on the same computer or VPS. Attach it to one chart in the MASTER terminal and to one chart in every SLAVE terminal, use the same channel name, and the slaves follow the master within a fraction of a second. One EA does both jobs: you choose MASTER or SLAVE in the inputs. The master writes its open orders to a small file in the shared Common\Files folder several times per second. Each slave reads that file and opens, modifies and closes its own copies. No internet connection, no server and no DLL are needed. COPYING - Market orders: open, close and partial close (the slave closes the same share of its copy). - SL/TP: copied on open and every time the master changes them. PRICE mode (same prices) or DISTANCE mode (same distance from the open price, for brokers with different quotes). - Pending orders (optional): placed, moved and deleted like on the master. If the master's pending order fills first, the slave replaces its pending copy with a market order. - Reverse copy: BUY becomes SELL and SL/TP swap. - Orders that were already open when the slave started are skipped, unless you enable "copy existing". - A copy that you close by hand on the slave is never reopened. LOT SIZE - Lot modes: SAME, MULTIPLIER, FIXED, BALANCE ratio and EQUITY ratio (slave / master balance or equity x multiplier). - Max lot per copy, raise small lots to the broker minimum or skip them, and automatic adjustment when contract sizes differ (for example gold 100 oz vs 10 oz). - Lots are always rounded to the broker's minimum, maximum and lot step. SYMBOLS - Strip a master suffix, add a slave prefix or suffix. - Automatic suffix detection (EURUSD -> EURUSDm, EURUSD.pro). - Symbol map list, for example XAUUSD=GOLD,US30=DJ30. - Slave filters: copy only some symbols, skip some symbols, copy only some master magic numbers. - Master filters: publish only some symbols or only one magic number. SAFETY - The master publishes only after its account and order list are fully loaded, so a terminal restart never closes your copies. - A copy is closed only when two separate master snapshots agree that the master order is gone. - Master offline (no heartbeat): the slave freezes (no new copies, no closes) and alerts you. Optional: close all copies after a set number of minutes offline. - A change of the master account or a second master on the same channel is detected: the slave freezes instead of guessing. - Max price deviation and max order age: a late copy never opens far from the master price. - Equity guard (optional): closes all copies and pauses when equity falls a set % below its peak. - Max open copies, max slippage and its own magic number. Every order is checked for volume, free margin, stop level and freeze level before it is sent. - One master and one slave per channel per terminal: a second chart shows a warning and stays idle. DASHBOARD Mode, channel, live status (ONLINE, MASTER OFFLINE, PAUSED...), master account balance and equity, number of copies, floating P/L, the last actions, and the PAUSE / RESUME, SYNC NOW and CLOSE ALL COPIES (two clicks) buttons. HOW TO USE 1. Run the master and slave terminals on the same PC or VPS and turn on AutoTrading in the slave terminal. 2. Master terminal: attach Maria Copier to any chart, Mode = MASTER, Channel = main. 3. Slave terminal: attach Maria Copier to any chart, Mode = SLAVE, Channel = main, and choose the lot mode. 4. The slave status turns ONLINE. New master trades are copied from now on. For several masters, give each master / slave group its own channel name. MAIN INPUTS - Mode, Channel, Timer, Magic number - Master: symbols to publish, magic filter - Slave: offline seconds, copy existing, copy pending, copy SL/TP, SL/TP mode, reverse, slippage, max price deviation, max order age - Lots: lot mode, multiplier, fixed lot, max lot, raise to min lot, adjust contract size, max copies - Symbols: master suffix, slave prefix / suffix, auto suffix, symbol map, symbol and magic filters - Protection: equity guard %, close copies when the master is offline (minutes) - Alerts: pop-up, push notification NOTES - The master and slave terminals must run on the same computer or VPS (they share the Common\Files folder). Copying between different computers is not supported. - Works with any broker and account type, also with different brokers on the master and the slave. - The Strategy Tester has no master, so there Maria Copier simulates a small master order with SL/TP and copies it to show how it works. - Maria Copier copies trades; it does not open trades of its own on live accounts. Trading involves risk. User guide (PDF) is inside the download. Website: https://polymaria.net Telegram channel: https://t.me/polymaria_net
Expert advisor · MT4 · v1.05 · 90.00 USDT
A local MT4 trade copier: one master account, many slave accounts on one PC or VPS
How Maria Copier works
What Maria Copier does
Maria Copier is an MT4 trade copier. It copies trades from one MetaTrader 4 account, the master, to one or more MetaTrader 4 accounts, the slaves, that run on the same computer or VPS. One expert advisor does both jobs: you choose MASTER or SLAVE in the inputs. The master writes its open orders to a small file in the shared Common Files folder several times per second, and each slave reads that file and opens, changes and closes its own copies. No internet connection, no server and no DLL are needed.
Setup in five steps
Open the master terminal and every slave terminal on the same PC or VPS and log in to each account. In the master terminal, attach Maria Copier to any chart with Mode = MASTER and Channel = main. In each slave terminal, attach it with Mode = SLAVE, the same channel name and a lot mode, for example MULTIPLIER 1.0. Turn AutoTrading on in every slave terminal. The slave status turns ONLINE, and new master trades are copied within about a second. The guide suggests testing the setup on two demo accounts first.
What is copied
Market orders are copied on open and close, and a partial close on the master closes the same share of the copy. Stop loss and take profit are copied on open and every time the master changes them, either at the same prices (PRICE mode) or at the same distance from the open price (DISTANCE mode). Pending orders can be copied as pending orders if you switch that on. Reverse copy turns a BUY into a SELL and swaps SL and TP. A copy you close by hand on the slave is never opened again.
Lot size and symbol settings
Five lot modes are available: SAME, MULTIPLIER, FIXED, BALANCE ratio and EQUITY ratio. Every lot is rounded to the slave broker minimum, maximum and lot step, and you can set a maximum lot per copy and a maximum number of open copies. When two brokers use different contract sizes, for example gold at 100 oz and 10 oz, the lot can be scaled to the same real size. Symbol names are matched with a master suffix strip, a slave prefix or suffix, automatic suffix detection and a symbol map such as XAUUSD=GOLD.
Safety rules
The master publishes only after its account and order list are loaded, so a terminal restart does not close your copies. A copy is closed only when two separate master snapshots agree that the master order is gone. If the master heartbeat stops, the slave shows MASTER OFFLINE and freezes: no new copies and no closes. An optional equity guard closes all copies and pauses when equity falls a set percentage below its peak. Max price deviation and max order age stop late copies far from the master price.
Who it is for and its limits
Maria Copier suits traders who run several MT4 accounts on one Windows PC or VPS and want them to follow one account, also across different brokers and account currencies. It does not copy between two different computers, because master and slaves share one local folder. It does not judge whether the master trades are good: losses are copied too, and slippage, spreads, commissions and lot rounding mean the slave result is never exactly the same as the master result.
Questions
Can Maria Copier copy trades between two different computers?
No. The master and slave terminals must run on the same computer or VPS, because they share the Common Files folder of that Windows user. If your accounts run on different machines, move the terminals to one PC or VPS first. Within one machine you can run one master and any number of slaves.
Does it work with different brokers on the master and the slave?
Yes. It works with any broker and account type. Different symbol names are handled by the symbol map, automatic suffix detection and prefix or suffix settings. DISTANCE mode copies SL and TP as distances when the brokers quote slightly different prices, and contract size adjustment keeps gold or index copies at the same real size.
Are trades that were already open on the master copied when I start the slave?
Not by default. Orders that were already open on the master when the slave started are skipped as a safe default. If you want them copied too, turn on the Copy existing orders input on the slave. New trades opened on the master after the slave is ONLINE are always copied.
What happens if the master terminal closes or loses connection?
When the master heartbeat is older than the offline limit, 10 seconds by default, the slave shows MASTER OFFLINE and freezes its copies: nothing new is opened and nothing is closed. You can get a pop-up or phone push alert. Optionally, all copies can be closed once after a set number of minutes offline.
Will the slave account get the same results as the master?
No, never exactly. Maria Copier copies the master trades, including the losing ones, and does not judge them. Slippage, different prices, spreads, commissions and lot rounding change the slave result. Trading leveraged products carries a high risk of loss, so test on demo accounts first and use lot sizes you can afford.
About Maria Copier
Maria Copier is an expert advisor (trading robot) for MetaTrader 4.
Trading robots can lose money. Check every setting and test on a demo account before using real funds.
How to install
- Download the ZIP from your PolyMaria library and unzip it.
- In MetaTrader 4 open File → Open Data Folder, then go to MQL4 → Experts.
- Copy the .mq4 / .ex4 file(s) there. Put any .mqh files in MQL4 → Include.
- Restart MetaTrader or right-click the Navigator and choose Refresh.
- Drag the expert advisor from the Navigator onto a chart, check the settings, allow Algo/Auto Trading and press OK.
- Test it first on a demo account or in the Strategy Tester.
Tags: Expert Advisor · Maria · Mt4 · Gold (XAUUSD) · Channels & Envelopes · Trade Copier · EURUSD · Indices (US30, NAS100, DAX) · MT4 Expert Advisor