sd59:
I am running a 1 second timer function but getting strange results - please see code and output.
Print results.
Why is there duplication of seconds?
I thought the OnTimer() function ran off the system clock?
thanks
So what is strange?
TimeCurrent() is showing the time of the last tick received from the broker.
Use TimeLocal() if you are looking after "regular" clock
Thanks - point taken.
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 am running a 1 second timer function but getting strange results - please see code and output.
Print results.
Why is there duplication of seconds?
I thought the OnTimer() function ran off the system clock?
thanks