Modify to an Existing EA

MQL4 통합

작업 종료됨

실행 시간 1 일
고객의 피드백
Nice to work with, and got the time to understand it. Great.
피고용인의 피드백
thank you

명시

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;

    }

 

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

응답함

1
개발자 1
등급
(41)
프로젝트
160
45%
중재
16
13% / 50%
기한 초과
48
30%
무료
2
개발자 2
등급
(271)
프로젝트
553
50%
중재
57
40% / 37%
기한 초과
227
41%
작업중
3
개발자 3
등급
(473)
프로젝트
1139
44%
중재
51
31% / 33%
기한 초과
501
44%
무료
4
개발자 4
등급
(12)
프로젝트
17
35%
중재
1
0% / 100%
기한 초과
3
18%
무료
5
개발자 5
등급
(499)
프로젝트
744
56%
중재
48
31% / 31%
기한 초과
120
16%
무료
게재됨: 1 코드
6
개발자 6
등급
(47)
프로젝트
140
49%
중재
9
56% / 0%
기한 초과
27
19%
무료
7
개발자 7
등급
(49)
프로젝트
134
27%
중재
62
13% / 53%
기한 초과
58
43%
무료
게재됨: 331 기고글, 1 코드

프로젝트 정보

예산