time and date - page 2

 
lippmaje:
Here's how to do it with a time struct, works both MQL4 and 5.

lippmaje... i am running with it and i have encountered one issue: the time is not read properly (i use LocalTime) and gets stuck ... not cycling anymore.

is true that i run multiple MT4 session on the same box - still, i do not think that this should be an issue...


if i stop and start the script - the time is read properly for one cycle - that is getting stuck again. 


have you encounter this issue ? any solution to this ?

 
lippmaje:
Here's how to do it with a time struct, works both MQL4 and 5.

i think i fixed it... i placed the LocalTime function inside the loop :_)