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

İş Gereklilikleri

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
(266)
Projeler
540
50%
Arabuluculuk
55
40% / 36%
Süresi dolmuş
224
41%
Serbest
3
Geliştirici 3
Derecelendirme
(473)
Projeler
1138
44%
Arabuluculuk
51
31% / 33%
Süresi dolmuş
500
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
(467)
Projeler
701
56%
Arabuluculuk
44
30% / 32%
Süresi dolmuş
114
16%
Çalışıyor
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
Benzer siparişler
I am seeking a coder who has experience in converting an MT4 indicator & EA(.mq4 file, source code provided) to TradingView's Pine Script. The indicator should be identical to the original, with the same inputs and settings. Upon completion of the task, the coder will send me the Pine Script indicator & EA along with the full source code, and the project will remain confidential. This task should be straightforward

Proje bilgisi

Bütçe