Session Range Box: Visualizing Forex Market Sessions on MT5

Session Range Box: Visualizing Forex Market Sessions on MT5
Download ALL MT5 indicators (6102)
YouTube Video Thumbnail



Similar MetaTrader Tools

Session Range Box: Visualizing Forex Market Sessions on MT5

Info

The Session Range Box: Visualizing Forex Market Sessions on MT5 is a Indicator for MetaTrader 5 that session range box is a metatrader 5 chart indicator. It draws the Asian, London, and New York session ranges as boxes, with high and low lines and a range label.

Usage

This tool is typically used for enhancing chart analysis and decision making.

Platform

This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).

Setup

Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.


How to Install and Use Session Range Box: Visualizing Forex Market Sessions on MT5

1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.

2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.

3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.

4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.

Frequently Asked Questions

Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."

Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).

Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.

What this tool does

Session Range Box is a MetaTrader 5 chart indicator.

Typical Use Case

This Indicator excels in automated trading and technical analysis on MetaTrader 5.

Compatible Platform & Setup

This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.

Description & Settings

Related: Session Sweep Tracker: Asian Range Behavior at London Open - another powerful indicator for MetaTrader 5 traders.

Session Range Box is a MetaTrader 5 chart indicator. It draws the Asian, London, and New York session ranges as boxes, with high and low lines and a range label. An optional fourth box marks the London / New York overlap. The indicator does not place, modify, or close orders.

Also recommended: Symbol Trading Hours: Broker Sessions, Countdown, and Off-Hours Bars - similar indicator with strong performance on MetaTrader 5.


What it shows

A filled box for each enabled session, from the session open to the session close. The current session is drawn to its planned end and updates as a new high or low is printed.

High and low lines on top of each box, with an optional mid line.

A label with the session name and the range size, in price units of the symbol.

A corner panel with the latest session day: high, low, and range for Asia, London, New York, and the overlap, plus the clock in use.

If you attach the indicator on a Saturday or Sunday, the panel shows the last session day that has bars, not an empty weekend date.

Default session hours

Session hours are set in GMT by default (the “Hours in GMT” input). The defaults are:

Asian: 00:00–09:00 GMT

London: 07:00–16:00 GMT

New York: 12:00–21:00 GMT

Overlap: the intersection of London and New York, 12:00–16:00 GMT with these defaults.

The panel also prints the broker server’s current offset from GMT, for example “server GMT+2”. You can switch the inputs to broker server time instead of GMT.

These hours do not change automatically for daylight-saving time. When London or New York moves the clock, adjust the start and end hours. The historical boxes of the last few days use the current GMT offset of the server, so a one-hour shift is possible around a DST change.

Inputs

Time

Hours in GMT (true) or broker server time (false).

Number of past calendar days to draw, including today (default 5, maximum 20).

Each session

Show or hide the session.

Start and end hour and minute.

Box fill colour and high / low line colour.

Overlap

Show or hide the London / New York overlap box and its colours. The overlap is disabled automatically if London or New York is hidden, or if the two windows do not intersect.

Display

Fill the rectangle, draw high / low lines, draw the mid line, show labels, show the panel.

Panel corner, offsets, font size, and colours.

How the range is measured

For each session window, the indicator reads the high and low of the bars whose open time falls inside that window. The range is high − low. A point on the symbol is one unit of _Point; the label uses the symbol’s digits, not a conversion to pips.

The indicator is easiest to read on M5, M15, M30, and H1. It still runs on H4 or D1, but a session may cover only one or two bars.

Requirements

Platform: MetaTrader 5.

Works on any symbol that has time and OHLC data.

No DLL calls, no WebRequest, and no internet connection.

Objects are removed when the indicator is removed from the chart.

You may also like: Range Expansion Clock: Identifying Peak Range Formation Hours - excellent alternative for indicator users on MetaTrader 5.

Source Code

#property copyright "RobotFX"
#property version     "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_plots   1
#property indicator_buffers 1
#property indicator_type1   DRAW_NONE
#property indicator_label1  "SRB"
#define SRB_PREFIX  "SRB_"
#define SRB_SESSIONS 4

.......

Leave your opinion, ask a question, share some knowledge

⚠ Limitations & Risk Warning

  • This tool is provided for educational and testing purposes only.
  • Past performance does not guarantee future results.
  • Trading involves substantial risk of loss. Use on a demo account first.
  • Results may vary depending on market conditions, broker, and settings.
  • We recommend thorough backtesting and forward testing before using with real funds.
© ROBOTFX Free educational tools by RobotFX. Use entirely at your own risk; we are not liable for any financial losses incurred.