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
2
0% / 0%
Süresi dolmuş
1
4%
Yüklendi
2
Geliştirici 2
Derecelendirme
(161)
Projeler
228
22%
Arabuluculuk
15
67% / 20%
Süresi dolmuş
1
0%
Yüklendi
3
Geliştirici 3
Derecelendirme
(37)
Projeler
59
27%
Arabuluculuk
25
20% / 52%
Süresi dolmuş
10
17%
Çalışıyor
4
Geliştirici 4
Derecelendirme
(19)
Projeler
25
44%
Arabuluculuk
0
Süresi dolmuş
0
Çalışıyor
5
Geliştirici 5
Derecelendirme
(36)
Projeler
45
2%
Arabuluculuk
6
33% / 17%
Süresi dolmuş
1
2%
Serbest
6
Geliştirici 6
Derecelendirme
(25)
Projeler
32
16%
Arabuluculuk
7
29% / 43%
Süresi dolmuş
4
13%
Çalışıyor
7
Geliştirici 7
Derecelendirme
(39)
Projeler
44
30%
Arabuluculuk
4
25% / 25%
Süresi dolmuş
0
Serbest

Proje bilgisi

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