Here is a little indicator that shows the current (local PC) time on an analog clock, and displays the selected trading session times that have been set with the 'tradingHours' parameter.
It looks like this:
Hope this is useful for someone.
Edit:
In this week's wrup Steve suggested that the TradeClock could be used to display Forex Market hours. Technically this was not the case as it was meant to display the trading times you want your EA to be trading (using the trade-filter if present in the EA settings). However, I altered the code (of TradeClock) slightly so that it can be configured to display the various Forex Market sessions. Trouble is that the market hours of different sessions overlap each other ... that's why I have created concentric circles within the clock to show which market is currently open:
You can configure 5 different market sessions, with the parameters: Session#Name, Session#Hours and Session#Color (# represents the digits 1-5). The Hours is a comma-separated string of on (+) and off (-) times, in ascending order. Eg. if for your timezone, Sydney opens at 23:00 and closes the next day at 08:00, you would enter: "+0:00,-8:00,+23:00,-24:00". I hope this makes sense. The defaults of the session times have been set for GMT+10 (my timezone in Queensland), with both New York and Europe in their respective winter times (i.e. no DST active). Questions about the time will be deleted. Refer to forexmarkethours if you are unsure.
For the market session functionality, download TradeClock2.
Have fun.
TradeClock
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
TradeClock
You do not have the required permissions to view the files attached to this post.
-
xfactornos
- Trader
- Posts: 115
- Joined: Fri May 23, 2014 5:43 pm
- Location: Where I am...
- SteveHopwood
- Owner
- Posts: 9904
- Joined: Tue Nov 15, 2011 8:43 am
- Location: Misterton - an insignificant village in England. Very pleasant to live in.
TradeClock
I remember the struggle I had to work out which markets were open, back in my early days. I have added a link to this to my wrup tomorrow night.

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.
- Wavegarrick
- Trader
- Posts: 1172
- Joined: Sun Dec 30, 2012 11:21 am
- Location: South Africa
TradeClock
Thanks for this Rene looks nice on my Chart 
You do not have the required permissions to view the files attached to this post.
-
skinner36
TradeClock
Very nice indeed. A couple of things would make it perfect for me.
1. Have an input parameter to take allow server or local time
2. Be able to have two clocks displayed at the same time side by side.
Nevertheless, still an excellent tool and very handy indeed
Cheers,
John
1. Have an input parameter to take allow server or local time
2. Be able to have two clocks displayed at the same time side by side.
Nevertheless, still an excellent tool and very handy indeed
Cheers,
John
- greeny
- Posts: 8
- Joined: Sun Jan 18, 2015 1:37 pm
TradeClock
hi reene i have this error message,
You do not have the required permissions to view the files attached to this post.
-
MeBannedCretin
TradeClock
Hello sir,
please give me some coding sample, how this kind of indicator can make, is this some image of clock or built in function. i m new in this forum and also in mql4 programming.
please give me some coding sample, how this kind of indicator can make, is this some image of clock or built in function. i m new in this forum and also in mql4 programming.
-
The_Snowman
- Trader
- Posts: 395
- Joined: Sun Nov 27, 2011 8:24 am
- Location: Australia
TradeClock
to correlate all markets or check the settings of any time related indicators or EAs, I have always used
http://www.timeanddate.com
set up a personal clock with the markets you wish to monitor, include Reykjavik as it is GMT all year long
never again will daylights savings in any country ever confuse you again, good luck
here is the weekly open at 5 pm New York
http://www.timeanddate.com
set up a personal clock with the markets you wish to monitor, include Reykjavik as it is GMT all year long
never again will daylights savings in any country ever confuse you again, good luck
here is the weekly open at 5 pm New York
You do not have the required permissions to view the files attached to this post.
- renexxxx
- Trader
- Posts: 860
- Joined: Sat Dec 31, 2011 3:48 am
TradeClock
Good idea!The_Snowman » Mon Jan 14, 2019 8:13 am wrote:to correlate all markets or check the settings of any time related indicators or EAs, I have always used
http://www.timeanddate.com
You could add to this list a "Global Prime"-clock (or at least the clock of your favorite broker).
René