OPEN-SOURCE SCRIPT
Session Breaks

Session Breaks (stable) draws vertical lines at the exact start of each Day / Week / Month / Quarter / Half-Year / Year aligned to the instrument’s TradingView session (Regular, Extended, or Custom). The script prioritizes higher timeframes (Y→H→Q→M→W→D) so lines never overlap, and it works on any chart timeframe.
Features
Session-aligned boundaries (respect exchange hours)
Toggle any timeframe, pick colors/styles
“Highest TF wins” de-dup logic (no clutter)
Lightweight, history-safe (line cap to protect performance)
Indicator only — places no orders or alerts by itself
Tip: Choose the session mode in settings to match your market hours.
Features
Session-aligned boundaries (respect exchange hours)
Toggle any timeframe, pick colors/styles
“Highest TF wins” de-dup logic (no clutter)
Lightweight, history-safe (line cap to protect performance)
Indicator only — places no orders or alerts by itself
Tip: Choose the session mode in settings to match your market hours.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。