MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal

Source code library - Expert Advisors, Indicators and Scripts

Publish a Trading Robot in MQL5 Code Base and Let Millions of Traders Know About You
To post a new code, please log in or register

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2009.11.10 13:16
Time, Forex sessions and Trade Hours monitor

Time, Forex sessions and Trade Hours monitor - indicator for MetaTrader 4

| English Spanish Portuguese Russian

Views:
12105
Rating:
votes: 8
TIME_II.zip (9.41 KB)

Author:

Vadim Baklanov (gip)

Description:

Indicator shows a different Forex sessions, market hours of the exchanges and user defined time lines.

It's a very useful tool for manual and automatic trading.

To perform a correct winter/summer time change, check the following parameters:

Broker_standard_time_zone - time zone, standard UTC+ broker server shift. The default value +1 - EST (Eastern Standard Time).
Broker_DST_start - Broker server's date and time for the summer time change.
Broker_DST_end - Broker server's date and time for the winter time (standard) change.

Image:


Fig 1. Trade session example


The only thing that requires explanation - the mouse icon in the right corner of the indicator.

It's mode selector. If you drag the icon located on the lower symbol, you will switch to the session borders display mode.



Fig 2. Session borders example



Fig 3. Custom defined time lines example


Remark:

At timeframes M30 and H1, it shows only session borders. At higher time frames (H4 and above) it shows only time (hours).
Last comments | Go to discussion (20)
MQL4 Comments
mql4_comments | 29 Dec 2010 at 05:10

Hello,

I found a bug, on broker time -5 (New York) ...... the Tokyo and Hong Kong does not show in Live time, only in back-test.

.


Arshed Qureshi
arshadfx | 21 Jan 2011 at 18:12
A pice of art, very professional coding
Kreangast
Kreangast | 2 Mar 2012 at 08:29

Fig 1. Trade session example

How to set the time display?

Thank you.

Kreangast

2012-3-2

FXIA
FXIA | 13 Dec 2012 at 23:27

I like this indi, is one of the very best session time plotters. Is it possible for you to make this compatible with offline charts also?

Currently rate it at 8/10 because it won't work on offline charts.

I just want to to display session and days properly in offline charts because MT4 does a horrible job at this.

sara01
sara01 | 26 Aug 2013 at 14:11

Hello Gip!

I need that my EA close all EURUSD trades and stop to work at 23:30 hrs. server time and work again at 24:00 hrs.

Do you know how to do it?

Thank you!