OPEN-SOURCE SCRIPT
Precision Time Markers & Session Labels

Precision Time Markers & Session Labels [Balanced]
Overview
This indicator is designed for intraday traders (SMC, ICT, or Session traders) who need to visualize specific time-based opens and events without cluttering their charts. It draws vertical lines and labels at user-defined times, such as the Midnight Open, London Open, and New York Sessions.
The standout feature of this script is the Balanced Vertical Offset. Unlike standard scripts where labels might overlap candles or appear too far away depending on the asset, this script calculates the optimal label height to ensure perfect visibility whether you are trading BTCUSD, Gold, or EURUSD.
Key Features
6 Fully Customizable Time Slots: Pre-configured for Midnight Open, London Open, and Daily Close, with three additional "Extra" slots for your own custom times.
Intelligent Label Positioning: Uses yloc.abovebar and price-based offsets to ensure labels stay clear of the price action.
Smart Timeframe Visibility: Labels automatically hide on timeframes higher than 30 minutes. This keeps your 1H, 4H, and Daily charts clean while providing precision on your execution timeframes (1m, 5m, 15m).
Universal Scaling: The vertical spacing is balanced to look consistent across all asset classes, regardless of price decimals or volatility.
How to Use
Set Your Times: Open the settings menu and input the specific Hour and Minute for the levels you want to track.
Customize Labels: Change the text labels (e.g., "NY OPEN", "KILLZONE") and colors to match your personal trading template.
Adjust Offsets: If the labels are too close or too far from the candles, adjust the Vertical Offset in the settings.
Settings Explained
Show Line: Toggle individual time markers on or off.
Hour/Minute: The exact time the line will trigger (based on your chart's exchange time).
Label Text: The text that appears at the top of the vertical line.
Color: Customize the color for both the line and the label for quick visual recognition.
This script is optimized for performance and uses the label.new logic to bypass the const string limitations of standard plotshapes, allowing you full control over your label text directly from the UI.
Disclaimer: This indicator is a visual aid and does not constitute financial advice. Always test your strategy in a paper trading environment before risking capital.
Overview
This indicator is designed for intraday traders (SMC, ICT, or Session traders) who need to visualize specific time-based opens and events without cluttering their charts. It draws vertical lines and labels at user-defined times, such as the Midnight Open, London Open, and New York Sessions.
The standout feature of this script is the Balanced Vertical Offset. Unlike standard scripts where labels might overlap candles or appear too far away depending on the asset, this script calculates the optimal label height to ensure perfect visibility whether you are trading BTCUSD, Gold, or EURUSD.
Key Features
6 Fully Customizable Time Slots: Pre-configured for Midnight Open, London Open, and Daily Close, with three additional "Extra" slots for your own custom times.
Intelligent Label Positioning: Uses yloc.abovebar and price-based offsets to ensure labels stay clear of the price action.
Smart Timeframe Visibility: Labels automatically hide on timeframes higher than 30 minutes. This keeps your 1H, 4H, and Daily charts clean while providing precision on your execution timeframes (1m, 5m, 15m).
Universal Scaling: The vertical spacing is balanced to look consistent across all asset classes, regardless of price decimals or volatility.
How to Use
Set Your Times: Open the settings menu and input the specific Hour and Minute for the levels you want to track.
Customize Labels: Change the text labels (e.g., "NY OPEN", "KILLZONE") and colors to match your personal trading template.
Adjust Offsets: If the labels are too close or too far from the candles, adjust the Vertical Offset in the settings.
Settings Explained
Show Line: Toggle individual time markers on or off.
Hour/Minute: The exact time the line will trigger (based on your chart's exchange time).
Label Text: The text that appears at the top of the vertical line.
Color: Customize the color for both the line and the label for quick visual recognition.
This script is optimized for performance and uses the label.new logic to bypass the const string limitations of standard plotshapes, allowing you full control over your label text directly from the UI.
Disclaimer: This indicator is a visual aid and does not constitute financial advice. Always test your strategy in a paper trading environment before risking capital.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。