Modify to an Existing EA

MQL4 Integração

Trabalho concluído

Tempo de execução 1 dia
Comentário do cliente
Nice to work with, and got the time to understand it. Great.
Comentário do desenvolvedor
thank you

Termos de Referência

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;

    }

 

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

Respondido

1
Desenvolvedor 1
Classificação
(41)
Projetos
160
45%
Arbitragem
16
13% / 50%
Expirado
48
30%
Livre
2
Desenvolvedor 2
Classificação
(271)
Projetos
553
50%
Arbitragem
57
40% / 37%
Expirado
227
41%
Trabalhando
3
Desenvolvedor 3
Classificação
(473)
Projetos
1139
44%
Arbitragem
51
31% / 33%
Expirado
501
44%
Livre
4
Desenvolvedor 4
Classificação
(12)
Projetos
17
35%
Arbitragem
1
0% / 100%
Expirado
3
18%
Livre
5
Desenvolvedor 5
Classificação
(499)
Projetos
744
56%
Arbitragem
48
31% / 31%
Expirado
120
16%
Livre
Publicou: 1 código
6
Desenvolvedor 6
Classificação
(47)
Projetos
140
49%
Arbitragem
9
56% / 0%
Expirado
27
19%
Livre
7
Desenvolvedor 7
Classificação
(49)
Projetos
134
27%
Arbitragem
62
13% / 53%
Expirado
58
43%
Livre
Publicou: 331 artigos, 1 código

Informações sobre o projeto

Orçamento