MT5 research beta · Indicator

TF Sessions and Previous Levels

Overlay Tokyo, London and New York session ranges plus the prior broker-day and broker-week high and low.

MQL5 source, EX5, README and SHA-256 checksums. Research beta.

Concept illustration for TF Sessions and Previous Levels; not a software screenshot
Concept illustration; not a software screenshot or a performance result.

What this MT5 indicator does

  1. Draws session rectangles from loaded M5 bars for a configurable recent calendar-day window.
  2. Tokyo uses 09:00–18:00 JST; London and New York use 08:00–17:00 local time.
  3. Applies explicit broker UTC and DST settings and current EU / post-2007 US session DST rules.
  4. Adds PDH, PDL, PWH and PWL lines using the broker’s D1 and W1 bars.

Inputs and default settings

These are the defaults in the supplied source. Review them for your account, exact broker symbol and intended test. They are not optimised trading recommendations.

Inputs in TFSessionsPreviousLevels version 1.0.0-beta1
InputDefault
BrokerWinterUTCOffset2
BrokerDSTTF_DST_EU
DaysToShow5

Limitations and failure conditions

  • Session ranges rely on available M5 history and update as the session develops. Incomplete history can make a range incomplete.
  • Previous-day and week levels follow broker candles, not a reconstructed UTC or exchange day.
  • Broker clock settings must be verified; holidays and exchange-specific sessions are not built in.
  • The time-window rectangles are chart context, not entry signals or predicted price ranges.

Install in MetaTrader 5

  1. Extract the ZIP and read its README before attaching any file.
  2. In MT5, choose File → Open Data Folder. Copy the MQ5, EX5 and TFCommon.mqh files together into MQL5/Indicators/TradeForex.
  3. Refresh Navigator and attach the indicator to a chart in an isolated demo or tester. Review its inputs and data requirements.
  4. Use one instance per chart. Reattach after changing accounts; retain the documented state files and settings when testing restarts.

No broker password, web API key or DLL permission is required by this package.

Acceptance checks before relying on it

The following checklist is pending. It is not a report of passed runtime tests.

  • Compare prior-day and prior-week lines with the platform’s D1/W1 chart.
  • Check London/New York positions during both mismatch weeks around spring and autumn DST changes.
  • Confirm behaviour with missing M5 history and an in-progress session.

Download contents and integrity

The ZIP contains MQL5 source, the compiled EX5, TFCommon.mqh, README.md, MIT licence, TEST-STATUS.json and SHA256SUMS.txt.

ZIP size: 20,234 bytes. SHA-256: a8325544a41165b3af2bcada1ba26e769fd985efdc0f04110c2f14b8461f4029.

Download indicator source and EX5

See how we distinguish compilation, demo testing and trading evidence.

Frequently asked questions

Does this tool work in MT4?

No. This package contains MQL5 source and an EX5 build for MetaTrader 5 desktop. MT4 requires a different codebase; mobile and web charts do not run this desktop file.

What has been tested?

MetaEditor build 6180 compiled the supplied release with zero errors and zero warnings. The runtime acceptance checklist, backtests and forward tests are still pending.

Does this indicator place orders?

No. It displays calculated chart context. Check its data inputs and compare its values independently before relying on the display.

Related tools and guides

Educational research, not personal investment advice. CFDs are leveraged products and can cause rapid losses. A calculation, indicator or stop cannot guarantee an account outcome.