Take alook at the entire code and add 1 function to limit number of orders

Auftrag beendet

Ausführungszeit 41 Minuten
Bewertung des Kunden
Very good programmer, take a time to teach you on what modification he make :) Good teacher :) Thank you !
Bewertung des Entwicklers
Good customer! thank you for the job!

Spezifikation

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.


Dateien:

MQ5
deep1.mq5
11.3 Kb

Bewerbungen

1
Entwickler 1
Bewertung
(211)
Projekte
284
46%
Schlichtung
27
59% / 37%
Frist nicht eingehalten
36
13%
Arbeitet
2
Entwickler 2
Bewertung
(22)
Projekte
23
39%
Schlichtung
0
Frist nicht eingehalten
1
4%
Frei
3
Entwickler 3
Bewertung
(9)
Projekte
13
0%
Schlichtung
23
0% / 78%
Frist nicht eingehalten
4
31%
Frei
4
Entwickler 4
Bewertung
(57)
Projekte
72
22%
Schlichtung
13
46% / 15%
Frist nicht eingehalten
5
7%
Frei
5
Entwickler 5
Bewertung
(43)
Projekte
66
12%
Schlichtung
12
58% / 42%
Frist nicht eingehalten
1
2%
Frei
6
Entwickler 6
Bewertung
(279)
Projekte
377
72%
Schlichtung
19
32% / 47%
Frist nicht eingehalten
15
4%
Frei
Veröffentlicht: 15 Beispiele
Ähnliche Aufträge
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

Projektdetails

Budget
30+ USD
Ausführungsfristen
bis 1 Tag(e)