When pending order triggered, open another pending order

MQL5 Aconselhamento

Trabalho concluído

Tempo de execução 4 horas
Comentário do cliente
It was really fast. He made better as i expected.
Comentário do desenvolvedor
Good customer, nice working with him. No stress and good communication. Thanks for the job

Termos de Referência

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 !

Respondido

1
Desenvolvedor 1
Classificação
(16)
Projetos
35
23%
Arbitragem
4
0% / 50%
Expirado
2
6%
Trabalhando
2
Desenvolvedor 2
Classificação
(274)
Projetos
403
28%
Arbitragem
40
40% / 50%
Expirado
1
0%
Livre
3
Desenvolvedor 3
Classificação
(37)
Projetos
59
27%
Arbitragem
26
19% / 54%
Expirado
10
17%
Trabalhando
Publicou: 1 código
4
Desenvolvedor 4
Classificação
(47)
Projetos
67
37%
Arbitragem
5
40% / 40%
Expirado
1
1%
Livre
5
Desenvolvedor 5
Classificação
(36)
Projetos
45
2%
Arbitragem
6
33% / 17%
Expirado
1
2%
Livre
6
Desenvolvedor 6
Classificação
(62)
Projetos
90
29%
Arbitragem
24
13% / 58%
Expirado
7
8%
Trabalhando
7
Desenvolvedor 7
Classificação
(43)
Projetos
49
29%
Arbitragem
4
25% / 25%
Expirado
0
Livre

Informações sobre o projeto

Orçamento
30 - 40 USD
Prazo
para 1 dias