Converting mql4 to mql5

MQL5 Converting

Job finished

Execution time 2 days
Feedback from customer
Great, fast and reliable developer. Highly recommended.

Specification

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!


Responded

1
Developer 1
Rating
(33)
Projects
49
12%
Arbitration
16
0% / 88%
Overdue
10
20%
Free
2
Developer 2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(54)
Projects
53
17%
Arbitration
7
0% / 100%
Overdue
5
9%
Free
4
Developer 4
Rating
(2)
Projects
2
100%
Arbitration
0
Overdue
0
Free
5
Developer 5
Rating
(68)
Projects
111
26%
Arbitration
17
6% / 71%
Overdue
15
14%
Free
Published: 9 codes
6
Developer 6
Rating
(14)
Projects
19
11%
Arbitration
1
0% / 100%
Overdue
5
26%
Free
7
Developer 7
Rating
(22)
Projects
30
20%
Arbitration
8
63% / 13%
Overdue
9
30%
Free
8
Developer 8
Rating
(453)
Projects
566
26%
Arbitration
24
42% / 38%
Overdue
85
15%
Free
Published: 6 codes
9
Developer 9
Rating
(144)
Projects
199
42%
Arbitration
20
25% / 55%
Overdue
10
5%
Free

Project information

Budget
30+ USD
Deadline
from 1 to 2 day(s)