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

MQL4 스크립트

명시

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 

응답함

1
개발자 1
등급
(1156)
프로젝트
1462
63%
중재
21
57% / 10%
기한 초과
43
3%
무료
2
개발자 2
등급
(590)
프로젝트
789
71%
중재
9
33% / 33%
기한 초과
22
3%
무료
게재됨: 8 코드
3
개발자 3
등급
(361)
프로젝트
628
72%
중재
14
43% / 7%
기한 초과
28
4%
무료
게재됨: 9 코드
4
개발자 4
등급
(195)
프로젝트
395
28%
중재
155
20% / 52%
기한 초과
112
28%
무료
5
개발자 5
등급
(28)
프로젝트
36
17%
중재
5
20% / 40%
기한 초과
17
47%
무료
게재됨: 5 코드
6
개발자 6
등급
(16)
프로젝트
17
29%
중재
1
0% / 100%
기한 초과
2
12%
무료
7
개발자 7
등급
(772)
프로젝트
1039
44%
중재
50
8% / 50%
기한 초과
116
11%
무료
8
개발자 8
등급
(2)
프로젝트
2
0%
중재
13
8% / 92%
기한 초과
1
50%
무료
9
개발자 9
등급
(221)
프로젝트
410
61%
중재
13
38% / 23%
기한 초과
162
40%
무료
게재됨: 43 기고글, 1 코드

프로젝트 정보

예산
20 USD
기한
에서 1  4 일