How can I get the Currenttime in Milliseconds in EA
Hi team,
The current Currentime() function is getting the time but in seconds not in milliseconds, can anyone help me if I want to get the current time in milliseconds using EA.
Thanks
Good morning
try to see
GetTickCount - Common Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
- www.mql5.com
Hi team,
The current Currentime() function is getting the time but in seconds not in milliseconds, can anyone help me if I want to get the current time in milliseconds using EA.
Thanks
Good morning
try to see
GetTickCount - Common Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
EDIT:
I think this information is wrong. Correct is:
GetTickCount64() returns the milliseconds since the system was started.
GetMicrosecondCount() returns the microseconds since the Terminal was started.
There is no way to get the real milliseconds either for local or for server time.
This code is only simulating it. If you need relative time, it could be fine, if you need absolute time it's not accurate.
Hi team,
The current Currentime() function is getting the time but in seconds not in milliseconds, can anyone help me if I want to get the current time in milliseconds using EA.
Thanks