When pending order triggered, open another pending order

MQL5 Asesoramiento

Trabajo finalizado

Plazo de ejecución 4 horas
Comentario del Cliente
It was really fast. He made better as i expected.
Comentario del Ejecutor
Good customer, nice working with him. No stress and good communication. Thanks for the job

Tarea técnica

I have been developing an EA. I couldnt catch an event when pending order activated. 
I just need a code to catch it and do something when a pending order triggered.

In the initial version of the program, I'm opening an instant active position. At the same time, I'm opening a pending order at a distance of distancePips. If this pending order is triggered, I want to open a new pending order at the same type at the location of the active position. I couldn't capture the triggering of this pending order. I need someone who can send me this code.
I tried to do it in OnTrade or OnTradeTransaction but couldn't find it.

first step
- Active buy position at 1123
- Pending sell order at 1023

---- its like a loop
-> when pending sell order triggered at 1023
-> open a new pending buy order at 1123

-> when pending buy order triggered at 1123
-> open a new pending sell order at 1023
----- i have to catch the triggering of pending order to do this !

Han respondido

1
Desarrollador 1
Evaluación
(10)
Proyectos
25
28%
Arbitraje
1
0% / 0%
Caducado
1
4%
Trabaja
2
Desarrollador 2
Evaluación
(148)
Proyectos
208
22%
Arbitraje
13
62% / 23%
Caducado
1
0%
Trabajando
3
Desarrollador 3
Evaluación
(37)
Proyectos
59
27%
Arbitraje
24
21% / 54%
Caducado
10
17%
Trabaja
4
Desarrollador 4
Evaluación
(16)
Proyectos
20
40%
Arbitraje
0
Caducado
0
Trabajando
5
Desarrollador 5
Evaluación
(36)
Proyectos
45
2%
Arbitraje
6
33% / 17%
Caducado
1
2%
Libre
6
Desarrollador 6
Evaluación
(22)
Proyectos
26
8%
Arbitraje
6
17% / 17%
Caducado
3
12%
Ocupado
7
Desarrollador 7
Evaluación
(36)
Proyectos
40
30%
Arbitraje
4
0% / 25%
Caducado
0
Trabaja

Información sobre el proyecto

Presupuesto
30 - 40 USD
Para el ejecutor
27 - 36 USD
Plazo límite de ejecución
a 1 día(s)