A simpler way to get Hour() value

To add comments, please log in or register
David Diez
1616
David Diez  

How to write this on MQ5?

if(Spread<MaxSpread&&Hour()>=StartHour&&Hour()<StopHour){

Thank you in advance.

lippmaje
1188
lippmaje  
MqlDateTime mdt;
TimeCurrent(mdt);

if(Spread<MaxSpread && mdt.hour>=StartHour && mdt.hour<StopHour){
To add comments, please log in or register