7 Market Sessions & Hours Indicator: Three Session Ranges Tracked Live

Written by Dominic Walsh · Published · Last updated

Worth saying plainly at the start: despite the name, this build tracks three sessions rather than seven. The 7 market sessions & hours indicator plots the running high and low of the Asian, London and New York windows, each in its own colour, and resets them when the date changes. Every boundary is an input, so you can set the hours your broker actually uses.

This build ships as a compiled .ex4 for MT4 and .ex5 for MT5; the screenshots below come from EURUSD M30.

Platforms MT4 (.ex4) + MT5 (.ex5)
Chart window Main price chart
Plots 6: Asian High, Asian Low, London High, London Low, New York High, New York Low
Alerts popup, push notification, email, sound
Inputs 12

What the 7 Market Sessions & Hours Indicator draws on the chart

Asian High and Asian Low in gold, tracking the running extremes of the Asian window.

London High and London Low in deep sky blue.

New York High and New York Low in magenta.

Nothing else. There are no boxes, no labels and no signal markers of any kind.

  • Asian High: line, gold
  • Asian Low: line, gold
  • London High: line, deep sky blue
  • London Low: line, deep sky blue
  • New York High: line, magenta
  • New York Low: line, magenta
7 market sessions & hours indicator on EURUSD M30 with Asian, London and NY ranges
7 market sessions & hours indicator on EURUSD M30 with Asian, London and NY ranges

How the 7 Market Sessions & Hours Indicator calculates its values

Deciding which session a bar belongs to

h takes TimeHour on the bar’s own timestamp, then the code compares it against the six boundary inputs. Everything runs on server time, which is why `AsianStart` carries the comment naming the server hour. London and New York overlap by design in the defaults, with London running 8 to 16 and New York 13 to 21.

Extending the range while the session runs

Each session high takes MathMax against its own previous value, and each low takes MathMin. AsiaHi[i] therefore holds the highest price the Asian window has reached so far this day, rather than the high of one bar. The lines step outward through the session, then hold flat once the window closes.

Resetting on a new day

newday compares TimeDay on the current bar against the previous one. When the date changes, or when the stored value still reads EMPTY_VALUE, the code seeds the level from this bar’s own high or low instead of extending yesterday’s. That reset stops Monday’s Asian range inheriting Friday’s extremes.

How to read the signals

Each line is a running extreme, so a step outward means the session just made a new high or low.

A flat line after a session ends marks the range that session finished with.

London and New York overlap in the defaults, so both pairs move together during the afternoon.

Every line restarts at the date change, which on most brokers falls at a different hour than midnight in your own timezone.

Alert channels in this build: popup, push notification, email and sound.

Four channels sit under `EnableAlerts`: a popup dialog, a mobile notification, SMTP email configured through Tools then Options, and a sound file from the MT4 Sounds folder. Popup ships enabled. Note that the facts for this build show no once-per-bar guard, so messages are not limited to one per bar.

Every 7 Market Sessions & Hours Indicator input

Core settings

Setting What it does Default
AsianStart server hour. First hour of the Asian window in server time, default `0`, with `AsianEnd` at `8`. 0
AsianEnd (see inputs panel) 8
LondonStart London opening hour, default `8`, with `LondonEnd` at `16`. 8
LondonEnd (see inputs panel) 16
NYStart New York opening hour, default `13`, with `NYEnd` at `21`. The overlap with London is intentional. 13
NYEnd (see inputs panel) 21

Alert settings

Setting What it does Default
EnableAlerts master toggle. Master switch for the notification channels described below. on
EnablePopup MT4 popup dialog. on
EnablePushNotify mobile MT4 push notification. off
EnableEmail SMTP email (Tools > Options > Email). off
EnableSound play sound file from MT4/Sounds/. off
SoundFile (see inputs panel) alert.wav
7 market sessions & hours indicator inputs: the six session boundary hours
7 market sessions & hours indicator inputs: the six session boundary hours

Settings that fit your chart

Session tracking suits intraday charts where a whole session fits on screen. The screenshot note calls for EURUSD on M30, which shows several session ranges at once. On M5 you see one session at a time in detail. On H4 and above a session collapses into one or two candles, and the running extremes stop telling you much.

When the 7 Market Sessions & Hours Indicator fails

The hours are server hours. Brokers differ by several, and many shift with daylight saving, so the defaults will be wrong somewhere until you set them.

This build implements three sessions despite the name, so the other market centres traders often watch are absent.

It carries no once-per-bar guard on its alerts, so one bar can raise more than one message when several session events coincide.

Copy the compiled 7 Market Sessions & Hours Indicator file into your MQL4/Indicators folder, and the MT5 build into MQL5/Indicators, then restart the terminal and drag it onto a chart. The step-by-step guide with screenshots is at how to install MT4 and MT5 indicators.

Background reading on the method behind the 7 Market Sessions & Hours Indicator: Technical analysis on Wikipedia, MACD at Investopedia.

Download the 7 Market Sessions & Hours Indicator for MT4 and MT5

The zip holds the compiled 7 Market Sessions & Hours Indicator build for MT4 and MT5, plus a short README. Compiled files only, no source. Enter your email below and the download link arrives in your inbox.

Download this indicator free

Enter your email and the file is yours. You also get the full MT4 and MT5 library.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

FAQ

Does it really cover seven sessions?

No. The name says seven, and the code plots three: Asian, London and New York, each with a high and a low buffer. That is a genuine mismatch between the name and the build. Better to know it up front than to hunt the inputs panel for four sessions that do not exist.

Why do LondonEnd and NYStart overlap?

Because the real markets do. London runs 8 to 16 and New York 13 to 21 in the defaults, so both sessions are live between 13 and 16 server time. That overlap is the busiest stretch of the trading day, and seeing both ranges extend at once is part of what the tool is for.

What time zone do AsianStart and the other hours use?

Your broker’s server time, which the source comment states directly. That is rarely the same as your local clock, and many brokers shift it with daylight saving. Check your chart’s time axis against a known session open before trusting the defaults.

Why does the Asian High line step up during the session?

Because it holds a running extreme, not a fixed level. Each bar takes MathMax of its own high and the stored value, so the line only ever moves outward while the window stays open. Once the session ends the value stops updating, and the line runs flat until the next reset.

Are results guaranteed?

No. Trading involves risk. Results are not guaranteed; past performance is not indicative of future results. Use the 7 Market Sessions & Hours Indicator as one input. Always backtest before trading live.

Category: this is part of our Sessions collection. Then, hence, browse more Sessions for MetaTrader, or explore every MT4 indicator and MT5 indicator on the site.

External references

Dominic Walsh - Forex trader and MT4/MT5 developer

About the author

Written by Dominic Walsh, a Forex trader and MT4/MT5 indicator, Expert Advisor and script developer. Every tool on forexmt4systems.com is tested on live charts before release and ships with ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.

How we build, test and correct every tool: Editorial & Testing Policy. Trading carries risk; see the disclaimer.

Leave a Comment