OPEN-SOURCE SCRIPT
已更新 Opening Price Levels (by Period)

This indicator draws clean horizontal lines at the opening prices of key time periods: Year, Quarter, Month, Week, and Day.
Each line is plotted only within its own time range, so there's no visual clutter or vertical jumps between periods.
Perfect for traders who want to:
Identify and react to institutional levels.
Track price behavior relative to major opens.
Keep charts clean and easy to read.
Features:
✅ Toggle visibility for each period (Year, Quarter, Month, Week, Day).
🎯 Accurate open levels, aligned with your chart's timeframe and session settings.
✨ Clean segments — each line only spans its original period.
Each line is plotted only within its own time range, so there's no visual clutter or vertical jumps between periods.
Perfect for traders who want to:
Identify and react to institutional levels.
Track price behavior relative to major opens.
Keep charts clean and easy to read.
Features:
✅ Toggle visibility for each period (Year, Quarter, Month, Week, Day).
🎯 Accurate open levels, aligned with your chart's timeframe and session settings.
✨ Clean segments — each line only spans its original period.
版本注释
Opening Price Levels (Multi-TF)This script draws opening price levels for different time periods on the chart. It allows you to display the opening price lines for the year, quarter, month, week, and day based on your selection.
Main Features:
Year Opening Level — A line representing the opening price for the current year.
Quarter Opening Level — A line representing the opening price for the current quarter.
Month Opening Level — A line representing the opening price for the current month.
Week Opening Level — A line representing the opening price for the current week.
Day Opening Level — A line representing the opening price for the current day.
Settings:
You can enable or disable the display of opening levels for each period (Year, Quarter, Month, Week, Day).
You can choose line colors for each period.
The lines are drawn only for the current period. For example, for the month — from the first day of the month to the current day, for the week — from the first day of the week to the current day, etc.
Line Display Mode:
The lines do not extend to the end of the chart, but stop at the current bar for each period.
The lines are drawn only for the first bar of the new period (e.g., at the start of a new month, quarter, year, etc.), allowing you to clearly track changes in opening levels.
This script helps you effectively track important levels on the chart, assisting in making informed trading decisions based on the opening prices of each significant period.
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
开源脚本
本着TradingView的真正精神,此脚本的创建者将其开源,以便交易者可以查看和验证其功能。向作者致敬!虽然您可以免费使用它,但请记住,重新发布代码必须遵守我们的网站规则。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。