DST-Correct Session Boxes with Accurate Clocks

DST-Correct Session Boxes with Accurate Clocks
Download ALL MT5 indicators (6071)
YouTube Video Thumbnail



Similar MetaTrader Tools

DST-Correct Session Boxes with Accurate Clocks

Info

The DST-Correct Session Boxes with Accurate Clocks is a Indicator for MetaTrader 5 that most session indicators shift every session by one fixed offset from the server time. The United States and Europe change their clocks on different weekends, so for a few weeks every spring and autumn those boxes sit one hour away from the real London or New York session.

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 DST-Correct Session Boxes with Accurate Clocks

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

Most session indicators shift every session by one fixed offset from the server time.

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: Gold Session Liquidity Free MT5 - XAUUSD Sessions, Sweeps, and Risk Planner - another powerful indicator for MetaTrader 5 traders.

Most session indicators shift every session by one fixed offset from the server time. The United States and Europe change their clocks on different weekends, so for a few weeks every spring and autumn those boxes sit one hour away from the real London or New York session.

Also recommended: Session Range Boxes with Asia Breakout Alert for MT4/MT5 - similar indicator with strong performance on MetaTrader 5.

This indicator starts from each city's local session hours, converts them to UTC through that city's own daylight saving calendar, and then to your broker's server time. The boxes stay on the right hours through every clock change, and the history drawn for past days uses the rules that were valid on those days.

XAUUSD M20: Tokyo, London and New York boxes with their ranges, and the clock panel

Sessions

Tokyo 09:00-18:00 JST (Japan has no daylight saving time)

London 08:00-17:00 local time (UK daylight saving: last Sunday of March to last Sunday of October)

New York 08:00-17:00 local time (US daylight saving: second Sunday of March to first Sunday of November)

How to read it

Each box spans the session from its open to its close and from its high to its low. The label shows the session hours in local time and the range (high minus low) in price units. A session that is still running grows with every new bar. The London label sits below its box and the other labels above, so overlapping sessions stay readable.

The clock panel shows the live time on the server, in UTC, London, New York and Tokyo, each with its current offset or zone name (GMT/BST, EST/EDT). It updates every second, also when no new quotes arrive, and takes its colors from the chart's color scheme.

Input parameters

Broker server clock
: "New York + 7h" means the server runs at GMT+2 in winter and GMT+3 in summer, switching with US daylight saving time. Most MT5 brokers use this clock. "Fixed" applies today's server offset to all history; use it when your broker's server keeps another rule.

Days to draw
: how many days of sessions are drawn, counted back from today.

Tokyo / London / New York
: show or hide each session.

Tokyo / London / New York box color
: color of each session's box and label.

Clock panel
: show or hide the clock panel.

Notes

In "Fixed" mode today's boxes are always right, but boxes on past days can be one hour off around the clock changes if your broker's offset changed then. The indicator draws objects only and has no buffers. Intraday timeframes (M5 to H1) show the session edges best. Tested on XAUUSD M15 and M20 from 2026.

You may also like: Session VWAP with Standard Deviation Bands - 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 0
enum ENUM_SERVER_CLOCK
  {
   CLOCK_NY7   = 0,
   CLOCK_FIXED = 1
  };

.......

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.