OPEN-SOURCE SCRIPT
Custom Session Boundaries with Timezone Support

This indicator draws two clean vertical lines on your chart — one marking the start of your selected trading session and one marking the end. No clutter, no extra lines between them. Just the two boundaries you care about.
It is designed for traders who want a clear visual reference of their session window directly on the chart, regardless of the timezone their broker or exchange uses.
Features:
Select your Start Hour and End Hour independently (0–23 format)
Full timezone support: UTC, New York, Chicago, London, Berlin, Bucharest, Tokyo, Singapore, Sydney
Separate color control for the start and end line
Choose between Solid, Dashed, or Dotted line style
Adjustable line width (1–4)
Works on all timeframes and all instruments
How to use:
Set your desired session start and end hour in the timezone that matches your setup. The indicator will place one vertical line at the opening of the start hour and one at the opening of the end hour, across your entire chart history.
Works well for marking sessions such as London Open, New York Open, Asian Session, or any custom time window relevant to your strategy.
It is designed for traders who want a clear visual reference of their session window directly on the chart, regardless of the timezone their broker or exchange uses.
Features:
Select your Start Hour and End Hour independently (0–23 format)
Full timezone support: UTC, New York, Chicago, London, Berlin, Bucharest, Tokyo, Singapore, Sydney
Separate color control for the start and end line
Choose between Solid, Dashed, or Dotted line style
Adjustable line width (1–4)
Works on all timeframes and all instruments
How to use:
Set your desired session start and end hour in the timezone that matches your setup. The indicator will place one vertical line at the opening of the start hour and one at the opening of the end hour, across your entire chart history.
Works well for marking sessions such as London Open, New York Open, Asian Session, or any custom time window relevant to your strategy.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。