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
評価
(150)
プロジェクト
210
21%
仲裁
13
62% / 23%
期限切れ
1
0%
取り込み中
3
開発者 3
評価
(37)
プロジェクト
59
27%
仲裁
24
21% / 54%
期限切れ
10
17%
仕事中
4
開発者 4
評価
(16)
プロジェクト
20
40%
仲裁
0
期限切れ
0
仕事中
5
開発者 5
評価
(36)
プロジェクト
45
2%
仲裁
6
33% / 17%
期限切れ
1
2%
6
開発者 6
評価
(22)
プロジェクト
27
11%
仲裁
6
17% / 17%
期限切れ
4
15%
取り込み中
7
開発者 7
評価
(36)
プロジェクト
40
30%
仲裁
4
0% / 25%
期限切れ
0
仕事中

プロジェクト情報

予算
30 - 40 USD
開発者用
27 - 36 USD
締め切り
最高 1 日