Code wanted: Close all trade on close of 1 trade ( multiple closing trades script )

MQL4 Scripts

Specification

Hi,

 

I'm working on a EA, and i need a code which i can't figure out myself.

 

I have build a EA, which opens a trade and set pending trades... so far so good.

Now i want that EA to close all open trades ( long and short )on the current pair ( EA is running on 6 pairs at the time ) as soon as 1 trade is closed.

The Pending orders will be closed automatically which i already programmed..

 

 

To me its looks like it's no rocket science... but i can't do it... so to me it is...

 

Anyone here to help?

code has to be in MT4 not Mt5 

Responded

1
Developer 1
Rating
(1156)
Projects
1462
63%
Arbitration
21
57% / 10%
Overdue
43
3%
Free
2
Developer 2
Rating
(590)
Projects
789
71%
Arbitration
9
33% / 33%
Overdue
22
3%
Free
Published: 8 codes
3
Developer 3
Rating
(361)
Projects
628
72%
Arbitration
14
43% / 7%
Overdue
28
4%
Free
Published: 9 codes
4
Developer 4
Rating
(195)
Projects
395
28%
Arbitration
155
20% / 52%
Overdue
112
28%
Free
5
Developer 5
Rating
(28)
Projects
36
17%
Arbitration
5
20% / 40%
Overdue
17
47%
Free
Published: 5 codes
6
Developer 6
Rating
(16)
Projects
17
29%
Arbitration
1
0% / 100%
Overdue
2
12%
Free
7
Developer 7
Rating
(772)
Projects
1039
44%
Arbitration
50
8% / 50%
Overdue
116
11%
Free
8
Developer 8
Rating
(2)
Projects
2
0%
Arbitration
13
8% / 92%
Overdue
1
50%
Free
9
Developer 9
Rating
(221)
Projects
410
61%
Arbitration
13
38% / 23%
Overdue
162
40%
Free
Published: 43 articles, 1 code

Project information

Budget
20 USD
Deadline
from 1 to 4 day(s)