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

Tâche terminée

Temps d'exécution 41 minutes
Commentaires du client
Very good programmer, take a time to teach you on what modification he make :) Good teacher :) Thank you !
Commentaires de l'employé
Good customer! thank you for the job!

Spécifications

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.


Dossiers :

MQ5
deep1.mq5
11.3 Kb

Répondu

1
Développeur 1
Évaluation
(211)
Projets
284
46%
Arbitrage
27
59% / 37%
En retard
36
13%
Travail
2
Développeur 2
Évaluation
(22)
Projets
23
39%
Arbitrage
0
En retard
1
4%
Gratuit
3
Développeur 3
Évaluation
(9)
Projets
13
0%
Arbitrage
23
0% / 78%
En retard
4
31%
Gratuit
4
Développeur 4
Évaluation
(57)
Projets
72
22%
Arbitrage
13
46% / 15%
En retard
5
7%
Gratuit
5
Développeur 5
Évaluation
(43)
Projets
66
12%
Arbitrage
12
58% / 42%
En retard
1
2%
Gratuit
6
Développeur 6
Évaluation
(279)
Projets
377
72%
Arbitrage
19
32% / 47%
En retard
15
4%
Gratuit
Publié : 15 codes
Commandes similaires
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

Informations sur le projet

Budget
30+ USD
Délais
à 1 jour(s)