Mejorar un EA de MQL5 con 3 poisiciones que permita tomar utilidades parciales a distintos niveles

Specification

Tengo un EA que a una hora determinada toma 3 posiciones, establezco un nivel de stop loss y 3 niveles diferentes de take profit, estoy operando el futuro ES, mi problema es que al momento de llegar al primer take profit salen todas las posiciones. Si te interesa lee el código adjunto y contáctame.

Files:

Responded

1
Developer 1
Rating
(582)
Projects
674
32%
Arbitration
42
45% / 45%
Overdue
12
2%
Busy
2
Developer 2
Rating
(16)
Projects
23
26%
Arbitration
1
0% / 0%
Overdue
2
9%
Free
3
Developer 3
Rating
(62)
Projects
92
16%
Arbitration
4
0% / 25%
Overdue
2
2%
Free
4
Developer 4
Rating
(144)
Projects
186
41%
Arbitration
24
58% / 21%
Overdue
13
7%
Free
5
Developer 5
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
30+ USD
Deadline
to 3 day(s)