SNS_LOCALTIME
Posted: Mon Oct 26, 2009 2:02 am
Simple "LOCAL TIME" indicator that lets you add a sub-window with your local time for each of your candles. This seems to be something a lot of people across many forums wanted to be able to do and so there may already be other indis out there that do the same thing - I'm not sure.
You can specify if you want the time displayed as 24-hour style or 12-hour style (with AM/PM added beneath the time). You get complete control over the font used and the colors used for time and AM/PM.
It looks like this:
This is showing US Central Time, adjusted to fit my broker's (FXCM) time. There is an "hour offset from broker time" parameter for you to set it to match whatever your time situation is.
You may have to tweak the exposed parameters and then adjust the window size once you add it to a chart to get it to look exactly as you want, but then if you save that as a template you'd only have to mess with that once. You can make the line spacing tighter than above if you want to.
By default, it limits itself to only showing local time for the past 50 candles (to save time and memory), but this is an exposed parameter you can adjust.
Enjoy!
[hr]
VERSION HISTORY
v1.0 - initial release
v1.1 - Added Market Open/Close Markers
v1.2 - modified to use SNS_ObjectLibrary.mqh
[hr]
REMINDER: SNS_ObjectLibrary.ex4 file goes into the experts:LIBRARIES folder and the SNS_ObjectLibrary.mqh file goes into the experts:INCLUDES folder.
You can specify if you want the time displayed as 24-hour style or 12-hour style (with AM/PM added beneath the time). You get complete control over the font used and the colors used for time and AM/PM.
It looks like this:
This is showing US Central Time, adjusted to fit my broker's (FXCM) time. There is an "hour offset from broker time" parameter for you to set it to match whatever your time situation is.
You may have to tweak the exposed parameters and then adjust the window size once you add it to a chart to get it to look exactly as you want, but then if you save that as a template you'd only have to mess with that once. You can make the line spacing tighter than above if you want to.
By default, it limits itself to only showing local time for the past 50 candles (to save time and memory), but this is an exposed parameter you can adjust.
Enjoy!
[hr]
VERSION HISTORY
v1.0 - initial release
v1.1 - Added Market Open/Close Markers
v1.2 - modified to use SNS_ObjectLibrary.mqh
[hr]
REMINDER: SNS_ObjectLibrary.ex4 file goes into the experts:LIBRARIES folder and the SNS_ObjectLibrary.mqh file goes into the experts:INCLUDES folder.