Работа завершена

Время выполнения 41 минуту
Отзыв от заказчика
Very good programmer, take a time to teach you on what modification he make :) Good teacher :) Thank you !
Отзыв от исполнителя
Good customer! thank you for the job!

Техническое задание

Hello, look at the entire code, check that it is programmed correctly, that there are no functions that are useless! Add a function so that there is only 1 order per currency pair. Currently it can happen that there are 2 or 3 orders per currency pair, I want to limit the number of orders to 1 per currency pair.


Add a code like this example :

int TotalOrders(string symbol="", ulong magic = -1) {

   int cnt = 0;

   int pos_total = PositionsTotal();

   for(int pos =pos_total-1;pos>=0;pos--)  {

      ulong pos_ticket = PositionGetTicket(pos);

      if(PositionSelectByTicket(pos_ticket) && (symbol=="" || PositionGetSymbol(POSITION_SYMBOL)==symbol) && ( magic==-1 || PositionGetInteger(POSITION_MAGIC)==magic) ) {

      cnt++;   

      }

   }

   return(cnt);

}


it's just an example of what I want, it can be programmed differently.


Файлы:

MQ5
deep1.mq5
11.3 Kb

Откликнулись

1
Разработчик 1
Оценка
(211)
Проекты
284
46%
Арбитраж
27
59% / 37%
Просрочено
36
13%
Работает
2
Разработчик 2
Оценка
(22)
Проекты
23
39%
Арбитраж
0
Просрочено
1
4%
Свободен
3
Разработчик 3
Оценка
(9)
Проекты
13
0%
Арбитраж
23
0% / 78%
Просрочено
4
31%
Свободен
4
Разработчик 4
Оценка
(57)
Проекты
72
22%
Арбитраж
13
46% / 15%
Просрочено
5
7%
Свободен
5
Разработчик 5
Оценка
(43)
Проекты
66
12%
Арбитраж
12
58% / 42%
Просрочено
1
2%
Свободен
6
Разработчик 6
Оценка
(279)
Проекты
377
72%
Арбитраж
19
32% / 47%
Просрочено
15
4%
Свободен
Опубликовал: 15 примеров
Похожие заказы
I need an Ai trading bot for Binance and BTC on MT5 that also uses order flow data. It should also make use of TSI- Temporal indicator sampling and also it should make use of fundamental analysis in the process of signal generation

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

Бюджет
30+ USD
Сроки выполнения
до 1 дн.