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 代码

项目信息

预算