Converting mql4 to mql5

MQL5 Convertir

Tâche terminée

Temps d'exécution 2 jours
Commentaires du client
Great, fast and reliable developer. Highly recommended.

Spécifications

Hi, 

I need convert bellowed mt4 coding to mt5:

//+-------------------------------------------------------------------------------------------------------------

int CalculateCurrentOrdersHistory()

  {

   int closed_orders=0;

   datetime today_midnight=TimeCurrent()-(TimeCurrent()%(PERIOD_D1*60));

   for(int x=OrdersHistoryTotal()-1; x>=0; x--)

      {

      if(OrderSelect(x,SELECT_BY_POS,MODE_HISTORY) && OrderCloseTime()>=today_midnight)

            closed_orders++;

      }

   return(closed_orders);

  }

//+--------------------------------------------------------------------------------------------------------------

It must be pass on mt5 demo a/c.

Thanks!


Répondu

1
Développeur 1
Évaluation
(33)
Projets
49
12%
Arbitrage
16
0% / 88%
En retard
10
20%
Gratuit
2
Développeur 2
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
3
Développeur 3
Évaluation
(54)
Projets
53
17%
Arbitrage
7
0% / 100%
En retard
5
9%
Gratuit
4
Développeur 4
Évaluation
(2)
Projets
2
100%
Arbitrage
0
En retard
0
Gratuit
5
Développeur 5
Évaluation
(68)
Projets
111
26%
Arbitrage
17
6% / 71%
En retard
15
14%
Gratuit
Publié : 9 codes
6
Développeur 6
Évaluation
(14)
Projets
19
11%
Arbitrage
1
0% / 100%
En retard
5
26%
Gratuit
7
Développeur 7
Évaluation
(22)
Projets
30
20%
Arbitrage
8
63% / 13%
En retard
9
30%
Gratuit
8
Développeur 8
Évaluation
(453)
Projets
566
26%
Arbitrage
24
42% / 38%
En retard
85
15%
Gratuit
Publié : 6 codes
9
Développeur 9
Évaluation
(144)
Projets
199
42%
Arbitrage
20
25% / 55%
En retard
10
5%
Gratuit

Informations sur le projet

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