- Threepwood: I get one value =0ms: what could be the reason?
The resolution of the GetTickCount function is limited to the resolution of the system timer, which is typically in the range of 10 milliseconds to 16 milliseconds.
GetTickCount function (sysinfoapi.h) - Win32 apps | Microsoft DocsYou got two ticks within the resolution.
-
if( g_min_dttick_ms==0 ) while(1);
Why do you have this infinite loop in your code?
William Roeder:
-
You got two ticks within the resolution.
-
Why do you have this infinite loop in your code?
Hi William and thanks for your answer,
1. Ok now I better understand: it's possible to have two ticks in one go.
2. yes, for debug.
Thanks a lot!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi Everyone,
I've written a short code to measure the minimum duration between two ticks during a backtest (MQL4). I get one value =0ms: what could be the reason?
It happens on Dow Jones (US30 Fxcm on 12th November around 11:34).
Thanks a lot in advance :-)
Here's my code: