int offset = MathRound((TimeCurrent() - TimeLocal()) / 3600.0);
Hi,
Because TimeCurrent is the last known server time, if the trading desk is closed, ie now. Then all the labels are wrong as;
So all the labels would be offset 39 hours, where they should be offset 1 hour, GMT+1
Is there a dll from windows that can be loaded to get that information?
Thanks,
T
Because TimeCurrent is the last known server time, if the trading desk is closed, ie now. Then all the labels are wrong as;
int offset = MathRound((TimeCurrent() - TimeLocal()) / 3600.0);= -39
Print(offset);
So all the labels would be offset 39 hours, where they should be offset 1 hour, GMT+1
Is there a dll from windows that can be loaded to get that information?
Thanks,
T
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 adding some labels to my charts using a custom indicator, and the items are provided timestamped for GMT. However I am in GMT+1, and would like to handle the conversion on the fly as the labels are added. However to do that I need to access the client terminals local GMT offset - and add to the value when calling the ObjectCreate for the label.
Any idea what I can do?
Thanks,
T