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
(266)
Proyectos
540
50%
Arbitraje
55
40% / 36%
Caducado
224
41%
Libre
3
Desarrollador 3
Evaluación
(473)
Proyectos
1138
44%
Arbitraje
51
31% / 33%
Caducado
500
44%
Libre
4
Desarrollador 4
Evaluación
(12)
Proyectos
17
35%
Arbitraje
1
0% / 100%
Caducado
3
18%
Libre
5
Desarrollador 5
Evaluación
(467)
Proyectos
701
56%
Arbitraje
44
30% / 32%
Caducado
114
16%
Trabaja
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
Solicitudes similares
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

Información sobre el proyecto

Presupuesto