Hi,
(mt5)
I need to get the datetime 00:00 from the current day..
is this correct? (is not working)...
datetime start=D'00:00:00'
Re: MQL4 how get the time from 00:00:00 (day start time)
2
You are missing the day part in that formatbaraozemo wrote:Hi,
(mt5)
I need to get the datetime 00:00 from the current day..
is this correct? (is not working)...
datetime start=D'00:00:00'
You can not do that that way. Try like this :
Code: Select all
datetime start = StringToTime(TimeToString(TimeCurrent(),TIME_DATE));
Re: MQL4 how get the time from 00:00:00 (day start time)
3yes, this solved..
datetime start = StringToTime("00:00:00");
datetime start = StringToTime("00:00:00");
Re: MQL4 how get the time from 00:00:00 (day start time)
4That way the date might be different from broker time (if I am not mistaken), but try it outbaraozemo wrote:yes, this solved..
datetime start = StringToTime("00:00:00");