When pending order triggered, open another pending order

MQL5 Consulenza

Lavoro terminato

Tempo di esecuzione 4 ore
Feedback del cliente
It was really fast. He made better as i expected.
Feedback del dipendente
Good customer, nice working with him. No stress and good communication. Thanks for the job

Specifiche

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 !

Con risposta

1
Sviluppatore 1
Valutazioni
(10)
Progetti
25
28%
Arbitraggio
1
0% / 0%
In ritardo
1
4%
In elaborazione
2
Sviluppatore 2
Valutazioni
(148)
Progetti
208
22%
Arbitraggio
13
62% / 23%
In ritardo
1
0%
Caricato
3
Sviluppatore 3
Valutazioni
(37)
Progetti
59
27%
Arbitraggio
24
21% / 54%
In ritardo
10
17%
In elaborazione
4
Sviluppatore 4
Valutazioni
(16)
Progetti
20
40%
Arbitraggio
0
In ritardo
0
Caricato
5
Sviluppatore 5
Valutazioni
(36)
Progetti
45
2%
Arbitraggio
6
33% / 17%
In ritardo
1
2%
Gratuito
6
Sviluppatore 6
Valutazioni
(22)
Progetti
26
8%
Arbitraggio
6
17% / 17%
In ritardo
3
12%
Occupato
7
Sviluppatore 7
Valutazioni
(36)
Progetti
40
30%
Arbitraggio
4
0% / 25%
In ritardo
0
In elaborazione

Informazioni sul progetto

Budget
30 - 40 USD
Per lo sviluppatore
27 - 36 USD
Scadenze
a 1 giorno(i)