Trading Sessions Pro Indicator for TradingView
Trading Sessions Pro draws the Sydney, Tokyo, London and New York sessions on your TradingView chart. Each session gets a live high and low box, an open line and a range reading, and the previous session’s high and low stay on the chart until price takes them out.
It is free, made completely by Hamro Forex, and written in Pine Script v6. Download the file or copy the code, paste it into the Pine Editor and add it to your chart.
- Platform
- TradingView
- Language
- Pine Script v6
- Timeframes
- Intraday, 1m to 4H
- Sessions
- Sydney, Tokyo, London, New York
- Alerts
- 10 alert conditions
- Price
- Free
What you get on the chart
Session boxes
A box for each session that follows the live high and low, with the session name and its range in the label.
Open, mid and start lines
A dotted line at the session open price. You can also switch on a 50% mid line and a vertical line at the session start.
Previous session levels
The last session’s high and low extend to the right as dashed lines and stop once price sweeps them.
Info table
Status, time until the session ends or opens, current range, average range, percent change and volume for every session.
Alerts
Open and close alerts for all four sessions, plus alerts when a previous session high or low is swept.
Automatic daylight saving
Hours are set in each market’s own timezone, so the boxes move correctly when the clocks change.
Default session hours
| Session | Local hours | Timezone |
|---|---|---|
| Sydney | 08:00 to 17:00 | Australia/Sydney |
| Tokyo | 09:00 to 18:00 | Asia/Tokyo |
| London | 08:00 to 17:00 | Europe/London |
| New York | 08:00 to 17:00 | America/New_York |
The hours and timezones can be changed in the indicator settings. For US stock cash hours, set New York to 0930-1600.
How to add it to TradingView
- Download the .pine file and open it in any text editor, or press Copy Code at the top of this page.
- Open a chart on TradingView and choose an intraday timeframe such as 15m or 1H.
- Open the Pine Editor from the bottom panel, select the default code and delete it.
- Paste the indicator code, click Save and name it Trading Sessions Pro.
- Click Add to chart. Use the gear icon on the indicator to change sessions, colours and the table.
Settings
| Group | What you can change |
|---|---|
| General | Range units (Auto, Price, Pips, Ticks or Percent), box transparency, labels, open line, mid line and vertical start line. |
| Previous Session Levels | Show or hide the extended high and low lines, and choose whether a line stops when price sweeps it. |
| Info Table | Show or hide the table, its position and text size, the average range lookback (1 to 100 sessions) and the clock timezone. |
| Each session | Show or hide it, its colour, its local hours and its timezone. |
Auto units show pips on forex symbols and price units on everything else. Pips assume 1 pip equals 10 ticks, the standard for 5 and 3 digit forex pairs.
Alerts
Open the Alerts panel on TradingView, set the condition to Sessions Pro and pick one of these.
| Type | Alert conditions |
|---|---|
| Session open | Sydney Open, Tokyo Open, London Open, New York Open |
| Session close | Sydney Close, Tokyo Close, London Close, New York Close |
| Sweep | Prev Session High Swept, Prev Session Low Swept |
Good to know
- The indicator works on intraday timeframes only. On daily and higher timeframes the table shows a message and no boxes are drawn.
- Set Clock Timezone in the Info Table group to Asia/Kathmandu to show Nepal time in the table footer. The session boxes are not affected by this setting.
- A small Hamroforex.com label appears in the top right corner of the chart.
Indicators describe past price behaviour and do not predict it. Nothing on this page is financial advice. Read the full disclaimer.
Source code
Read the full Pine Script before you add it to your chart.
Show the code
Loading the code...
Found a bug or want a feature added? Tell us and we will look at it.
Report a Problem