drazen64:
There is the local time, or time of the computer -TimeLocal(). Remember the difference TimeLocal()-TimeCurrent() and use this difference for the calculating of the TimeCurrent() in weekend
From the TimeCurrent() help:
"Returns the last known server time, time of the last quote receipt for one of the symbols selected in the "Market Watch" window. "
If I understood correctly, I cannot get current time on the broker's server when market is closed.
I would like to calculate time difference between local time and broker server time, but if market is closed then I don't know how old is TimeCurrent() information.
Is there any way to get this information when market is closed?
drazen64:
I cannot get current time on the broker's server when market is closed. I would like to calculate time difference between local time and broker server time, but if market is closed then I don't know how old is TimeCurrent() information. |
|

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
From the TimeCurrent() help:
"Returns the last known server time, time of the last quote receipt for one of the symbols selected in the "Market Watch" window. "
If I understood correctly, I cannot get current time on the broker's server when market is closed.
I would like to calculate time difference between local time and broker server time, but if market is closed then I don't know how old is TimeCurrent() information.
Is there any way to get this information when market is closed?