Timer in the Strategy Tester
futures_track: I'm clearly missing something because the timer is not beating appropriately for me in the ST.
|
|
|
Sorry, I'm in MT5 and I think the timer is supposed to be supported:
https://www.mql5.com/en/docs/runtime/testing#ontimer
- www.mql5.com
Could you please stop answering to mql5 topic with mql4 link.
Thank you.
Sorry, I'm in MT5 and I think the timer is supposed to be supported:
https://www.mql5.com/en/docs/runtime/testing#ontimer
Yes it is.
You save TimeCurrent() which is the time of last tick from server(history). Your output is correct, what are you expecting ?
Yes it is.
You save TimeCurrent() which is the time of last tick from server(history). Your output is correct, what are you expecting ?
Aha, yes, I was definitely missing something. namely that TimeCurrent() is not the same as timeGMT().
Thank you.
I'm clearly missing something because the timer is not beating appropriately for me in the ST.
Here's my test program:
..and here's a bit of the output (many beats at the same time and then missing beats at other times):
2017.03.20 05:42:59
2017.03.20 05:53:59
2017.03.20 05:54:59
2017.03.20 05:54:59
2017.03.20 05:54:59
2017.03.20 05:54:59
2017.03.20 05:54:59
2017.03.20 05:59:59
2017.03.20 05:59:59
2017.03.20 06:02:00
2017.03.20 06:02:59
2017.03.20 06:03:30
2017.03.20 06:03:30
2017.03.20 06:03:30
2017.03.20 06:03:30
Thank you.