TradeClock

User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

TradeClock

Post by renexxxx »

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:
Capture.PNG

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:
Capture.PNG
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.
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...

TradeClock

Post by xfactornos »

This is really neat, thanks for sharing!
John 3:16
User avatar
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

Post by SteveHopwood »

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.

:xm:
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.
User avatar
Wavegarrick
Trader
Posts: 1172
Joined: Sun Dec 30, 2012 11:21 am
Location: South Africa

TradeClock

Post by Wavegarrick »

Thanks for this Rene looks nice on my Chart :good:
You do not have the required permissions to view the files attached to this post.
Raj4x

TradeClock

Post by Raj4x »

Very handy and useful tool for every trader. Thanks for sharing! :cheer: :cheer: :cheer:
skinner36

TradeClock

Post by skinner36 »

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
User avatar
greeny
Posts: 8
Joined: Sun Jan 18, 2015 1:37 pm

TradeClock

Post by greeny »

hi reene i have this error message,
Screenshot_2.jpg
Screenshot_1.jpg
You do not have the required permissions to view the files attached to this post.
MeBannedCretin

TradeClock

Post by MeBannedCretin »

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.
The_Snowman
Trader
Posts: 395
Joined: Sun Nov 27, 2011 8:24 am
Location: Australia

TradeClock

Post by The_Snowman »

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
2019-01-14_8-06-00.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
renexxxx
Trader
Posts: 860
Joined: Sat Dec 31, 2011 3:48 am

TradeClock

Post by renexxxx »

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
Good idea!

You could add to this list a "Global Prime"-clock (or at least the clock of your favorite broker).

René
Post Reply

Return to “Clocks and calendars”