Skip to content

Free MT5 indicator

Forex Session Boxes

Draws Asia, London and New York session ranges as boxes using local exchange hours, with a server GMT offset and daylight-saving rule.

Sessionsv1.0MetaTrader 5 (MQL5) Compiles with 0 errors Non-repainting signals

What it does

FXP Session Boxes outlines each trading session on your chart. Every Asia, London and New York session gets a rectangle spanning its high and low, with the session name and range in pips printed above it. The box for the live session grows as the session develops.

Session hours are entered in local exchange time (Tokyo, London, New York), and the indicator converts them to your broker's server time, including daylight saving, so the boxes stay in the right place all year.

How it works

  1. Each candle's server time is converted to UTC using the server GMT offset and the server daylight-saving rule. Most MetaTrader brokers run on GMT+2 in winter and GMT+3 during US daylight saving, which is the default.
  2. UTC is converted to each session's local time: Tokyo is UTC+9 all year, London follows UK daylight saving (last Sunday of March to last Sunday of October), and New York follows US daylight saving (second Sunday of March to first Sunday of November).
  3. If the local time falls inside the session window, the candle belongs to that day's session. Windows that cross midnight are supported.
  4. The box starts at the first candle of the session and its top and bottom track the highest high and lowest low of all session candles so far.
  5. Only new candles are processed on each update; the forming candle simply extends the current box.

How to use it

Copy the .ex5 file into MQL5/Indicators and attach it to an M1 to H1 chart. First check your broker's server offset (compare the Market Watch clock with GMT) and set it in the inputs.

The Asian range is often narrow on major pairs, and some traders watch for London to break it. Overlaps between London and New York tend to be the most active hours. Our forex market hours tool and the lesson on forex trading sessions explain the session clock in more detail.

Session ranges in pips also help you compare today with previous days: an unusually small Asian range sometimes precedes a larger move, but not always.

Settings

InputDefaultWhat it changes
Server GMT offset in winter2Base server offset.
Server daylight-saving ruleUSNone, US or EU summer shift of the server clock.
Show Asia / London / New York sessiontrueToggle each session.
Start and end times09:00-18:00 Tokyo, 08:00-17:00 London, 08:00-17:00 New YorkSession windows in local time (HH:MM).
Session colorsblue / green / redBox colors.
Days of history to draw10Number of past days.
Fill boxestrueFilled or outline boxes.
Show session name and range (pips)trueText above each box.

Limitations

  • A wrong server offset shifts every box. Brokers differ, and some change their offset on different dates, so verify it against a known time.
  • Daylight-saving dates are computed from current US and EU rules; very old history from before those rules may be off by one hour.
  • Boxes are hidden on timeframes above H1, where one candle can span most of a session.
  • Session behavior varies a lot from day to day; a range break is not a signal by itself. Trading involves substantial risk of loss.

Key inputs

Key inputs of Forex Session Boxes
InputDefaultDescription
Server GMT offset in winter (hours)2Your broker's server time offset from GMT outside daylight saving.
Server daylight-saving rule+1 hour during US daylight savingHow the server clock shifts in summer: none, US rules or EU rules.
Start (HH:MM, Tokyo)09:00Asia session start in Tokyo time (end defaults to 18:00).
Start (HH:MM, London)08:00London session start in London time (end defaults to 17:00).
Start (HH:MM, New York)08:00New York session start in New York time (end defaults to 17:00).
Days of history to draw10How many past days get session boxes.
Show session name and range (pips)truePrints the session name and its high-low range in pips.

Educational tools, not advice. Indicators and Expert Advisors describe price; they do not predict it, and past behaviour does not guarantee future results. Test everything on a demo account first and never risk money you cannot afford to lose. See our disclaimer.

Keep exploring

Related mt5 indicators