OPEN-SOURCE SCRIPT
Updated GMS Session Rays (Sydney/Asia/London/NY)

A lightweight Pine v6 indicator that plots the previous completed session’s High and Low for the four major sessions—Sydney, Asia, London, New York—so you always see the most actionable structure levels without chart clutter. Lines auto-update at the end of each session and extend right as horizontal rays. Labels are clean, stack automatically to avoid overlap, and can be placed on the left or right side of the chart.
What it shows
Previous session High/Low for each enabled session (not the current live session).
Right-extended rays at those prices, updated when the session closes.
Optional labels per session (e.g., “sydney high”, “london low”), with auto-stacking to prevent overlaps.
Customization
Per-session toggles: show/hide each session; show/hide labels per session.
Style controls: color, width, and line style (Solid/Dotted/Dashed) per session.
Label controls: global on/off, Left/Right placement, bars offset, Y-offset (in ticks), size (Tiny/Small/Normal), auto-stacking with adjustable step.
Session windows: editable HHMM-HHMM for Sydney/Asia/London/NY.
Timezone: set a single indicator timezone (default America/New_York).
Only Today mode: clears older rays daily to keep charts minimal.
How it works (under the hood)
Tracks High/Low only while a session is active; when it ends, those values are frozen and plotted as the previous session levels.
What it shows
Previous session High/Low for each enabled session (not the current live session).
Right-extended rays at those prices, updated when the session closes.
Optional labels per session (e.g., “sydney high”, “london low”), with auto-stacking to prevent overlaps.
Customization
Per-session toggles: show/hide each session; show/hide labels per session.
Style controls: color, width, and line style (Solid/Dotted/Dashed) per session.
Label controls: global on/off, Left/Right placement, bars offset, Y-offset (in ticks), size (Tiny/Small/Normal), auto-stacking with adjustable step.
Session windows: editable HHMM-HHMM for Sydney/Asia/London/NY.
Timezone: set a single indicator timezone (default America/New_York).
Only Today mode: clears older rays daily to keep charts minimal.
How it works (under the hood)
Tracks High/Low only while a session is active; when it ends, those values are frozen and plotted as the previous session levels.
Release Notes
**Session Rays – Previous Session Highs and Lows**A lightweight Pine Script v6 indicator that plots the **most recently completed session’s high and low** for the four major trading sessions: Sydney, Asia, London, and New York.
The indicator is designed to keep important session liquidity and structure levels visible without filling the chart with historical lines. Each level extends to the right as a horizontal ray and remains fixed until a newer session is completed.
## What It Shows
* The high and low of the most recently completed Sydney session.
* The high and low of the most recently completed Asia session.
* The high and low of the most recently completed London session.
* The high and low of the most recently completed New York session.
* Right-extended horizontal rays at each completed session level.
* Optional labels such as “asia high,” “london low,” and “new york high.”
The indicator does **not** plot the developing high and low of the current active session.
## Updated Session Behavior
When a new session begins, the previous completed session’s high and low remain visible.
For example, when the new Asia session opens, the previous Asia high and low do not disappear. They remain on the chart because they may still act as:
* Liquidity targets
* Sweep or breakout levels
* Support and resistance references
* Range-expansion reference points
* Potential entry, reaction, or exit locations
While the new session is active, its developing high and low are tracked internally but are not displayed.
Once the active session closes, its completed high and low replace the older levels and become the new previous-session levels.
### Example
If the Asia session runs from 8:00 PM to 5:00 AM:
* At 8:00 PM, the previous Asia high and low remain visible.
* From 8:00 PM to 5:00 AM, the new Asia range develops in the background.
* After 5:00 AM, the completed Asia high and low replace the older Asia levels.
This behavior applies independently to Sydney, Asia, London, and New York.
## Customization
### Per-Session Controls
* Show or hide each session.
* Show or hide the previous-session levels.
* Show or hide labels for each session.
* Choose separate high and low colors.
* Adjust line width.
* Select Solid, Dotted, or Dashed line styles.
### Label Controls
* Global label on/off setting.
* Place labels on the left or right side of the chart.
* Adjust the horizontal bar offset.
* Adjust the vertical offset in ticks.
* Select Tiny, Small, or Normal label size.
### Session and Time Controls
* Edit each session window using the HHMM-HHMM format.
* Select one timezone for all session calculations.
* Default timezone: America/New_York.
* Enable “Only Show Today” to remove older displayed levels at the start of a new calendar day.
Session times are manually adjustable. Traders should verify that the selected session windows match their preferred definitions and daylight-saving-time schedule.
## How It Works
The indicator tracks price only while each configured session is active.
When the session closes:
1. The session high and low are finalized.
2. The completed values are stored.
3. The older rays are removed.
4. The newly completed high and low are plotted.
5. The new levels extend to the right until the next session is completed.
This creates a clean view of the most recent completed session levels while preserving the liquidity references that may still influence price during the following session.
Release Notes
A lightweight Pine v6 indicator that plots the previous completed session’s High and Low for the four major sessions—Sydney, Asia, London, New York—so you always see the most actionable structure levels without chart clutter. Lines auto-update at the end of each session and extend right as horizontal rays. Labels are clean, stack automatically to avoid overlap, and can be placed on the left or right side of the chart.What it shows
Previous session High/Low for each enabled session (not the current live session).
Right-extended rays at those prices, updated when the session closes.
Optional labels per session (e.g., “sydney high”, “london low”), with auto-stacking to prevent overlaps.
Customization
Per-session toggles: show/hide each session; show/hide labels per session.
Style controls: color, width, and line style (Solid/Dotted/Dashed) per session.
Label controls: global on/off, Left/Right placement, bars offset, Y-offset (in ticks), size (Tiny/Small/Normal), auto-stacking with adjustable step.
Session windows: editable HHMM-HHMM for Sydney/Asia/London/NY.
Timezone: set a single indicator timezone (default America/New_York).
Only Today mode: clears older rays daily to keep charts minimal.
How it works (under the hood)
Tracks High/Low only while a session is active; when it ends, those values are frozen and plotted as the previous session levels.
10 hours ago
Release Notes
**Session Rays – Previous Session Highs and Lows**
A lightweight Pine Script v6 indicator that plots the **most recently completed session’s high and low** for the four major trading sessions: Sydney, Asia, London, and New York.
The indicator is designed to keep important session liquidity and structure levels visible without filling the chart with historical lines. Each level extends to the right as a horizontal ray and remains fixed until a newer session is completed.
## What It Shows
* The high and low of the most recently completed Sydney session.
* The high and low of the most recently completed Asia session.
* The high and low of the most recently completed London session.
* The high and low of the most recently completed New York session.
* Right-extended horizontal rays at each completed session level.
* Optional labels such as “asia high,” “london low,” and “new york high.”
The indicator does **not** plot the developing high and low of the current active session.
## Updated Session Behavior
When a new session begins, the previous completed session’s high and low remain visible.
For example, when the new Asia session opens, the previous Asia high and low do not disappear. They remain on the chart because they may still act as:
* Liquidity targets
* Sweep or breakout levels
* Support and resistance references
* Range-expansion reference points
* Potential entry, reaction, or exit locations
While the new session is active, its developing high and low are tracked internally but are not displayed.
Once the active session closes, its completed high and low replace the older levels and become the new previous-session levels.
### Example
If the Asia session runs from 8:00 PM to 5:00 AM:
* At 8:00 PM, the previous Asia high and low remain visible.
* From 8:00 PM to 5:00 AM, the new Asia range develops in the background.
* After 5:00 AM, the completed Asia high and low replace the older Asia levels.
This behavior applies independently to Sydney, Asia, London, and New York.
## Customization
### Per-Session Controls
* Show or hide each session.
* Show or hide the previous-session levels.
* Show or hide labels for each session.
* Choose separate high and low colors.
* Adjust line width.
* Select Solid, Dotted, or Dashed line styles.
### Label Controls
* Global label on/off setting.
* Place labels on the left or right side of the chart.
* Adjust the horizontal bar offset.
* Adjust the vertical offset in ticks.
* Select Tiny, Small, or Normal label size.
### Session and Time Controls
* Edit each session window using the HHMM-HHMM format.
* Select one timezone for all session calculations.
* Default timezone: America/New_York.
* Enable “Only Show Today” to remove older displayed levels at the start of a new calendar day.
Session times are manually adjustable. Traders should verify that the selected session windows match their preferred definitions and daylight-saving-time schedule.
## How It Works
The indicator tracks price only while each configured session is active.
When the session closes:
1. The session high and low are finalized.
2. The completed values are stored.
3. The older rays are removed.
4. The newly completed high and low are plotted.
5. The new levels extend to the right until the next session is completed.
This creates a clean view of the most recent completed session levels while preserving the liquidity references that may still influence price during the following session.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.