OPEN-SOURCE SCRIPT
Asian, UK & NY SessionTimes and Day Highs and Lows

What It Does
The Asian, UK & NY Sessions indicator automatically identifies and highlights the three major global trading sessions on your chart.
For each session, it:
Detects session time in its local timezone.
Tracks the session’s highest and lowest prices.
Plots colored horizontal lines to show those levels throughout the trading day.
Optionally shades each session’s background in its signature color for instant visual context:
🟡 Asian Session: Yellow background
🔴 London Session: Red background
🔵 New York Session: Blue background
This helps traders see how price reacts within and between sessions — spotting overlaps, liquidity zones, and daily ranges.
⚙️ Inputs and Variables
Input Description
Extend lines until next session start (extendLines) Extends each session’s high/low lines forward until the next session begins.
Show prices in scale column (showScaleValues) Controls whether the price labels for session highs/lows appear on the chart’s right-hand price scale.
Show All Session Highs & Lows (showAllHighsLows) Master switch — turn this off to hide all session lines instantly, keeping the chart clean.
Show Session Backgrounds (showBackgrounds) Turns all background shading on or off. When off, all session colors disappear.
Background Opacity (bgOpacityAll) Adjusts the transparency for all session backgrounds (0 = solid, 100 = fully transparent).
🎨 Visual Color Scheme
Session Background High/Low Line
Asian Yellow Green
London Red Red
New York Blue Blue
Each color has a consistent role — making it easy to distinguish sessions even in replay or live view.
Price Tracking:
For each session, the indicator resets High and Low when the new session starts, then updates them as bars print.
Display Control:
If lines or backgrounds are disabled via settings, they’re completely hidden (no clutter, no partial transparency).
💡 How Traders Use It
Identify daily ranges in each global session.
Compare volatility between markets.
Align entries or exits with session transitions.
Observe how price respects previous session highs/lows.
The Asian, UK & NY Sessions indicator automatically identifies and highlights the three major global trading sessions on your chart.
For each session, it:
Detects session time in its local timezone.
Tracks the session’s highest and lowest prices.
Plots colored horizontal lines to show those levels throughout the trading day.
Optionally shades each session’s background in its signature color for instant visual context:
🟡 Asian Session: Yellow background
🔴 London Session: Red background
🔵 New York Session: Blue background
This helps traders see how price reacts within and between sessions — spotting overlaps, liquidity zones, and daily ranges.
⚙️ Inputs and Variables
Input Description
Extend lines until next session start (extendLines) Extends each session’s high/low lines forward until the next session begins.
Show prices in scale column (showScaleValues) Controls whether the price labels for session highs/lows appear on the chart’s right-hand price scale.
Show All Session Highs & Lows (showAllHighsLows) Master switch — turn this off to hide all session lines instantly, keeping the chart clean.
Show Session Backgrounds (showBackgrounds) Turns all background shading on or off. When off, all session colors disappear.
Background Opacity (bgOpacityAll) Adjusts the transparency for all session backgrounds (0 = solid, 100 = fully transparent).
🎨 Visual Color Scheme
Session Background High/Low Line
Asian Yellow Green
London Red Red
New York Blue Blue
Each color has a consistent role — making it easy to distinguish sessions even in replay or live view.
Price Tracking:
For each session, the indicator resets High and Low when the new session starts, then updates them as bars print.
Display Control:
If lines or backgrounds are disabled via settings, they’re completely hidden (no clutter, no partial transparency).
💡 How Traders Use It
Identify daily ranges in each global session.
Compare volatility between markets.
Align entries or exits with session transitions.
Observe how price respects previous session highs/lows.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。