When pending order triggered, open another pending order

MQL5 컨설팅

작업 종료됨

실행 시간 4 시간
고객의 피드백
It was really fast. He made better as i expected.
피고용인의 피드백
Good customer, nice working with him. No stress and good communication. Thanks for the job

명시

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 !

응답함

1
개발자 1
등급
(16)
프로젝트
35
23%
중재
4
0% / 50%
기한 초과
2
6%
작업중
2
개발자 2
등급
(274)
프로젝트
403
28%
중재
40
40% / 50%
기한 초과
1
0%
무료
3
개발자 3
등급
(37)
프로젝트
59
27%
중재
26
19% / 54%
기한 초과
10
17%
작업중
게재됨: 1 코드
4
개발자 4
등급
(47)
프로젝트
67
37%
중재
5
40% / 40%
기한 초과
1
1%
무료
5
개발자 5
등급
(36)
프로젝트
45
2%
중재
6
33% / 17%
기한 초과
1
2%
무료
6
개발자 6
등급
(62)
프로젝트
90
29%
중재
24
13% / 58%
기한 초과
7
8%
작업중
7
개발자 7
등급
(43)
프로젝트
49
29%
중재
4
25% / 25%
기한 초과
0
무료

프로젝트 정보

예산
30 - 40 USD
기한
로 1 일