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
Rating
Projects
49
12%
Arbitration
16
0%
/
88%
Overdue
10
20%
Free
2
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
3
Rating
Projects
53
17%
Arbitration
7
0%
/
100%
Overdue
5
9%
Free
4
Rating
Projects
2
100%
Arbitration
0
Overdue
0
Free
5
Rating
Projects
111
26%
Arbitration
17
6%
/
71%
Overdue
15
14%
Free
Published: 9 codes
6
Rating
Projects
19
11%
Arbitration
1
0%
/
100%
Overdue
5
26%
Free
7
Rating
Projects
30
20%
Arbitration
8
63%
/
13%
Overdue
9
30%
Free
8
Rating
Projects
566
26%
Arbitration
24
42%
/
38%
Overdue
85
15%
Free
Published: 6 codes
9
Rating
Projects
199
42%
Arbitration
20
25%
/
55%
Overdue
10
5%
Free
Project information
Budget
30+ USD
Deadline
from 1 to 2 day(s)