- Product type
- Indicator
- Platforms
- MT4 · MT5
- Market / symbol
- Gold, FX majors, FX minors, Indices, Crypto, Oil
- Experience level
- Beginner
- Delivery
- File download from your dashboard
- Last update
- November 30, 2026
- Broker
- Any broker
- Product type
- Indicator
- Platforms
- MT4 · MT5
- Market / symbol
- Gold, FX majors, FX minors, Indices, Crypto, Oil
- Experience level
- Beginner
- Delivery
- File download from your dashboard
- Last update
- November 30, 2026
- Broker
- Any broker
Overview
Trading Session Time marks a time window you define on the chart: the London session, the New York open or whatever hours you trade. You give it a start and an end time and it shows that window on past days and today.
Each instance of the indicator shows one session. For several sessions you add it to the chart several times with different names and colours.
- Three display modes: a vertical line at the start, a box from the session high to low, or coloured session candles
- Choose which weekdays are shown
- Write the session name and its range in points above it
- Draw lines for sessions on coming days
- Start and end alerts in the terminal, on your phone, by email or by sound
The indicator gives no buy or sell signals. Its job is to keep the important hours in view so you can compare how price behaves in each session.
Source and licence
This tool is the open-source project Trading Session Time by EarnForex.com, released under the Apache 2.0 licence. The source code is included in the download unchanged, with the licence text next to it. TradeKit provides the description, install guide and support. Original repository: github.com/EarnForex/Trading-Session-Time
Strategy logic
Display mode
- If
TimeLineEndis empty, a vertical line is drawn at the start time. - If you give an end time, a box is drawn from start to end, as tall as the highest and lowest price in that window.
- If
DrawCandlesis on, the candles inside the window are coloured.
Times
- Times are in broker server time (chart time), not your local time.
- If the end time is earlier than the start, the session runs into the next day, for example 2200 to 0600.
- Only the enabled weekdays are drawn, looking back up to
BarsToScanbars.
Label and alerts
- With
ShowRangethe session’s high-to-low distance in points is added to the label and, for the current session, updated as price moves. - An alert fires when the first candle at or past the start or end time opens, so its precision depends on the chart timeframe.
Specifications
Requirements
- MetaTrader 4 or 5
- A timeframe below daily; hourly windows mean nothing on D1 and above
- Knowing the offset between your broker’s server time and the session you want
- No cTrader version
- Platforms
- MT4MT5
- Delivery
- Use case
- Scalping، News trading، Swing
- Market
- Gold، FX majors، FX minors، Indices، Crypto، Oil
- Experience level
- Beginner
Compatible brokers
Which brokers this product works with, and which it works best with.
No broker restriction: it works with any broker that offers the product's platform.
The broker choice is yours; TradeKit is not a broker. Check account terms before depositing. All brokers
Input parameters
| Parameter | Default | Description |
|---|---|---|
IndicatorNameName of this instance; give each one a different name when you add several sessions to a chart |
MQLTA-TST |
Name of this instance; give each one a different name when you add several sessions to a chart |
TimeLineStartSession start in server time, HHMM (24-hour) |
0000 |
Session start in server time, HHMM (24-hour) |
TimeLineEndSession end; if left empty only a vertical start line is drawn |
|
Session end; if left empty only a vertical start line is drawn |
DrawCandlesColour the candles inside the session instead of drawing a line or box |
false |
Colour the candles inside the session instead of drawing a line or box |
ShowMondayShow the session on Mondays; each weekday has its own input (Saturday and Sunday off by default) |
true |
Show the session on Mondays; each weekday has its own input (Saturday and Sunday off by default) |
BarsToScanMaximum number of past bars to scan (0 means no limit) |
1000 |
Maximum number of past bars to scan (0 means no limit) |
ShowFutureSessionAlso draw lines for sessions on coming days |
true |
Also draw lines for sessions on coming days |
SessionLabelText written above the session, such as London |
|
Text written above the session, such as London |
ShowRangeShow the session’s high-to-low range in points |
false |
Show the session’s high-to-low range in points |
NotifyOnSessionStartAlert when the session starts |
false |
Alert when the session starts |
NotifyOnSessionEndAlert when the session ends |
false |
Alert when the session ends |
AreaFillColorFill colour of the session box; the outline uses AreaBorderColor |
clrSlateGray |
Fill colour of the session box; the outline uses AreaBorderColor |
Install guide
- Unzip the download. It contains an
MQL4orMQL5folder. - In MetaTrader choose File › Open Data Folder and copy the folder’s contents into the folder of the same name.
- Restart the terminal or right-click in Navigator and choose Refresh. MetaTrader compiles the source on its own.
- Under Indicators drag “MQLTA MT4 Trading Session Time” (or MT5) onto a chart.
- Enter the start and end in server time. For a second session add the indicator again with a different
IndicatorNameand colour.
Changelog
-
v1.05 MT4 New November 30, 2026
- Published on TradeKit
-
v1.05 MT5 November 30, 2026
- Published on TradeKit
Buyer reviews
No reviews yet.
Only verified buyers can review. Reviews are moderated before publishing.
Only verified buyers can review. Reviews are moderated before publishing.
Sign in to write a reviewFAQ
Are London and New York built in?
How do I show several sessions at once?
Do I need to do anything when daylight saving changes?
How do I change the candle colours in DrawCandles mode?
Does the alert arrive exactly on time?
Related products
More Indicators and tools from the same family
Risk warning