Can use e function in MQL to get 12 hour sleep time?

To add comments, please log in or register
gouki1001
341
gouki1001  
  Sleep(4.32e+7); // - 12 Hours
  Sleep(2.16e+7); // -  6 Hours
  Sleep(1.08e+7); // -  3 Hours
William Roeder
20207
William Roeder  
  1. It won't compile - Sleep takes an int. You'll have to cast it.
  2. Why complicate your code - Sleep(12*3600*1000) // 12 hours (ms)
To add comments, please log in or register