OPEN-SOURCE SCRIPT
Updated

Opening Price Levels (by Period)

223
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.
Release Notes
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.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.