When pending order triggered, open another pending order

MQL5 Danışmanlık

İş tamamlandı

Tamamlanma süresi: 4 saat
Müşteri tarafından geri bildirim
It was really fast. He made better as i expected.
Geliştirici tarafından geri bildirim
Good customer, nice working with him. No stress and good communication. Thanks for the job

İş Gereklilikleri

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 !

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(10)
Projeler
25
28%
Arabuluculuk
1
0% / 0%
Süresi dolmuş
1
4%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(147)
Projeler
207
21%
Arabuluculuk
13
62% / 23%
Süresi dolmuş
1
0%
Meşgul
3
Geliştirici 3
Derecelendirme
(37)
Projeler
59
27%
Arabuluculuk
24
21% / 54%
Süresi dolmuş
10
17%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(16)
Projeler
20
40%
Arabuluculuk
0
Süresi dolmuş
0
Yüklendi
5
Geliştirici 5
Derecelendirme
(36)
Projeler
45
2%
Arabuluculuk
6
33% / 17%
Süresi dolmuş
1
2%
Serbest
6
Geliştirici 6
Derecelendirme
(22)
Projeler
26
8%
Arabuluculuk
6
17% / 17%
Süresi dolmuş
3
12%
Meşgul
7
Geliştirici 7
Derecelendirme
(36)
Projeler
40
30%
Arabuluculuk
4
0% / 25%
Süresi dolmuş
0
Çalışıyor

Proje bilgisi

Bütçe
30 - 40 USD
Geliştirici için
27 - 36 USD
Son teslim tarihi
to 1 gün