When pending order triggered, open another pending order

MQL5 Consultation

Job finished

Execution time 4 hours
Feedback from customer
It was really fast. He made better as i expected.
Feedback from employee
Good customer, nice working with him. No stress and good communication. Thanks for the job

Specification

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 !

Responded

1
Developer 1
Rating
(8)
Projects
23
30%
Arbitration
1
0% / 0%
Overdue
1
4%
Working
2
Developer 2
Rating
(138)
Projects
193
21%
Arbitration
13
54% / 23%
Overdue
1
1%
Busy
3
Developer 3
Rating
(36)
Projects
59
27%
Arbitration
24
21% / 50%
Overdue
10
17%
Working
4
Developer 4
Rating
(13)
Projects
17
35%
Arbitration
0
Overdue
0
Loaded
5
Developer 5
Rating
(36)
Projects
45
2%
Arbitration
6
33% / 17%
Overdue
1
2%
Free
6
Developer 6
Rating
(17)
Projects
21
5%
Arbitration
7
14% / 14%
Overdue
3
14%
Loaded
7
Developer 7
Rating
(34)
Projects
38
26%
Arbitration
4
0% / 25%
Overdue
0
Working
Similar orders
Expert Advisor 30 - 35 USD
Hello! I'd like to get a quote from you. I want to build a simple Expert Advisor that does martingale hedging like in the attached picture, but that allows me to specify the price zone and exits in points. I would like to be able to manually open the first trade with whatever lot size I choose at market price and have the following trades/orders be opened automatically with lot sizes according to the multiplier set
Stassiey teos 50 - 500 USD
uccess is the result of hard work, dedication, and perseverance. Whether it’s achieving a personal goal or reaching a significant milestone in your professional life, success is an accomplishment that deserves to be recognized and celebrated. Sending success wishes is an excellent way to show someone that you appreciate their hard work and dedication and to encourage them to continue striving for greatness. Success

Project information

Budget
30 - 40 USD
For the developer
27 - 36 USD
Deadline
to 1 day(s)