Download MetaTrader 5

HOW TO History of today´s orders

To add comments, please log in or register
Marcelo Coutinho
1202
Marcelo Coutinho  

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
29865
Alain Verleyen  
datetime now=TimeCurrent();
datetime today=(now/86400)*86400;
HistorySelect(today,now);
Marcelo Coutinho
1202
Marcelo Coutinho  
angevoyageur:
Thank you :)
To add comments, please log in or register