Common Folder Copier
- 实用工具
-
Augusto Martin D'anna
你好,欢迎访问我的个人资料。我是 Augusto Danna,拥有7年经验的交易员。我擅长结合市场经验与编程技能来实现交易策略的自动化。如有任何疑问,欢迎随时联系我!
自动交易系统: 开发 MT4 和 MT5 的智能交易系统 (Expert Advisors)。
自定义指标: 开发和修改技术指标。
高级风险管理: 实施移动止损 (Trailing Stop)、保本 (Breakeven) 和动态手数计算。
策略转换: 将 TradingView (Pine Script) 策略转换为 MQL4/MQL5。
策略优化: 策略回测与参数调整。 - 版本: 1.0
Common Folder Copier copies trades between MetaTrader 5 terminals running on the same computer or VPS. It is one EA with two modes: Master on the source account and Slave on each receiving account. They talk through a small file in the terminals' shared Common\Files folder, so no internet service, DLL or account password is needed.
What it does
- Master: writes the open positions of its account several times per second.
- Slave: opens the positions that are missing, keeps SL, TP and volume in sync (partial closes included) and closes the copies when the master position is closed.
- Lot size: master lot times a multiplier, or a fixed lot.
- Symbol mapping: prefix and suffix for brokers with different symbol names (for example EURUSD on the master and EURUSD.m on the slave).
- Reverse mode (optional): the slave opens the opposite direction.
- Channels: several masters and slaves can run side by side using different channel names.
- Safety: if the master file is older than a set number of seconds, the slave waits and does not trade on stale data.
Inputs
- Mode (Master or Slave)
- Channel name (the same in master and slaves)
- Update interval, ms
- Master: copy only this magic number (-1 = all)
- Slave: lot mode (multiplier or fixed lot) and its value
- Slave: symbol prefix and suffix on this broker
- Slave: copy in the opposite direction
- Slave: copy SL and TP
- Slave: magic number of the copies
- Slave: ignore the master file if older than this, seconds
Notes
- All terminals must run on the same computer or VPS under the same Windows user, because they share the Common\Files folder.
- Slave accounts should be hedging accounts; on netting accounts opposite positions on one symbol net out.
- Copies are opened at market, so the fill price can differ slightly from the master.
- Allow algo trading in the slave terminals.
