Modify to an Existing EA

MQL4 Intégration

Tâche terminée

Temps d'exécution 1 jour
Commentaires du client
Nice to work with, and got the time to understand it. Great.
Commentaires de l'employé
thank you

Spécifications

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;

    }

 

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

Répondu

1
Développeur 1
Évaluation
(41)
Projets
160
45%
Arbitrage
16
13% / 50%
En retard
48
30%
Gratuit
2
Développeur 2
Évaluation
(271)
Projets
553
50%
Arbitrage
57
40% / 37%
En retard
227
41%
Travail
3
Développeur 3
Évaluation
(473)
Projets
1139
44%
Arbitrage
51
31% / 33%
En retard
501
44%
Gratuit
4
Développeur 4
Évaluation
(12)
Projets
17
35%
Arbitrage
1
0% / 100%
En retard
3
18%
Gratuit
5
Développeur 5
Évaluation
(499)
Projets
744
56%
Arbitrage
48
31% / 31%
En retard
120
16%
Gratuit
Publié : 1 code
6
Développeur 6
Évaluation
(47)
Projets
140
49%
Arbitrage
9
56% / 0%
En retard
27
19%
Gratuit
7
Développeur 7
Évaluation
(49)
Projets
134
27%
Arbitrage
62
13% / 53%
En retard
58
43%
Gratuit
Publié : 331 articles, 1 code

Informations sur le projet

Budget