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 пример

Информация о проекте

Бюджет