'StringToTime' - wrong parameters count

To add comments, please log in or register
gouki1001
341
gouki1001  
Comm= Comm +"StringToT"+ StringToTime(TimeCurrent() + 60*60,TIME_DATE|TIME_MINUTES)+"\n";


But 

Comm= Comm +"TimeToSMath"+ TimeToString(TimeCurrent() + 60*60, TIME_DATE|TIME_MINUTES)+"\n";

Works.

Edwin Artunduaga
2162
Edwin Artunduaga  

StringToTime just needs one parameter and must be a string.

https://docs.mql4.com/convert/stringtotime

StringToTime - Conversion Functions - MQL4 Reference
StringToTime - Conversion Functions - MQL4 Reference
  • docs.mql4.com
StringToTime - Conversion Functions - MQL4 Reference
To add comments, please log in or register