Modify to an Existing EA

MQL4 Integration

Auftrag beendet

Ausführungszeit 1 Tag
Bewertung des Kunden
Nice to work with, and got the time to understand it. Great.
Bewertung des Entwicklers
thank you

Spezifikation

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;

    }

 

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

Bewerbungen

1
Entwickler 1
Bewertung
(41)
Projekte
160
45%
Schlichtung
16
13% / 50%
Frist nicht eingehalten
48
30%
Frei
2
Entwickler 2
Bewertung
(271)
Projekte
553
50%
Schlichtung
57
40% / 37%
Frist nicht eingehalten
227
41%
Arbeitet
3
Entwickler 3
Bewertung
(473)
Projekte
1139
44%
Schlichtung
51
31% / 33%
Frist nicht eingehalten
501
44%
Frei
4
Entwickler 4
Bewertung
(12)
Projekte
17
35%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
3
18%
Frei
5
Entwickler 5
Bewertung
(499)
Projekte
744
56%
Schlichtung
48
31% / 31%
Frist nicht eingehalten
120
16%
Frei
Veröffentlicht: 1 Beispiel
6
Entwickler 6
Bewertung
(47)
Projekte
140
49%
Schlichtung
9
56% / 0%
Frist nicht eingehalten
27
19%
Frei
7
Entwickler 7
Bewertung
(49)
Projekte
134
27%
Schlichtung
62
13% / 53%
Frist nicht eingehalten
58
43%
Frei
Veröffentlicht: 331 Artikel, 1 Beispiel

Projektdetails

Budget