A Trade Copier to Convert Hedge Trades to Non-Hedge Trades

MQL4 Experts Converting

Job finished

Execution time 5 days
Feedback from customer
Very professional and skilled.

Specification

I need a trade copier to copy trades from one account with hedged trades, to another account with no hedge capability. The lot sizes are ignored, and only the number of BUY or SELL trades are considered. Only EURUSD is traded.


Examples:


Master Slave

0 trades 0 trades
Open BUY 1 BUY 1 BUY
Open SELL 1 BUY, 1 SELL 0 trades
Close BUY 1 SELL 1 SELL
Close SELL 0 trades 0 trades



Open BUY 1 BUY 1 BUY
 Open SELL  1 BUY, 1 SELL  0 trades
 Open SELL  1 BUY, 2 SELL  1 SELL
Close SELL 1 BUY, 1 SELL 0 trades
 Close SELL  1 BUY  1 BUY
 Close BUY  0 trades  0 trades


From the table above, there are situations when closing a BUY in the master will result in opening a SELL in the slave. Conversely, opening a BUY could result in closing a SELL. BUY can be treated as +, and SELL as -. As long as they balance out, it is correct.

The relative lot size between the master and slave is irrelevant, since I use the same fixed lots for master and slave.


Additional settings I need:

- Filter only master trades with a specific lot size to be copied.

Responded

1
Developer 1
Rating
(390)
Projects
416
30%
Arbitration
74
19% / 72%
Overdue
52
13%
Working
2
Developer 2
Rating
(59)
Projects
90
39%
Arbitration
26
4% / 77%
Overdue
40
44%
Free
3
Developer 3
Rating
(58)
Projects
76
33%
Arbitration
9
78% / 11%
Overdue
7
9%
Free
Published: 2 codes
4
Developer 4
Rating
(361)
Projects
644
26%
Arbitration
92
72% / 14%
Overdue
12
2%
Working
Published: 1 code
5
Developer 5
Rating
(1235)
Projects
2820
80%
Arbitration
156
22% / 43%
Overdue
487
17%
Free
6
Developer 6
Rating
(8)
Projects
10
40%
Arbitration
0
Overdue
0
Free
7
Developer 7
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
8
Developer 8
Rating
(64)
Projects
144
46%
Arbitration
19
42% / 16%
Overdue
32
22%
Free

Project information

Budget
100+ USD