OPEN-SOURCE SCRIPT
ที่อัปเดต: 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 Note
**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 Note
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.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน