i forex sessions
Info
The i forex sessions is a Indicator for MetaTrader 5 that forex sessions indicator highlights the forex market sessions the indicator assumes local "wall clock" trading hours of 8:00 am - 5:00 pm in each forex market, except in sydney it is 7:00 am - 4:00 pm or 9:00 am - 6:00 pm. features: draw colored rectangles for the forex market sessions (sydney, tokyo, london, new york).
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 i forex sessions
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
forex sessions indicator highlights the forex market sessions the indicator assumes local "wall clock" trading hours of 8:00 am - 5:00 pm in each forex market, except in sydney it is 7:00 am - 4:00 pm or 9:00 am - 6:00 pm.
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: Quantora Session Clock MT5 - Professional Forex Trading Session Monitor - another powerful indicator for MetaTrader 5 traders.
forex sessions indicator highlights the forex market sessionsAlso recommended: multi forex scanner mt5 - similar indicator with strong performance on MetaTrader 5.
the indicator assumes local "wall clock" trading hours of 8:00 am - 5:00 pm in each forex market, except in sydney it is 7:00 am - 4:00 pm or 9:00 am - 6:00 pm.features:
draw colored rectangles for the forex market sessions (sydney, tokyo, london, new york).
accurate session times on forex pairs and gold charts (forex pairs trading starts at 17:00 ny. gold starts an hour later).
the indicator respects the gmt offset + daylight savings for the broker's server, and also for the time zones.
the indicator's time calculations are performed using
additional broker's clock (in the left lower corner) with some useful information:
- server time
- broker gmt offset
- time remaining till weekend (so you can close open trades or skip opening new ones before weekend).
- the status of time synchronization of the local computer. a hint to check if pc time is not synchronized.
moving the mouse pointer on a chart bar while the 'ctrl' key is pressed: the bar number and time (and corresponding times in major forex markets) will be written to the chart window for debugging.
input parameters: parameter: "load xauusd symbol for estimation of the server's tz/dst"
by default, the indicator will search and load the xauusd symbol for estimation of server's timezone offset. xauusd can provide more reliable results (esp., for brokers that follow eu dst schedule) on weeks during us dst and eu dst schedules are out of sync (march and late october). optionally, if your broker follows the us dst schedule, or no schedule at all, then using the chart symbol is also fine. set this parameter to 'false' to use the current chart's symbol, instead of xauusd.
to determine your broker's daylight (dst) schedule, you can use this script
note
:
as a side effect that xauusd starts an hour after forex, dst switches will occur one hour later (only in the strategy tester, and not in normal mode).
bonus feature: moving the mouse pointer on a chart bar while the 'ctrl' key is pressed
the bar number # and its time (and corresponding times in major forex markets) will be written to the chart window for debugging.
then, to delete the debug info from the chart, just click the mouse anywhere on the chart (without pressing the 'ctrl' key).
other market session indicators:
all of the above indicators (and nearly all other indicators on the codebase) use hardcoded fixed offsets for time zones and they do not consider the dst on the broker's server or time zones. simply, this is inaccurate because the session times do change during the year, either due to 1) the broker switches its time zone to dst or 2) one or more of the major forex markets change its time zone's dst.
notice
: the indicator was confirmed to work on the following list of brokers (having different trading schedules, gmt offsets and summer dst schedules):
admirals markets
fxpro
rannforex
exness
fxopen
ic markets
octa markets
tickmill
xm global
the indicator should also work correctly on other brokers.
note about compatibility with the strategy tester
during testing in the strategy tester, timegmt() is always equal to timetradeserver() simulated server time.
timezoneinfo library estimates the proper times in time zones based on the "true" gmt by analysis of h1 quotes history, and not based on the time returned by calling built-in timegmt function.
if the input parameter "load xauusd symbol for estimation of the server's tz/dst" is set to true: then dst switches can occur one hour later in the strategy tester.
You may also like: pivot point indicator for forex trading - excellent alternative for indicator users on MetaTrader 5.
Source Code
яю//+------------------------------------------------------------------+
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.99"
#property description "Educational code - RobotFX www.robotfx.org"
#property description "Educational code - RobotFX www.robotfx.org"
#property description "Educational code - RobotFX www.robotfx.org"
#property description "Educational code - RobotFX www.robotfx.org"
#property indicator_chart_window
#property indicator_buffers 0
.......
⚠ 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.