The "time" topic has been discussed many-many times on this forum. This little utility will help translate server times to local times.
It looks like this:
Four parameters:
- DateFormat: Default: "D/M/y H:I" (Some people want it as: "M/D/y H:I")
- MaxBars: Default: 200 (The number of bars for which you need the local time).
- LineColor: Default: White
- TextColor: Default: White
- ServerGMTOffset: Default: 3
It works out the time shift between the server time and you local computer time. When the server time is running, it can determine the time shift automatically, just by looking at the latest candle time and the local time, comparing the two and adjusting for the small difference in minutes and seconds. In the weekend and in general when the server has stopped, it relies on the correct setting of ServerGMTOffset to work out the time shift.
Also, it works out if there is enough space (in pixels) available to add the 'mileStone' labels. In any case, the tooltip text for each time 'tick' will tell you what the local time is. So, just hover the mouse over these 'ticks' and you'll know.
Any issues ... let me know.
LocalTime
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
LocalTime
Thanks again Rene. Would you like me to add this to my wrup?
Think carefully before replying, "Yes."
Several hundred dimwits with the ability to read your thread but without the ability to understand even the most basic of basics will ask for clarification of, "DateFormat".
Yes, you explained it.
No, they did not understand it. And will post the same question. In only slightly different words. Again and again and again............................
Over to you Rene, and I will do whatever you want me to do. Just bear this in mind: there are good and cogent reasons why questions about time are banned in my threads.
Frankly, for your sanity I suggest you delete the entire thread but I leave that up to you.
Thanks again for your unstinting attempts to help SHF members. You are a star.

Think carefully before replying, "Yes."
Several hundred dimwits with the ability to read your thread but without the ability to understand even the most basic of basics will ask for clarification of, "DateFormat".
Yes, you explained it.
No, they did not understand it. And will post the same question. In only slightly different words. Again and again and again............................
Over to you Rene, and I will do whatever you want me to do. Just bear this in mind: there are good and cogent reasons why questions about time are banned in my threads.
Frankly, for your sanity I suggest you delete the entire thread but I leave that up to you.
Thanks again for your unstinting attempts to help SHF members. You are a star.
Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
LocalTime
It's a pleasure Steve. But "no", I don't think it needs to go in the "wrup". Your post here, should have drawn enough attention to this thread already. And for those who missed it, tough luck.SteveHopwood » Sat Aug 22, 2015 8:45 am wrote:Thanks again Rene. Would you like me to add this to my wrup?
I think I take the risk and leave it up. I expected a post from someone, advising that it doesn't work when the server time has stopped, and that the times are wrong in the weekend. So far, this hasn't happened yet. Still early days....SteveHopwood » Sat Aug 22, 2015 8:45 am wrote: Frankly, for your sanity I suggest you delete the entire thread but I leave that up to you.
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
LocalTime
Good luck. You need it.

Read the effing manual, ok?
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.
I still suffer from OCCD. Good thing, really.
Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.
To see The Weekly Roundup of stuff you guys might have missed Click here
My special thanks to Thomas (tomele) for all the incredible work he does here.
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
LocalTime
I have posted an update to this indicator in Post 1.
The indicator needs the time shift between server time and local time to convert the candle times (that are expressed in server time) to local times. When the server clock is running, this can be done automatically. In the weekend we need to rely on the correct setting of a new parameter called ServerGMTOffset. Normally, I like to avoid relying on the correct settings of user input parameters, as people forget to adjust them eg when the server changes their GMT Offset. Anyway, it is only required to get the setting for ServerGMTOffset right for when the server clock is not ticking. Note that, on weekends, the very first time that the indicator is loaded it hasn't figured out yet that the server clock has stopped -- so the times are wrong. This is corrected on the next update (5 seconds). Changing time frames counts as a reload of the indicator. However, changing the zoom level does not.
Hope not to have confused anybody too much.
The indicator needs the time shift between server time and local time to convert the candle times (that are expressed in server time) to local times. When the server clock is running, this can be done automatically. In the weekend we need to rely on the correct setting of a new parameter called ServerGMTOffset. Normally, I like to avoid relying on the correct settings of user input parameters, as people forget to adjust them eg when the server changes their GMT Offset. Anyway, it is only required to get the setting for ServerGMTOffset right for when the server clock is not ticking. Note that, on weekends, the very first time that the indicator is loaded it hasn't figured out yet that the server clock has stopped -- so the times are wrong. This is corrected on the next update (5 seconds). Changing time frames counts as a reload of the indicator. However, changing the zoom level does not.
Hope not to have confused anybody too much.