Download MetaTrader 5

HOW TO History of today´s orders

To add comments, please log in or register
Marcelo Coutinho
1158
Marcelo Coutinho 2015.03.06 16:01 

Hi there,

Is there any variant for this to get only todays orders ?

HistorySelect(TimeCurrent(),TimeCurrent()); << does not work (looking for something like this)

HistorySelect(0,TimeCurrent()); << gets all orders

Thank you

MRC

Alain Verleyen
Moderator
31085
Alain Verleyen 2015.03.06 16:43  
datetime now=TimeCurrent();
datetime today=(now/86400)*86400;
HistorySelect(today,now);
Marcelo Coutinho
1158
Marcelo Coutinho 2015.03.06 17:25  
angevoyageur:
Thank you :)
To add comments, please log in or register