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");
-
Similar Topics
-
Yes, I can predict the market (for a short time)
2 Replies 1753 Viewsby hero447, Sun Nov 10, 2019 9:23 pm in Trading Journals
2 Replies
1753 Views -
How to adjust daily candle closing time?
2 Replies 804 Viewsby Dan15, Sat Jun 13, 2020 5:19 pm in New Members & Common Forex Q&A's
2 Replies
804 Views
-