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
等级
(10)
项目
25
28%
仲裁
1
0% / 0%
逾期
1
4%
已载入
2
开发者 2
等级
(156)
项目
219
22%
仲裁
14
64% / 21%
逾期
1
0%
繁忙
3
开发者 3
等级
(37)
项目
59
27%
仲裁
25
20% / 52%
逾期
10
17%
工作中
4
开发者 4
等级
(17)
项目
23
39%
仲裁
0
逾期
0
工作中
5
开发者 5
等级
(36)
项目
45
2%
仲裁
6
33% / 17%
逾期
1
2%
空闲
6
开发者 6
等级
(22)
项目
28
11%
仲裁
6
33% / 50%
逾期
4
14%
工作中
7
开发者 7
等级
(37)
项目
42
29%
仲裁
4
25% / 25%
逾期
0
空闲
相似订单
The basic indicator and the only indicator to be used is PRICE PERCENT RANGE and the indicator files are attached. A picture to visualize what is required is also attached. Job: Indicator : 1. Add Buy alert and Buy arrow function,if the price%R value touches or goes below value 9.5 or the user specified,after candle close. 2. Add Sell alert and Sell arrow function,if the price%R value touches or goes below value 90.5

项目信息

预算
30 - 40 USD
开发人员
27 - 36 USD
截止日期
 1 天