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 code
6
開発者 6
評価
(47)
プロジェクト
140
49%
仲裁
9
56% / 0%
期限切れ
27
19%
7
開発者 7
評価
(49)
プロジェクト
134
27%
仲裁
62
13% / 53%
期限切れ
58
43%
パブリッシュした人: 331 articles, 1 code

プロジェクト情報

予算