Cerrar Posiciones Automaticamente

MQL5 Experts Consultation

Specification

Hola


Quiero hacer un programa al que le configure una perdida maxima diaria (por ejemplo 500 usd) entonces si un dia de trading comienzo a perder, cuando la perdida llegue a 500 usd que se cierren todas las ordenes abiertas y las pendientes también y que la plataforma quede bloqueda para NO poder operar hasta la siguiente sesión.

Esto no es fundamental, pero también me gustaria que tenga un trailing loss de tal forma que si llego a 500 en ganancia, la perdida máxima quede en cero y no en -500. Si llego a 1000 de ganancia, que la perdida maxima se corra a +500 etc


saludos

Responded

1
Developer 1
Rating
(393)
Projects
549
40%
Arbitration
30
57% / 3%
Overdue
57
10%
Working
Published: 11 codes
2
Developer 2
Rating
(3)
Projects
4
25%
Arbitration
0
Overdue
2
50%
Free
Published: 1 code
3
Developer 3
Rating
(2652)
Projects
3369
68%
Arbitration
77
48% / 14%
Overdue
342
10%
Free
Published: 1 code
4
Developer 4
Rating
(6)
Projects
7
14%
Arbitration
1
0% / 100%
Overdue
3
43%
Free
5
Developer 5
Rating
(2316)
Projects
2915
63%
Arbitration
124
44% / 25%
Overdue
429
15%
Loaded
6
Developer 6
Rating
(129)
Projects
168
39%
Arbitration
10
40% / 0%
Overdue
29
17%
Loaded
7
Developer 7
Rating
(15)
Projects
33
0%
Arbitration
8
25% / 50%
Overdue
14
42%
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free

Project information

Budget
30 - 800 USD