Modify to an Existing EA

MQL4 Integración

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Cliente
Nice to work with, and got the time to understand it. Great.
Comentario del Ejecutor
thank you

Tarea técnica

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;

    }

 

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

Han respondido

1
Desarrollador 1
Evaluación
(41)
Proyectos
160
45%
Arbitraje
16
13% / 50%
Caducado
48
30%
Libre
2
Desarrollador 2
Evaluación
(271)
Proyectos
553
50%
Arbitraje
57
40% / 37%
Caducado
227
41%
Trabaja
3
Desarrollador 3
Evaluación
(473)
Proyectos
1139
44%
Arbitraje
51
31% / 33%
Caducado
501
44%
Libre
4
Desarrollador 4
Evaluación
(12)
Proyectos
17
35%
Arbitraje
1
0% / 100%
Caducado
3
18%
Libre
5
Desarrollador 5
Evaluación
(499)
Proyectos
744
56%
Arbitraje
48
31% / 31%
Caducado
120
16%
Libre
Ha publicado: 1 ejemplo
6
Desarrollador 6
Evaluación
(47)
Proyectos
140
49%
Arbitraje
9
56% / 0%
Caducado
27
19%
Libre
7
Desarrollador 7
Evaluación
(49)
Proyectos
134
27%
Arbitraje
62
13% / 53%
Caducado
58
43%
Libre
Ha publicado: 331 artículos, 1 ejemplo

Información sobre el proyecto

Presupuesto