Unlocking the Forex Market with the iForexSessions Indicator
The iForexSessions indicator is designed for traders who want to stay ahead of the game. It highlights local trading hours for major Forex markets, ensuring you never miss a beat. The typical trading hours are from 8:00 AM to 5:00 PM in most regions, with Sydney’s hours slightly varying from 7:00 AM to 4:00 PM or 9:00 AM to 6:00 PM.
Key Features:
- Displays colored rectangles for each Forex market session: Sydney, Tokyo, London, and New York.
- Provides accurate session times for Forex pairs and gold charts. Note that Forex trading kicks off at 5:00 PM NY time, while gold trading starts an hour later.
- Adjusts for GMT offsets and daylight savings based on your broker's server settings and time zones.
- Utilizes the TimeZoneInfo library for precise time calculations.
- Includes an additional broker clock in the lower-left corner with helpful info:
- Server time
- Broker's GMT offset
- Time remaining until the weekend (perfect for managing open trades)
- Status of time synchronization for your local computer, with a helpful link to check your PC time here.
Need to debug? Just hold down 'Ctrl' and hover over a chart bar to see the bar number and time, along with corresponding times in the major Forex markets displayed right on your chart.
Input Parameters:

Parameter: "Load XAUUSD symbol for estimation of the server's TZ/DST"
This setting allows the indicator to load the XAUUSD symbol to estimate your broker's timezone offset accurately. This is especially useful during weeks when US and EU daylight saving times are out of sync. If your broker follows the US DST schedule or doesn’t follow any schedule, you can set this to 'false' to use the current chart's symbol instead.
To find out your broker's daylight saving time schedule, you can use this script: DST Schedule Script.
Note: If you set the XAUUSD loading to TRUE, remember that DST switches may occur an hour later in the strategy tester.

Bonus Feature: Debugging made easy! Hold down 'Ctrl' and hover over a chart bar to display the bar number and its time, along with corresponding times in major Forex markets. To clear the debug info, just click anywhere on the chart without holding 'Ctrl'.
Explore Other Market Session Indicators:
Keep in mind that many indicators use fixed timezone offsets and ignore daylight saving adjustments on the broker's server, which can lead to inaccuracies. The iForexSessions indicator addresses this issue by adapting to changes in trading schedules throughout the year.
Broker Compatibility: The iForexSessions indicator has been tested and confirmed to work with several brokers, including:
- Admirals Markets
- FxPro
- RannForex
- EXNESS
- FXOpen
- IC Markets
- Octa Markets
- Tickmill
- XM Global
This indicator is also likely to function correctly with other brokers.
Note about Compatibility with Strategy Tester
In the strategy tester, TimeGMT() aligns with TimeTradeServer() to simulate server time accurately. The TimeZoneInfo library provides the proper time adjustments based on historical H1 quotes, rather than relying solely on the built-in TimeGMT function. If you opt to load the XAUUSD symbol, be aware that DST switches might happen an hour later during testing.
Related Posts
- Mastering the Open Range Breakout Indicator for MetaTrader 5
- Mastering the Negative Volume Index (NVI) Indicator on MetaTrader 5
- Mastering the Fibonacci ZigZag Indicator for MetaTrader 5
- ID Lite Info MA: A Comprehensive Indicator for MetaTrader 5
- Hourly Buffers for Data Collection in MetaTrader 5: A Simple Guide