Tarea técnica
MT5 Trade Copier EA – With Position Skipping Logic
I looking for advanced programmer only. Who do not understand description well, please do not react.
Overview
I am currently using a standard Local Trade Copier from the MQL Market. The copier itself works very well, but it does not support skipping positions (copying only from a specific position index in a grid).
At the moment, I solve this by using an additional EA that skips positions, but this requires attaching the EA to each individual symbol chart (approx. 25 charts / 25 configurations), which is impractical.
I am looking for a new MT5 Trade Copier EA that behaves like a standard Local Trade Copier but additionally supports position skipping logic, and can be attached to one single chart only, while copying all trades from the account.
General Requirements
-
Platform: MetaTrader 5
-
EA runs on one chart only
-
Copies all trades from the account, not just the chart symbol
-
Supports Master (Transmitter) / Slave (Receiver) mode
-
Supports copying multiple accounts on the same server using an ID
-
Stable and reliable (similar behavior to well-known Local Trade Copiers)
Input Parameters / Settings
Copier Mode
-
Mode: Transmitter / Receiver
-
Copier ID:
Unique identifier to allow multiple copiers on the same VPS/server
Magic Number Handling
-
Receiver Magic Number
Magic number assigned to trades opened on the slave account
(example: master uses 11111 , receiver opens trades with 22233 ) -
Magic Numbers to Copy
Only copy trades with these magic numbers -
Magic Numbers NOT to Copy
Trades with these magic numbers must be ignored
Symbol Filters
-
Symbols to Copy
List of symbols that are allowed to be copied -
Symbols NOT to Copy
List of symbols that must be ignored
Trade State Options
-
Copy Current Trades (true / false)
If true → existing open trades on the master are copied when the EA starts
If false → only newly opened trades are copied -
Reopen Closed Copied Trades (false)
If a copied trade is closed on the slave manually, it must NOT be reopened automatically
Position Skipping Logic (Core Feature)
Parameter
-
Copy From Position Index: 1 / 2 / 3 / ...
Description
This parameter defines from which position in a grid sequence trades should be copied.
Example (grid trading on EURUSD, same direction BUY or SELL):
Master opens positions in this order:
-
0.01 lot
-
0.02 lot
-
0.05 lot
-
0.08 lot
-
...
If:
-
Copy From Position Index = 1 → copy all positions
-
Copy From Position Index = 2 → ignore the first position, copy from the second
-
Copy From Position Index = 3 → ignore first two positions, start copying from the third
The EA must:
-
Track the number of open positions per symbol and per direction (BUY / SELL) on the master
-
Open a copied trade only when the master reaches the configured position index
-
Ignore all earlier positions in that direction
Manual Close Handling
If I manually close copied trades on the slave account:
-
The EA must wait for the next new position on the master
-
If the master opens the next position in the sequence, the EA must copy it normally
(even if previous copied positions were closed manually)
Example:
-
Copy From Position Index = 3
-
Positions 1 and 2 are ignored
-
Position 3 is copied
-
I manually close the copied position on the slave
-
When the master opens position 4 → the EA copies position 4 normally
No resyncing or reopening of previously skipped or manually closed trades.
Additional Notes
-
The EA should be written cleanly and clearly, with understandable logic
-
No GUI is required (optional), just simple note that EA is loaded an running
-
Performance and stability are important
-
Behavior should be comparable to a professional Local Trade Copier
-
Take profit and stopp loss are automaticaly copied from transmitter - no need additional setup parameters (TP/SL could be modified by transmitter after new possition in grid! Slave/Receiver has to control these parameters!)