DislikedI;d like to point out that MT4 has a bug with time:
To people who are located in TimeZones without DayLightSavings would get the highligted errors... You will need a better timekeeper than relying on the function call GetTimeZoneInformation(TZInfoArray).Inserted Code#define TIME_ZONE_ID_UNKNOWN 0 #define TIME_ZONE_ID_STANDARD 1 #define TIME_ZONE_ID_DAYLIGHT 2 // Local timezone in hours, adjusting for daylight saving double TimeZoneLocal() { int TZInfoArray[43]; switch(GetTimeZoneInformation(TZInfoArray)) { case TIME_ZONE_ID_UNKNOWN: [b]Print("Error obtaining PC timezone from GetTimeZoneInformation in kernel32.dll. Returning 0");[/b] return(0); case TIME_ZONE_ID_STANDARD: return(TZInfoArray[0]/(-60.0)); case TIME_ZONE_ID_DAYLIGHT: return((TZInfoArray[0]+TZInfoArray[42])/(-60.0)); default: Print("Unkown return value from GetTimeZoneInformation in kernel32.dll. Returning 0"); return(0); }Ignored
Are you sure about that? Do you live in a place where that happens?
Yes, especially for [some] non-US parts of the world, it would be really nice to have a better method. If anyone comes across something that would work better, please let me know.