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
(418)
Projects
473
34%
Arbitration
25
40% / 44%
Overdue
6
1%
Loaded
2
Developer 2
Rating
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(50)
Projects
72
19%
Arbitration
3
0% / 0%
Overdue
1
1%
Free
4
Developer 4
Rating
(117)
Projects
151
42%
Arbitration
19
58% / 21%
Overdue
7
5%
Working
5
Developer 5
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
30+ USD
For the developer
27 USD
Deadline
to 3 day(s)