Anyone know the correct way to convert between unix epoch times and iTime() function in Metatrader? Seems to be a difference of a few days between them.
Anyone know the correct way to convert between unix epoch times and iTime() function in Metatrader? Seems to be a difference of a few days between them.
Ignored
It might depend on the last parameter of iTime() - the bar number. Not all the bars open at the same time!
Mql4 TimeCurrent() represents the epoch time of the broker server (in case it runs at UTC time) at the moment the server pumped the last tick package to MT4 client.