Modify to an Existing EA

MQL4 Entegrasyon

İş tamamlandı

Tamamlanma süresi: 1 gün
Müşteri tarafından geri bildirim
Nice to work with, and got the time to understand it. Great.
Geliştirici tarafından geri bildirim
thank you

Şartname

I need a coder to make this rule for me, so I can integrate it in my EA.

The strategy  is to count from last Orders open price,

if price goes up X-pips, it opens a BUY (POS1), then  if price goes down X-pips,  it opens a SELL (POS2).

So far so good.


But then if the price goes up again X-Pips, it would open again at the same price as the existing opened BUY, but we want it to go further up from here the X-Pips before it  is allowed to open a BUY (POS3).
If the existing Opened BUY is more than 2 positions away, it is allowed to open the BUY at the same price.

 

//=========== Code

  int tick=GetLastPositionTicket();   

  if(OrderSelect(tick,SELECT_BY_TICKET) && GVGet("Stopped")==0 && GVGet("Start")==1)

    {

      if((OrderOpenPrice()-Bid)/(Point*P)>Distance_Down)sell=true;     

      if((Ask-OrderOpenPrice())/(Point*P)>Distance_Up)buy=true;

    }

 

//==============   

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(41)
Projeler
160
45%
Arabuluculuk
16
13% / 50%
Süresi dolmuş
48
30%
Serbest
2
Geliştirici 2
Derecelendirme
(271)
Projeler
553
50%
Arabuluculuk
57
40% / 37%
Süresi dolmuş
227
41%
Çalışıyor
3
Geliştirici 3
Derecelendirme
(473)
Projeler
1139
44%
Arabuluculuk
51
31% / 33%
Süresi dolmuş
501
44%
Serbest
4
Geliştirici 4
Derecelendirme
(12)
Projeler
17
35%
Arabuluculuk
1
0% / 100%
Süresi dolmuş
3
18%
Serbest
5
Geliştirici 5
Derecelendirme
(499)
Projeler
744
56%
Arabuluculuk
48
31% / 31%
Süresi dolmuş
120
16%
Serbest
Yayınlandı: 1 kod
6
Geliştirici 6
Derecelendirme
(47)
Projeler
140
49%
Arabuluculuk
9
56% / 0%
Süresi dolmuş
27
19%
Serbest
7
Geliştirici 7
Derecelendirme
(49)
Projeler
134
27%
Arabuluculuk
62
13% / 53%
Süresi dolmuş
58
43%
Serbest
Yayınlandı: 331 makale, 1 kod

Proje bilgisi

Bütçe