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
Оценка
(147)
Проекты
207
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)
Проекты
26
8%
Арбитраж
6
17% / 17%
Просрочено
3
12%
Занят
7
Разработчик 7
Оценка
(36)
Проекты
40
30%
Арбитраж
4
0% / 25%
Просрочено
0
Работает

Информация о проекте

Бюджет
30 - 40 USD
Исполнителю
27 - 36 USD
Сроки выполнения
до 1 дн.