Real Market Hours free
Half the secret to being successful in the ForEx markets is timing. I haven't seen a reliable market hours indicator posted here, so here is my verison. Opening and closing times for the New York and London markets are based on 8 to 5 business hours. Opening and closing times for Sydney and Japan are based on 9 to 5 business hours. Some people use 6pm close time for Tokyo and some use a 4pm close time for Sydney. However, did you know that ForEx trading hours are not based on corresponding stock markets close times? They are based on investment banking business hours. You can set the hours as you like within the indicator. Many beginers think once you convert the business hours to local time that you will have the market hours all figured out, but its not that simple. Did you know that Daylight savings starts on different days in London and New York. So there is a period in March where opening time in New York is at 12pm instead of 1pm. Did you know Daylight savings in Austrailia is reverse that of New York so that opening times shift 2 hours instead of one between the winter and summer months, leaving a 2 hour gap between the New York close and the Sydney open? Do you know which timezone your broker is using and how it affects the conversion? Well all that is taken care of with my handy dandy market hours indicator! WooHoo!
The markets are color coded and I assigned the market hour value to the result so you could better visually see as markets are coming to a close and execute trades based on specific hours. Make sure you comment out the LocalTime zone which does not apply to you. cTrader brokers seem to be using either Cyprus time or UTC Local Time Zones. Hope it helps!
u s i n g S y s t e m ; u s i n g c A l g o . A P I ; u s i n g c A l g o . A P I . I n d i c a t o r s ; n a m e s p a c e c A l g o . I n d i c a t o r s { [ L e v e l s ( 8 0 0 , 9 0 0 , 1 0 0 0 , 1 1 0 0 , 1 2 0 0 , 1 3 0 0 , 1 4 0 0 , 1 5 0 0 , 1 6 0 0 ) ] [ I n d i c a t o r ( I s O v e r l a y = f a l s e , S c a l e P r e c i s i o n = 0 , T i m e Z o n e = T i m e Z o n e s . U T C , A c c e s s R i g h t s = A c c e s s R i g h t s . N o n e ) ] p u b l i c c l a s s M a r k e t H o u r s : I n d i c a t o r { p u b l i c d o u b l e T o k y o O p e n = 9 0 0 ; p u b l i c d o u b l e T o k y o C l o s e = 1 7 0 0 ; / / S o m e u s e a 6 p m c l o s e f o r T o k y o . I a m u s i n g 5 p m f o r a l l c l o s i n g s . p u b l i c d o u b l e S y d n e y O p e n = 9 0 0 ; p u b l i c d o u b l e S y d n e y C l o s e = 1 7 0 0 ; / / S o m e u s e a 4 p m c l o s e f o r S y d n e y p u b l i c d o u b l e L o n d o n O p e n = 8 0 0 ; p u b l i c d o u b l e L o n d o n C l o s e = 1 7 0 0 ; p u b l i c d o u b l e N Y O p e n = 8 0 0 ; p u b l i c d o u b l e N Y C l o s e = 1 7 0 0 ; p u b l i c T i m e Z o n e I n f o B r o k e r T i m e Z o n e ; [ O u t p u t ( "