futures_track: I'm clearly missing something because the timer is not beating appropriately for me in the ST.
|
|
whroeder1:
|
Sorry, I'm in MT5 and I think the timer is supposed to be supported:
https://www.mql5.com/en/docs/runtime/testing#ontimer

Documentation on MQL5: MQL5 programs / Testing Trading Strategies
- www.mql5.com
MQL5 programs / Testing Trading Strategies - Reference on algorithmic/automated trading language for MetaTrader 5
whroeder1:
Could you please stop answering to mql5 topic with mql4 link.
Thank you.
futures_track:
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 ?
Alain Verleyen:
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.

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
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.