Forum

time between two ticks or accurate time in MQL4 test mode

Hi everyone, I had a MQL4 strategy based on the ticks but unfortunately I needed the duration between two ticks. I thought that GetTickCount() did the job, but I have just understood the GetTickCount relies on the computer time, so at each run of the same test in the same interval of course I don't

ticks duration = 0 ?

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: uint g_ttick_ms_prev

array size allocation depending on variable

Hi everyone, I am new in MQL4, and I had a simple question for you: I'd like to size (allocate a given size to) a global array of uint depending on the result of a previous calculation. Actually I'm trying to make a robot on which the user sets a given time interval, let's say 10 seconds, but could