EA start and stop hour + GMToffset - page 3

 
GumRai:


I don't doubt that there have been issues in the past. The question is whether we can assume that those issues have now been resolved in MT4 now?

That depends on what the correct functioning of Hour() is meant to be . . .

int Hour()

Returns the hour (0,1,2,..23) of the last known server time by the moment of the program start (this value will not change within the time of the program execution).
Note: At the testing, the last known server time is modelled.

Russian translated by Google;

int Hour ()
Returns the current hour (0,1,2, .. 23) of the last known server time at the start of the program (in the process of implementation of the program, this value does not change.)
Note: the testing of the last known server time is modeled.


This documentation says to me that Hour() will return the same value from the time when the Indicator/EA/Script was run until until the time when it ends . . .

 
is there also a way to determine the day of week ie. friday, without last known server time is been modelled?
 
fulltilt:
is there also a way to determine the day of week ie. friday, without last known server time is been modelled?
Not sure I fully understand what you are asking . . . do you mean this ? DayOfWeek() or TimeDayOfWeek()