Free indicator: Trading Session Clocks and Countdown MT5 in the MQL5 Market.
Version 1.00 · MetaTrader 5 · free indicator
Trading Session Clocks and Countdown puts a small panel in a corner of the chart:
Trading Sessions UTC 14:20:00 - Sydney 01:20 opens in 5:40:00 Tokyo 23:20 opens in 9:40:00 London 14:20 closes in 2:40:00 New York 10:20 closes in 6:40:00 Forex market closes in 2d 06:40:00 London/NY overlap ends in 2:40:00 Next London closes 2:40:00 Daylight saving EU in 10 days Server 17:20:00 UTC+3 detected
- Each city: its local time, and the time left until the session opens (grey) or closes (green).
- Forex market: open or closed, and the time left to the weekly close (Friday 17:00 New York) or the weekly open (Sunday 17:00 New York).
- London/NY overlap: when the two sessions are open together, the time left until it starts or ends, and its length (3, 4 or 5 hours, depending on the daylight saving of each city).
- Next: the next open or close of any session.
- Daylight saving: which rule changes next (US, EU or AU) and when.
- Server: the server time and how far it is from UTC.
It does not trade and gives no signals. It changes nothing outside the chart it is attached to, except that the terminal keeps two small global variables for it (the minimized state and the last alert, see sections 2 and 5). The panel and its labels are in English in every language of the terminal.
1. Installing
- Download the indicator from the MQL5 Market from inside MetaTrader 5 (Navigator -> Market; free products are listed there too), or from the product page.
- In the Navigator, open Indicators (Market products are listed there, sometimes inside a Market folder) and drag Trading Session Clocks and Countdown onto a chart.
- Change the inputs you want in the Inputs tab and press OK.
To remove it: right-click the chart -> Indicators List -> select it -> Delete. The panel is removed with it.
2. Minimizing the panel
You look at the sessions when you start trading and now and then during the day, so the panel can be minimized.
- Click the title, the - button at the right of the title, the clock, or the panel itself: the panel shrinks to a single line with the title and the next open or close, for example Sydney opens 33:42 .
- Click again (the title or the + button) to open it.
- The choice is remembered, also after restarting the platform. It is kept in a terminal global variable ( TSC_minimized ), so a chart that already shows the panel changes only when the indicator is loaded again on it (a new chart, a timeframe change, a restart); clicking in one chart does not change the others at once. Start with the panel minimized ( StartMinimized ) sets only the very first start.
3. How the sessions are worked out
- Hours are local. By default: Sydney 07:00-16:00, Tokyo 09:00-18:00, London 08:00-17:00 and New York 08:00-17:00, Monday to Friday, in each city's own time. They move with the daylight saving of each city, as the real ones do. You can change any hour in the inputs.
- Daylight saving rules. United States: second Sunday of March to first Sunday of November. European Union (and London): last Sunday of March to last Sunday of October. Australia (Sydney): first Sunday of October to first Sunday of April. Tokyo has none. The rules are the current ones; if a country changes them, the indicator does not know.
- A session counts as open only while the forex market is open (Sunday 17:00 to Friday 17:00 New York time).
- The hours are the usual ones of the forex sessions, not an official schedule of any exchange. The panel does not show the opening hours of stock markets, futures or the 24-hour trading of crypto, and it knows no holidays: on Christmas or New Year a session can show as open.
4. The server clock and UTC
The panel needs the real UTC time. It takes it from the clock of your PC. With Automatic ( ServerClock ), the indicator compares the server time with the PC clock and shows the result in the last row: UTC+2 detected .
- detected: the difference was read and is a whole number of quarter hours, as real time zones are.
- assumed: the difference could not be used (for example, the PC clock is far off, or in MetaTrader 4 no recent tick has arrived), so the panel assumes the usual one: server UTC+2 in winter and UTC+3 in summer, following US daylight saving, as most brokers do. The word appears in the warning colour.
The server difference is shown only in the Server row: the session times and countdowns above come from the UTC time of your PC clock and do not depend on ServerClock .
- rule: you chose a rule (US or EU daylight saving, or a fixed offset) in ServerClock .
If your PC clock is wrong by minutes, every time in the panel is off by the same amount; keep it synchronized, and check the time zone and daylight saving setting of your PC.
In MetaTrader 5 the server offset is read every second.
5. Alert
Alert N minutes before a session opens ( AlertMinutes ): a pop-up shortly before each shown session opens, once per opening, even if you have the indicator on several charts or reload it (the last alert is kept in a terminal global variable). Set it to 0 to turn it off. It does not work in the Strategy Tester.
6. All the inputs
Sessions (hours are local time of each city)
| Input | Default | What it does |
|---|---|---|
| ShowSydney | true | Shows the Sydney row. |
| SydneyOpen / SydneyClose | 7 / 16 | Opening and closing hour of Sydney, in Sydney local time (0-23). |
| ShowTokyo | true | Shows the Tokyo row. |
| TokyoOpen / TokyoClose | 9 / 18 | Opening and closing hour of Tokyo, in Tokyo local time. |
| ShowLondon | true | Shows the London row. |
| LondonOpen / LondonClose | 8 / 17 | Opening and closing hour of London, in London local time. |
| ShowNewYork | true | Shows the New York row. |
| NewYorkOpen / NewYorkClose | 8 / 17 | Opening and closing hour of New York, in New York local time. |
Rows
| Input | Default | What it does |
|---|---|---|
| ShowForex | true | Forex market row: open or closed, and the time left to the weekly close or open. |
| ShowOverlap | true | London and New York overlap row, with its length in hours. |
| ShowNext | true | The next open or close of any session. |
| ShowClockChange | true | Time left to the next daylight saving change (US, EU or AU). |
| ShowServer | true | Server time and its offset from UTC. |
| ShowLocal | false | Time of this PC and its offset from UTC. |
| Use24Hour | true | 24-hour clock; off: AM / PM. |
| StartMinimized | false | Start with the panel minimized. Afterwards the last choice you made with a click is remembered. |
Server clock
| Input | Default | What it does |
|---|---|---|
| ServerClock | Automatic (from the PC clock) | How the server's offset from UTC is found: automatic, following US daylight saving, following EU daylight saving, or a fixed offset. |
| FixedOffset | 2 | The fixed offset in hours (-12 to 14), used only when ServerClock is the fixed offset. |
Alert
| Input | Default | What it does |
|---|---|---|
| AlertMinutes | 0 | Pop-up alert this many minutes before a session opens (0 = off), once per opening. |
Look
| Input | Default | What it does |
|---|---|---|
| Corner | Left upper chart corner | Corner of the chart. |
| OffsetX / OffsetY | 12 / 24 | Distance from the side and from the top or bottom, in pixels. |
| FontFace | Consolas | Font of the times and values: Consolas, Segoe UI, Arial or Calibri. |
| FontSize | 10 | Panel font size (6-24). |
| AccentColor | none | Colour of the title (none = automatic, amber). |
| OpenColor | none | Colour of an open session (none = automatic, green). |
| WarnColor | OrangeRed | Colour of warnings, such as an assumed server offset. |
7. Troubleshooting
- The panel does not appear. Check that the indicator is in the chart's Indicators List. Make the chart wider: the panel is about 42 characters wide.
- The session times are one hour off. They come from the UTC time of your PC: check its time zone and its daylight saving setting. ServerClock does not change them.
- The Server row says assumed or shows the wrong offset. Set ServerClock to the rule your broker follows, or to a fixed offset.
- A session shows "--". The panel found no open or close in the next 10 days.
- Two copies on the same chart. Use one copy per chart: both would draw on the same objects.
- It overlaps something I use. Choose another corner, set the distances, or minimize it.
- Crypto or a stock index shows the forex market closed on the weekend. The panel follows the forex week; it says nothing about the symbol on the chart.
8. Frequently asked questions
Does it trade or give signals? No.
Does it use the internet? No. No DLL, no web requests, no files written. It only keeps a few global variables of the terminal (minimized state, last alert).
Does it work on any symbol and timeframe? Yes: the sessions do not depend on the symbol or the timeframe.
Does it slow the platform? It refreshes at most about once a second and redraws only what changed. Its consumption has not been measured separately.
Why does the Strategy Tester show "rule"? The tester has no real UTC time; there the panel uses the rule chosen in ServerClock .


