MarketTime v1.10: Professional Multi-Timezone Clock & Session Indicator - Complete Documentation
MarketTime v1.10: Professional Multi-Timezone Clock & Session Indicator - Complete Documentation
Product Name: MarketTime
Version: 1.10
Type: MetaTrader 5 Indicator
Author: Kaan Çalışkan
Product Link: View on MQL5 Market
Introduction
MarketTime is a professional-grade multi-timezone clock and trading session indicator designed specifically for forex traders who need to monitor global market sessions, time zones, and symbol trading hours simultaneously. In the fast-paced world of forex trading, timing is everything. Understanding when major financial centers are active, when sessions overlap, and when your broker's symbol is open for trading can significantly impact your trading decisions and strategy execution.
This comprehensive indicator displays real-time information across multiple time zones including Local, Broker, London (GMT), New York (EST), Tokyo (Asia), and custom time zones of your choice. It provides live countdowns to session opens and closes for London, New York, and Asian markets, shows your symbol's current trading status with next open/close information, and draws visual session zones directly on your chart with customizable colors and transparency.
Whether you're a scalper who needs precise timing for high-liquidity session overlaps, a swing trader planning entries around major market opens, or a position trader monitoring global market hours, MarketTime provides all the time-critical information you need in one elegant, customizable panel. The indicator features a collapsible interface that saves screen space, draggable positioning for optimal placement on your charts, and extensive customization options for colors, fonts, and displayed information.
MarketTime eliminates the need for multiple browser tabs, external applications, or mental calculations to track market hours. Everything you need is right on your chart, updating in real-time, with visual session zones that help you identify high-activity periods at a glance. This documentation will guide you through every feature, setting, and configuration option to help you get the most out of this powerful tool.
Part 1: Getting Started with MarketTime
1.1 Installation
After purchasing or downloading MarketTime from the MQL5 Market, the indicator will automatically appear in your MetaTrader 5 Navigator panel. To install and use MarketTime:
- Open MetaTrader 5 platform
- Navigate to the "Navigator" panel (Ctrl+N if not visible)
- Expand the "Indicators" folder, then "Market" folder
- Locate "MarketTime" in the list
- Drag and drop MarketTime onto any chart window
- The settings dialog will appear with all configuration options
- Configure your preferences (or use defaults) and click "OK"
The indicator panel will immediately appear on your chart, displaying current time information across all enabled time zones and session countdowns.
1.2 First Look: Understanding the Panel
When you first attach MarketTime to your chart, you'll see a professional dark-themed panel (colors are fully customizable) positioned in the upper-left corner by default. The panel is organized into several sections:
- Header Section: Contains the "MarketTime" title and a collapse/expand button (▼/▲) for minimizing the panel
- Time Display Section: Shows current time in multiple time zones (Local, Broker, London, New York, Tokyo, Custom)
- Session Countdown Section: Displays time remaining until next session open or close for London, New York, and Asia
- Symbol Info Section: Shows your current symbol's trading hours, open/closed status, and time to next open
- Additional Info Section: Displays day of week, market status, spread, and other optional information
The panel is fully interactive - you can click and drag it to reposition anywhere on your chart, and click the header button to collapse/expand the full information display.
1.3 Quick Start Configuration
For traders who want to get started quickly, here's a minimal configuration that works well for most forex traders:
Panel Settings:
InpPanelX = 20 (left margin from chart edge)
InpPanelY = 50 (top margin from chart edge)
InpStartCollapsed = false (start with panel expanded)
Time Display Settings:
InpTimeFormat = TIME_FORMAT_24H (24-hour format)
InpShowSeconds = true (display seconds)
InpShowLocalTime = true (your computer's time zone)
InpShowBrokerTime = true (your broker's server time)
InpShowLondonTime = true (GMT/London time)
InpShowNewYorkTime = true (EST/EDT New York time)
InpShowTokyoTime = true (JST Tokyo time)
Session Countdown Settings:
InpShowLondonCountdown = true
InpShowNYCountdown = true
InpShowAsiaCountdown = true
Session Zone Settings:
InpDrawSessionZones = true (draw colored zones on chart)
InpDrawLondonZone = true
InpDrawNewYorkZone = true
InpDrawAsiaZone = true
InpDrawOverlapZone = true (highlight session overlaps)
This configuration gives you a complete view of global market hours with visual session zones on your chart, making it easy to identify trading opportunities during high-liquidity periods.
Part 2: Panel Settings - Appearance and Positioning
2.1 Panel Position Settings
MarketTime allows you to position the panel anywhere on your chart using pixel coordinates:
InpPanelX = 20 (Default: 20)
Range: 0 to chart width
Description: Horizontal position in pixels from left edge of chart
InpPanelY = 50 (Default: 50)
Range: 0 to chart height
Description: Vertical position in pixels from top edge of chart
Usage Tips: The panel is also draggable, so you can click and drag it to any position after it's loaded. The X and Y values are used for the initial position when the indicator first loads. If you want the panel in the upper-right corner, set InpPanelX to a high value like 1500 (it will automatically adjust to your screen). For bottom placement, set InpPanelY to a high value like 800.
2.2 Panel Color Customization
Every color element in the MarketTime panel can be customized to match your chart theme or personal preferences:
InpPanelBgColor = C'25,25,35' (Default: Dark blue-gray)
Description: Main panel background color
Example: C'0,0,0' for black, C'255,255,255' for white
InpPanelBorderColor = C'60,60,80' (Default: Medium blue-gray)
Description: Panel border outline color
InpHeaderColor = C'35,35,50' (Default: Slightly darker blue-gray)
Description: Header section background color (where title and collapse button appear)
InpTextColor = clrWhite (Default: White)
Description: Main text color for time displays and information
InpLabelColor = C'150,150,170' (Default: Light gray)
Description: Label text color (for "Local:", "London:", etc.)
InpCountdownColor = clrLime (Default: Bright green)
Description: Color for active countdown timers
InpSessionActiveColor = clrGold (Default: Gold/Yellow)
Description: Color used when a session is currently active/open
Color Format: MetaTrader 5 supports colors in multiple formats. You can use predefined color names (clrWhite, clrBlack, clrRed, etc.) or custom RGB values using the C'R,G,B' format where R, G, and B are values from 0 to 255. For example, C'255,0,0' is pure red, C'0,255,0' is pure green, and C'128,128,128' is medium gray.
Theme Examples:
Dark Theme (Default):
InpPanelBgColor = C'25,25,35'
InpTextColor = clrWhite
InpLabelColor = C'150,150,170'
Light Theme:
InpPanelBgColor = C'240,240,245'
InpTextColor = clrBlack
InpLabelColor = C'80,80,100'
Blue Theme:
InpPanelBgColor = C'15,30,60'
InpHeaderColor = C'25,40,70'
InpPanelBorderColor = C'50,100,180'
2.3 Font and Text Settings
InpFontSize = 9 (Default: 9)
Range: 6 to 20 recommended
Description: Size of all text in the panel
InpFontName = "Consolas" (Default: Consolas)
Description: Font family for all text
Options: Any font installed on your system
Popular choices: "Arial", "Courier New", "Tahoma", "Verdana", "Consolas"
Font Recommendations: Monospace fonts like "Consolas" or "Courier New" work best for time displays because all digits have the same width, preventing the panel from shifting as numbers change. For a cleaner modern look, "Arial" or "Segoe UI" work well. Avoid decorative fonts as they may reduce readability.
2.4 Collapse/Expand Functionality
InpStartCollapsed = false (Default: false)
Options: true or false
Description: Whether the panel starts in collapsed (minimized) state
When set to true, only the panel header with the title "MarketTime" and the expand button (▲) will be visible when the indicator loads. This is useful if you want the time information available but don't need it constantly displayed. You can click the button to expand the full panel at any time.
When set to false (default), the panel loads fully expanded with all information visible. You can still collapse it by clicking the collapse button (▼) in the header.
Part 3: Time Display Settings - Multiple Time Zones
3.1 Time Format Selection
InpTimeFormat = TIME_FORMAT_24H (Default: 24-hour)
Options:
TIME_FORMAT_12H = 12-Hour format with AM/PM
TIME_FORMAT_24H = 24-Hour military format
12-Hour Format Example: 09:30:45 PM
24-Hour Format Example: 21:30:45
Most professional traders prefer the 24-hour format as it eliminates AM/PM confusion and is standard in international markets. However, if you're more comfortable with 12-hour time, the indicator fully supports it with clear AM/PM indicators.
3.2 Seconds Display
InpShowSeconds = true (Default: true)
Options: true or false
Description: Whether to show seconds in time displays
When enabled, all times show in HH:MM:SS format (or HH:MM:SS AM/PM in 12-hour mode). When disabled, times show in HH:MM format. Disabling seconds makes the display more compact and reduces visual updates, but you lose precision timing information.
3.3 Standard Time Zones
MarketTime can display up to six different time zones simultaneously. Each can be independently enabled or disabled:
InpShowLocalTime = true (Default: true)
Description: Shows your computer's local time zone
Label: "Local:"
InpShowBrokerTime = true (Default: true)
Description: Shows your broker's server time (MetaTrader server time)
Label: "Broker:"
InpShowLondonTime = true (Default: true)
Description: Shows London/GMT time (UTC+0)
Label: "London:"
Note: Automatically adjusts for British Summer Time (BST/UTC+1)
InpShowNewYorkTime = true (Default: true)
Description: Shows New York/Eastern time (EST/EDT)
Label: "New York:"
Note: Automatically adjusts for Daylight Saving Time
InpShowTokyoTime = true (Default: true)
Description: Shows Tokyo/Japan time (JST/UTC+9)
Label: "Tokyo:"
Note: Japan does not observe DST, always UTC+9
Why These Time Zones Matter:
- Local Time: Your personal reference time for coordinating with your daily schedule
- Broker Time: Critical for understanding when your broker's trading day starts/ends, used for daily candle close times
- London Time: GMT is the base reference for forex market hours, London session is one of the most liquid periods
- New York Time: The New York session has the highest trading volume, and the London-New York overlap is the most active period
- Tokyo Time: Represents the Asian session, important for traders focusing on JPY pairs and Asian market activity
3.4 Custom Time Zone
In addition to the five standard time zones, MarketTime allows you to add one custom time zone of your choice:
InpShowCustomTime = false (Default: false)
Description: Enable/disable custom timezone display
InpCustomTimezone = TZ_UTC_P3 (Default: UTC+3)
Description: The UTC offset for your custom timezone
InpCustomTimezoneName = "Custom" (Default: "Custom")
Description: Label text that appears before the time
Example: "Dubai", "Sydney", "Mumbai", etc.
Available Custom Time Zones (Full List):
TZ_UTC_M12 = UTC-12:00 (Baker Island)
TZ_UTC_M11 = UTC-11:00 (American Samoa)
TZ_UTC_M10 = UTC-10:00 (Hawaii)
TZ_UTC_M9 = UTC-09:00 (Alaska)
TZ_UTC_M8 = UTC-08:00 (Los Angeles, PST/PDT)
TZ_UTC_M7 = UTC-07:00 (Denver, MST/MDT)
TZ_UTC_M6 = UTC-06:00 (Chicago, CST/CDT)
TZ_UTC_M5 = UTC-05:00 (New York, EST/EDT)
TZ_UTC_M4 = UTC-04:00 (Halifax, AST/ADT)
TZ_UTC_M3 = UTC-03:00 (Sao Paulo, BRT)
TZ_UTC_M2 = UTC-02:00 (Mid-Atlantic)
TZ_UTC_M1 = UTC-01:00 (Azores)
TZ_UTC_0 = UTC+00:00 (London GMT, Reykjavik)
TZ_UTC_P1 = UTC+01:00 (Paris, Berlin, CET)
TZ_UTC_P2 = UTC+02:00 (Athens, Istanbul, EET)
TZ_UTC_P3 = UTC+03:00 (Moscow, Turkey, TRT)
TZ_UTC_P4 = UTC+04:00 (Dubai, GST)
TZ_UTC_P5 = UTC+05:00 (Karachi, PKT)
TZ_UTC_P530 = UTC+05:30 (Mumbai, IST)
TZ_UTC_P6 = UTC+06:00 (Dhaka, BST)
TZ_UTC_P7 = UTC+07:00 (Bangkok, ICT)
TZ_UTC_P8 = UTC+08:00 (Singapore, Hong Kong, SGT)
TZ_UTC_P9 = UTC+09:00 (Tokyo, Seoul, JST)
TZ_UTC_P930 = UTC+09:30 (Adelaide, ACST)
TZ_UTC_P10 = UTC+10:00 (Sydney, AEST)
TZ_UTC_P11 = UTC+11:00 (Solomon Islands)
TZ_UTC_P12 = UTC+12:00 (Auckland, NZST)
Custom Time Zone Example: If you're based in Dubai and want to see Dubai time displayed, you would configure:
InpShowCustomTime = true
InpCustomTimezone = TZ_UTC_P4
InpCustomTimezoneName = "Dubai"
The panel will then show a line: Dubai: 14:30:45 (or whatever the current Dubai time is).
Part 4: Session Countdown Settings
4.1 Understanding Session Countdowns
One of MarketTime's most valuable features is the live countdown timers that show exactly how much time remains until the next major session opens or closes. These countdowns help you prepare for high-volatility periods, session transitions, and optimal trading windows.
The indicator monitors three major forex sessions:
- London Session: European market hours, highest liquidity for EUR and GBP pairs
- New York Session: American market hours, highest overall trading volume
- Asia Session: Asian/Pacific market hours, important for JPY, AUD, and NZD pairs
For each session, the indicator displays whether the session is currently OPEN or CLOSED, and a countdown timer showing time remaining until the next state change.
4.2 Session Countdown Enable/Disable
InpShowLondonCountdown = true (Default: true)
Description: Show/hide London session countdown
InpShowNYCountdown = true (Default: true)
Description: Show/hide New York session countdown
InpShowAsiaCountdown = true (Default: true)
Description: Show/hide Asia session countdown
Each countdown can be independently enabled or disabled. If you only trade during the London and New York sessions, you can disable the Asia countdown to save panel space.
4.3 London Session Configuration
The London session times are configurable to match the actual trading hours you consider relevant:
InpLondonOpenHour = 8 (Default: 8)
Range: 0 to 23
Description: Hour when London session opens (in GMT)
InpLondonOpenMinute = 0 (Default: 0)
Range: 0 to 59
Description: Minute when London session opens
InpLondonCloseHour = 16 (Default: 16)
Range: 0 to 23
Description: Hour when London session closes (in GMT)
InpLondonCloseMinute = 30 (Default: 30)
Range: 0 to 59
Description: Minute when London session closes
Default London Hours: 08:00 GMT to 16:30 GMT (8:00 AM to 4:30 PM London time)
Important Note: All session times are specified in GMT (Greenwich Mean Time / UTC+0). The indicator will automatically convert these times to your broker's time zone for display and zone drawing. During British Summer Time (BST), London is GMT+1, but you still configure the times in GMT - the indicator handles the DST adjustment automatically.
4.4 New York Session Configuration
InpNewYorkOpenHour = 14 (Default: 14)
Range: 0 to 23
Description: Hour when New York session opens (in GMT)
InpNewYorkOpenMinute = 30 (Default: 30)
Range: 0 to 59
Description: Minute when New York session opens
InpNewYorkCloseHour = 21 (Default: 21)
Range: 0 to 23
Description: Hour when New York session closes (in GMT)
InpNewYorkCloseMinute = 0 (Default: 0)
Range: 0 to 59
Description: Minute when New York session closes
Default New York Hours: 14:30 GMT to 21:00 GMT
This corresponds to approximately 9:30 AM to 4:00 PM Eastern Time (the actual hours vary by DST). Some traders prefer to extend the New York session to 22:00 GMT to include after-hours activity.
4.5 Asia Session Configuration
InpAsiaOpenHour = 0 (Default: 0)
Range: 0 to 23
Description: Hour when Asia session opens (in GMT)
InpAsiaOpenMinute = 0 (Default: 0)
Range: 0 to 59
Description: Minute when Asia session opens
InpAsiaCloseHour = 9 (Default: 9)
Range: 0 to 23
Description: Hour when Asia session closes (in GMT)
InpAsiaCloseMinute = 0 (Default: 0)
Range: 0 to 59
Description: Minute when Asia session closes
Default Asia Hours: 00:00 GMT to 09:00 GMT (midnight to 9:00 AM GMT)
This covers the Tokyo session which is the primary reference for Asian market hours. Some traders prefer to start the Asian session at 23:00 GMT (the previous day) to include the Sydney session open, or extend it to 10:00 GMT to include more Tokyo morning activity.
4.6 How Countdown Timers Work
The countdown display format is: London: OPEN - Closes in 5h 23m 45s
When a session is open, you'll see:
- Status: OPEN (displayed in the session active color, default: Gold)
- Next event: "Closes in..."
- Time remaining in hours, minutes, and seconds
When a session is closed, you'll see:
- Status: CLOSED
- Next event: "Opens in..."
- Time remaining in hours, minutes, and seconds
The timers update every second in real-time, giving you precise awareness of when trading activity is likely to increase or decrease.
Part 5: Symbol Information Display
5.1 Symbol Trading Hours
MarketTime displays real-time information about your current chart symbol's trading status. This is particularly valuable because not all symbols trade 24/5 like major forex pairs - some have specific trading hours, maintenance breaks, or weekly closures.
InpShowSymbolInfo = true (Default: true)
Description: Enable/disable display of symbol trading hours
When enabled, this section shows the current symbol name and its designated trading schedule as reported by your broker. For example, a forex pair might show "24 hours" while a stock CFD might show "09:30-16:00 EST" or similar specific hours.
5.2 Symbol Open/Closed Status
InpShowSymbolStatus = true (Default: true)
Description: Show whether the symbol is currently open or closed for trading
This displays real-time information about whether you can currently place trades on this symbol. The status will show:
- OPEN - Symbol is currently tradable, you can place market orders
- CLOSED - Symbol is not currently tradable (weekend, holiday, maintenance, or outside trading hours)
The status color changes based on the state - open symbols typically display in the session active color (gold by default), while closed symbols display in normal text color.
5.3 Time to Next Open
InpShowNextOpen = true (Default: true)
Description: Show countdown timer to when symbol will next open for trading
When the symbol is currently closed, this displays a countdown showing exactly how much time remains until the symbol becomes tradable again. For example:
Next Open: in 1d 3h 24m 15s (1 day, 3 hours, 24 minutes, 15 seconds)
This is extremely useful during weekends when waiting for Monday market open, or when trading symbols with specific session hours.
5.4 Session Open/Close Times
InpShowSessionTime = true (Default: true)
Description: Display the exact open and close times for the current trading session
This shows the specific times when the current symbol's session opened (or will open) and when it will close. The times are displayed in your broker's server time for easy reference. Example display:
Opens: Monday 00:00
Closes: Friday 23:59
For 24-hour forex symbols, this typically shows the weekly cycle (Monday open to Friday close). For symbols with daily sessions, it shows today's session times.
5.5 Symbol Info Practical Use Cases
Forex Pairs: Most major pairs trade 24 hours weekdays. Symbol info confirms when the week starts/ends in your broker's time zone.
Stock CFDs: These have specific daily hours. Symbol info tells you exactly when you can trade, preventing missed opportunities or confusion about why orders aren't executing.
Commodities: Gold, silver, oil, etc., often have unique trading schedules with daily breaks. The countdown helps you prepare for reopening.
Cryptocurrency: While many crypto pairs trade 24/7, some have scheduled maintenance. Symbol status alerts you if trading is temporarily unavailable.
Part 6: Session Zone Drawing on Chart
6.1 Understanding Session Zones
Session zones are colored rectangles drawn directly on your price chart that visually highlight when major trading sessions are active. These zones extend from the top to the bottom of your visible chart, making it instantly obvious which session(s) were active during any historical price movement.
This visual representation helps you:
- Identify which sessions drove specific price movements
- See session overlaps where liquidity is highest (London + New York overlap is the most liquid period)
- Plan entries and exits around session opens and closes
- Backtest strategies by visually correlating patterns with session times
- Recognize how your trading pair behaves during different global sessions
6.2 Session Zone Master Control
InpDrawSessionZones = true (Default: true)
Description: Master on/off switch for all session zone drawing
When set to false, no session zones will be drawn on the chart regardless of individual session settings. This is useful if you want the time panel and countdowns but prefer a clean chart without colored zones.
When set to true, the indicator will draw zones for each session that is individually enabled below.
6.3 Individual Session Zone Controls
InpDrawLondonZone = true (Default: true)
Description: Draw London session zones
InpDrawNewYorkZone = true (Default: true)
Description: Draw New York session zones
InpDrawAsiaZone = true (Default: true)
Description: Draw Asia session zones
InpDrawOverlapZone = true (Default: true)
Description: Draw special zones highlighting session overlaps
Each session can be independently shown or hidden. For example, if you only trade the London-New York overlap, you could disable Asia zones while keeping London and New York zones visible.
Overlap Zones: When enabled, the indicator draws additional zones during periods when two major sessions are simultaneously active. The most important overlap is London + New York (roughly 13:30-16:30 GMT), which has the highest trading volume and volatility in forex markets.
6.4 Session Zone Colors
Each session has its own customizable color to help you distinguish between different market hours at a glance:
InpLondonZoneColor = C'0,100,150' (Default: Blue-teal)
Description: Color for London session zones
InpNewYorkZoneColor = C'150,100,0' (Default: Orange-brown)
Description: Color for New York session zones
InpAsiaZoneColor = C'100,0,100' (Default: Purple)
Description: Color for Asia session zones
InpOverlapZoneColor = C'0,150,100' (Default: Teal-green)
Description: Color for session overlap zones
Color Selection Tips: Choose colors that contrast with your chart background and price candles, but aren't so bright that they distract from price action. The default colors are designed to be subtle yet distinguishable. If you have a light chart theme, use darker colors. For dark themes, lighter colors work better.
Recommended Color Schemes:
Dark Chart Theme:
InpLondonZoneColor = C'30,80,120' (Subtle blue)
InpNewYorkZoneColor = C'120,80,30' (Subtle orange)
InpAsiaZoneColor = C'80,30,80' (Subtle purple)
InpOverlapZoneColor = C'30,100,80' (Subtle teal)
Light Chart Theme:
InpLondonZoneColor = C'180,200,220' (Light blue)
InpNewYorkZoneColor = C'220,200,180' (Light orange)
InpAsiaZoneColor = C'200,180,200' (Light purple)
InpOverlapZoneColor = C'180,220,200' (Light teal)
6.5 Zone Transparency
InpZoneTransparency = 85 (Default: 85)
Range: 0 to 100
Description: Transparency level of session zones
0 = Fully visible (opaque)
100 = Fully transparent (invisible)
This parameter controls how see-through the session zones are. Higher values make the zones more transparent, allowing you to see price action more clearly while still having the zones visible as a subtle background reference.
Recommended Values:
- 70-80: Very subtle, barely noticeable unless you look for them
- 80-85: Default range, good balance between visibility and clarity
- 85-90: Very transparent, just a hint of color
- 50-70: More visible, zones are clearly present
- Below 50: Very prominent, may interfere with chart reading
6.6 Historical Zone Display
InpZoneDaysToShow = 5 (Default: 5)
Range: 1 to 30
Description: Number of past days to draw session zones for
This determines how far back in history the session zones are drawn. A value of 5 means zones will be drawn for today plus the previous 5 days. Higher values let you see session patterns further back in time, useful for backtesting or long-term analysis.
Recommended Values by Chart Timeframe:
- M1-M5 (Scalping): 1-3 days (zones on very short timeframes become crowded quickly)
- M15-H1 (Intraday): 3-7 days (good balance of context without clutter)
- H4-D1 (Swing Trading): 10-20 days (see multiple weeks of session patterns)
- Weekly+ (Position Trading): 20-30 days (or set InpDrawSessionZones = false, less relevant at this scale)
Performance Note: Drawing zones for many days can slightly impact indicator performance, especially on lower timeframe charts. If you notice any slowdown, reduce this value.
Part 7: Additional Features and Information Display
7.1 Day of Week Display
InpShowDayOfWeek = true (Default: true)
Description: Display current day of the week
When enabled, the panel shows the current day (Monday, Tuesday, Wednesday, etc.) based on your broker's server time. This helps you maintain context, especially important for weekly trading cycles and being aware of Friday closings or Monday openings.
7.2 Forex Market Status
InpShowMarketStatus = true (Default: true)
Description: Show overall forex market status (OPEN/CLOSED)
This displays whether the global forex market is currently open or closed. The market is considered:
- OPEN: Sunday 21:00 GMT to Friday 21:00 GMT (approximately)
- CLOSED: Friday evening to Sunday evening (weekend)
This is a high-level indicator separate from individual symbol trading hours, representing the general state of the forex market as a whole.
7.3 Current Spread Display
InpShowSpread = true (Default: true)
Description: Display current bid-ask spread for the chart symbol
Shows the current spread in points/pips between the bid and ask price. This information updates in real-time and helps you:
- Identify when spreads widen (typically during low liquidity or news events)
- Determine optimal entry times (lower spreads reduce trading costs)
- Avoid trading during periods of abnormally high spreads
- Compare spread conditions across different sessions
Example display: Spread: 1.2 pips
7.4 Server Latency/Ping Display
InpShowServerPing = false (Default: false)
Description: Show estimated connection latency to broker server
When enabled, displays an approximate ping time (in milliseconds) to your broker's server. This is useful for:
- Scalpers and high-frequency traders monitoring connection quality
- Detecting network issues that might affect order execution
- Comparing latency across different times of day
Note: This feature is disabled by default as it's not critical for most trading styles. Enable it only if you're concerned about execution speed and network performance.
7.5 Daylight Saving Time Indicator
InpShowDST = true (Default: true)
Description: Show when Daylight Saving Time is active for major zones
Displays an indicator when DST (Daylight Saving Time) is currently active in major financial centers. This is important because session times can shift by one hour during DST transitions in March/April and October/November.
Example: When British Summer Time is active, London is GMT+1 instead of GMT+0, which affects the actual clock time of the London session open/close relative to other time zones.
Part 8: Alert System
8.1 Session Open Alerts
InpAlertOnSession = false (Default: false)
Description: Enable audio and visual alerts before session opens
When enabled, MarketTime will trigger an alert (sound and pop-up notification) before major trading sessions open, giving you advance warning to prepare for increased volatility and trading opportunities.
8.2 Alert Timing
InpAlertMinutesBefore = 5 (Default: 5)
Range: 1 to 60
Description: How many minutes before session open to trigger the alert
This sets how much advance notice you receive. The default of 5 minutes gives you time to review your trading plan, check for news, and prepare orders before the session opens and volatility potentially increases.
Alert Configuration Examples:
Conservative (More Preparation Time):
InpAlertOnSession = true
InpAlertMinutesBefore = 15
Standard (Quick Preparation):
InpAlertOnSession = true
InpAlertMinutesBefore = 5
Disabled (No Alerts):
InpAlertOnSession = false
Important: Alerts will trigger for each session that has countdown enabled (London, New York, Asia). If you have all three countdown enabled and alerts enabled, you'll receive three separate alerts per day. To reduce alert frequency, disable countdowns for sessions you don't actively trade.
Part 9: Configuration Examples for Different Trading Styles
9.1 Scalper Configuration (M1-M5 Charts)
Scalpers need precise timing, high visibility of active sessions, and minimal historical zone clutter:
Panel Settings:
InpPanelX = 20
InpPanelY = 50
InpStartCollapsed = false
Time Display:
InpTimeFormat = TIME_FORMAT_24H
InpShowSeconds = true (precise timing needed)
InpShowLocalTime = true
InpShowBrokerTime = true
InpShowLondonTime = true
InpShowNewYorkTime = true
InpShowTokyoTime = false (disable if not trading Asian session)
Session Countdowns:
InpShowLondonCountdown = true
InpShowNYCountdown = true
InpShowAsiaCountdown = false
Session Zones:
InpDrawSessionZones = true
InpDrawOverlapZone = true (critical for scalpers - highest liquidity)
InpZoneTransparency = 90 (very subtle, won't interfere with price action)
InpZoneDaysToShow = 2 (only recent zones, keep chart clean)
Additional Features:
InpShowSpread = true (very important for scalpers)
InpShowServerPing = true (monitor execution speed)
InpAlertOnSession = true
InpAlertMinutesBefore = 5
9.2 Day Trader Configuration (M15-H1 Charts)
Day traders need balanced information with clear session visibility:
Panel Settings:
InpPanelX = 20
InpPanelY = 50
InpStartCollapsed = false
Time Display:
InpTimeFormat = TIME_FORMAT_24H
InpShowSeconds = true
InpShowLocalTime = true
InpShowBrokerTime = true
InpShowLondonTime = true
InpShowNewYorkTime = true
InpShowTokyoTime = true
Session Countdowns:
InpShowLondonCountdown = true
InpShowNYCountdown = true
InpShowAsiaCountdown = true
Session Zones:
InpDrawSessionZones = true
InpDrawLondonZone = true
InpDrawNewYorkZone = true
InpDrawAsiaZone = true
InpDrawOverlapZone = true
InpZoneTransparency = 85 (default, good visibility)
InpZoneDaysToShow = 5 (see full week of patterns)
Additional Features:
InpShowSpread = true
InpShowMarketStatus = true
InpShowDayOfWeek = true
InpAlertOnSession = true
InpAlertMinutesBefore = 10
9.3 Swing Trader Configuration (H4-D1 Charts)
Swing traders need less frequent updates and more historical context:
Panel Settings:
InpPanelX = 20
InpPanelY = 50
InpStartCollapsed = true (start minimized, expand when needed)
Time Display:
InpTimeFormat = TIME_FORMAT_24H
InpShowSeconds = false (not critical for swing trading)
InpShowLocalTime = true
InpShowBrokerTime = true
InpShowLondonTime = false
InpShowNewYorkTime = false
InpShowTokyoTime = false
Session Countdowns:
InpShowLondonCountdown = false
InpShowNYCountdown = false
InpShowAsiaCountdown = false
Session Zones:
InpDrawSessionZones = true
InpDrawLondonZone = true
InpDrawNewYorkZone = true
InpDrawAsiaZone = false (less relevant for higher timeframes)
InpDrawOverlapZone = true
InpZoneTransparency = 80
InpZoneDaysToShow = 15 (see multiple weeks)
Additional Features:
InpShowSymbolInfo = true
InpShowDayOfWeek = true
InpShowMarketStatus = true
InpShowSpread = false
InpAlertOnSession = false
9.4 Minimal Clean Chart Configuration
For traders who want time information but minimal visual elements:
Panel Settings:
InpStartCollapsed = true (start collapsed)
Time Display:
InpShowLocalTime = true
InpShowBrokerTime = true
InpShowLondonTime = false
InpShowNewYorkTime = false
InpShowTokyoTime = false
Session Countdowns:
InpShowLondonCountdown = false
InpShowNYCountdown = false
InpShowAsiaCountdown = false
Session Zones:
InpDrawSessionZones = false (no zones on chart)
Additional Features:
InpShowSymbolInfo = true
InpShowDayOfWeek = true
All other features = false
Part 10: Advanced Usage Tips and Best Practices
10.1 Optimizing Panel Position
For Multi-Monitor Setups: Position the panel in a consistent location across all chart windows so you can quickly reference time without searching for the panel.
For Single Monitor: Place the panel in a corner that doesn't interfere with price action viewing. Upper-left or upper-right corners work well for most traders.
Draggable Feature: Remember you can click and drag the panel after it loads. The InpPanelX and InpPanelY values are just starting positions.
10.2 Color Scheme Coordination
Match your MarketTime colors to your overall chart theme for a cohesive professional appearance:
- If you use blue candles, consider blue tones for the panel
- If you have a dark chart background, use lighter text colors for better readability
- Make session zone colors distinct from your indicator colors to avoid confusion
- Use the InpSessionActiveColor strategically - this color draws attention to active sessions
10.3 Session Time Customization Strategy
The default session times are standard, but you can customize them based on your trading approach:
For News Traders: Set session opens to coincide with major news release times (e.g., 8:30 AM EST for US news).
For Liquidity Hunters: Focus on the London-New York overlap (13:30-16:30 GMT) by adjusting zone times to highlight this specific period more prominently.
For Asian Market Specialists: Extend Asia session times to cover Sydney open through Tokyo close (23:00 GMT to 10:00 GMT).
10.4 Multiple Chart Instances
You can have different MarketTime configurations on different charts:
- Chart 1 (Primary): Full panel with all features enabled
- Chart 2-4: Collapsed panels (InpStartCollapsed = true) showing only session zones
- Analysis Chart: No panel, only session zones for visual context
Each chart's MarketTime instance is independent, so customize each one for its specific purpose.
10.5 Session Zone Interpretation
Use session zones to identify patterns in price behavior:
- Breakouts: Often occur at session opens when fresh liquidity enters
- Reversals: Watch for exhaustion near session closes
- Range Trading: Asia session often shows ranging behavior for certain pairs
- Trend Continuation: London and New York sessions often see directional moves
- Overlap Periods: Highest volume, best for momentum strategies
10.6 Spread Monitoring for Entry Timing
If you have InpShowSpread enabled, watch for:
- Spread spikes during news: Avoid entries during abnormally high spreads
- Lower spreads during overlaps: Optimal entry times for cost-conscious traders
- Weekend spread widening: Be aware spreads widen significantly on Friday close and Sunday open
10.7 Alert System Strategy
Configure alerts based on your availability and strategy:
Full-Time Traders: Use 5-10 minute alerts for session opens you actively trade.
Part-Time Traders: Set longer alerts (15-30 minutes) to give yourself time to reach your trading station.
Multiple Session Traders: Enable alerts for all three sessions.
Specialized Traders: Only enable alerts for your specific session (e.g., only London if you're a European morning trader).
10.8 Performance Optimization
If you notice any performance issues (rare, but possible on very low-end systems or very fast charts):
- Reduce InpZoneDaysToShow (fewer zones = less drawing)
- Disable InpShowSeconds (fewer panel updates)
- Disable InpShowServerPing (eliminates network checks)
- Use TIME_FORMAT_24H instead of 12H (slightly less formatting)
- Set InpStartCollapsed = true to minimize panel updates when you don't need them
Part 11: Troubleshooting and Common Questions
11.1 Panel Not Visible
Issue: After attaching indicator, panel doesn't appear on chart.
Solutions:
- Check if InpPanelX and InpPanelY values are beyond your screen resolution - try resetting to 20 and 50
- Make sure you're looking at the correct chart window where you attached the indicator
- Try removing the indicator and re-attaching it
- Check if the panel is collapsed (look for a small header at the position) - click to expand
11.2 Session Times Don't Match My Broker
Issue: Session zones appear at different times than expected.
Explanation: All session times are configured in GMT, but the zones are drawn in your broker's server time. Your broker might be GMT+2, GMT+3, or a different offset.
Solution: The zones ARE correct for your broker - they're automatically converted. If you want to verify, check what time it is in GMT when a session opens, and confirm that matches your configured InpLondonOpenHour, etc.
11.3 Colors Don't Match My Preferences
Issue: Default colors don't work with my chart theme.
Solution: All colors are fully customizable. See Part 2.2 for color customization options. Use C'R,G,B' format where R, G, B are values 0-255.
11.4 Too Much Information Displayed
Issue: Panel is too large/cluttered with information I don't need.
Solution: Every display element can be disabled independently. Review Parts 3-7 and set any Inp...Show... parameter to false to hide that information. For example, set InpShowTokyoTime = false if you don't trade Asian sessions.
11.5 Session Zones Overlap and Create Confusing Colors
Issue: When multiple session zones overlap, colors blend in confusing ways.
Solution: Either increase InpZoneTransparency to make zones more subtle (90-95), or disable individual zones you don't need. Alternatively, disable InpDrawOverlapZone and rely on seeing the individual session zones side by side.
11.6 Alerts Not Triggering
Issue: InpAlertOnSession is enabled but no alerts appear.
Solutions:
- Make sure at least one session countdown is enabled (InpShowLondonCountdown, InpShowNYCountdown, or InpShowAsiaCountdown)
- Check MetaTrader alert settings - ensure alerts are not disabled globally
- Verify the session open time hasn't already passed for today
- Alerts trigger InpAlertMinutesBefore the session opens, not at the exact open time
11.7 Custom Timezone Not Displaying Correctly
Issue: Custom timezone shows wrong time.
Solution: Verify you selected the correct TZ_UTC_... value. Remember that TZ_UTC_P530 is UTC+5:30 (India), and TZ_UTC_P930 is UTC+9:30 (Australia) - these special half-hour zones use different enum values.
11.8 Symbol Shows Always Closed
Issue: Symbol status shows CLOSED even during trading hours.
Possible Causes:
- Symbol genuinely has restricted trading hours (check with your broker)
- Symbol may be suspended or delisted
- Your account may not have permission to trade this symbol
- Broker may have specific maintenance schedules
Solution: Verify the symbol's trading schedule with your broker. The indicator displays information provided by the broker server - it doesn't create or modify this data.
Conclusion: Getting the Most from MarketTime
MarketTime is designed to be your comprehensive time and session awareness tool for MetaTrader 5. By displaying multiple time zones, providing live session countdowns, showing symbol trading hours, and drawing visual session zones on your charts, it eliminates the need for external tools and gives you all time-critical information at a glance.
Key Benefits Recap:
- Multi-timezone awareness: Never miss a trading opportunity because you didn't know what time it was in London, New York, or Tokyo
- Session timing precision: Live countdowns tell you exactly when sessions open, close, and overlap
- Visual session zones: Instantly identify which session drove any price movement on your chart
- Symbol status monitoring: Know whether your symbol is tradable right now, and when it opens next
- Fully customizable: Every color, font, position, and displayed element can be tailored to your preferences
- Performance optimized: Lightweight code that won't slow down your charts
- Professional presentation: Clean, modern interface that looks professional on any chart
Whether you're a scalper who needs split-second timing awareness, a day trader planning around session opens, or a swing trader monitoring weekly market cycles, MarketTime provides the temporal context you need to trade confidently and effectively.
Recommended Starting Point: Use the default settings initially to get familiar with all features, then customize based on your trading style using the configuration examples in Part 9. Most traders find the "Day Trader Configuration" works well as a balanced starting point, then adjust from there.
Remember: The indicator is fully interactive - you can always drag the panel to reposition it, click to collapse/expand it, and adjust any settings by opening the indicator properties (right-click on chart → Indicators List → MarketTime → Properties).
Need Help?
If you have questions, suggestions, or need assistance with MarketTime, please join our MQL5 community group where you can connect with other users, share configurations, and get support:
MQL5 Community Group: Join Here
You can also contact me directly through MQL5 messaging for technical support or feature requests:
Direct Support: Contact via MQL5
For more professional trading tools and indicators, check out my other products:
More Products: View All Products
Disclaimer
MarketTime is an informational tool that displays time and session data. It does not provide trading signals, strategy recommendations, or investment advice. All trading decisions remain your responsibility. Past performance does not guarantee future results. Trading forex and CFDs carries significant risk of loss and may not be suitable for all investors. Please ensure you understand the risks involved and seek independent financial advice if necessary.
The accuracy of time displays, session information, and symbol trading hours depends on data provided by your broker's server. While MarketTime processes and displays this information accurately, the underlying data quality is determined by your broker. Always verify critical timing information with your broker when necessary.
Session zone drawing is a visual aid for identifying market sessions and does not constitute a trading strategy or guarantee of profitability. The indicator does not predict price movements or guarantee trading success.


