OPEN-SOURCE SCRIPT
Custom Open Line

Daily Open Line (Custom Timezone)
Plots a horizontal line at a user-defined daily open time with full timezone control. Designed to work across equities, futures, forex, and crypto without being locked to a specific exchange session.
Most “daily open” indicators are hardcoded to New York time. This script removes that limitation and lets you define exactly what “open” means for your market.
The script includes customizable timezone selection such as Chicago, New York, London, and UTC, along with adjustable open hour and minute inputs. The default is set to 08:30 Central Time, which aligns with the 09:30 Eastern equity market open. Users can modify this to match any session including London open, Asia open, or forex rollover.
Each day, the script detects the bar matching the selected time and plots a horizontal line at that bar’s open price. The line extends forward and remains on the chart based on the selected lookback period. Visual settings such as line color, width, and style are fully customizable, and an optional label can display the exact open price.
This tool is useful for tracking key intraday levels, identifying directional bias relative to the open, and supporting price action strategies such as mean reversion or breakout trading. It also allows traders to align different markets using a consistent time reference.
This script works best on intraday timeframes such as 1-minute to 15-minute charts. On higher timeframes, the exact open bar may not exist depending on the data feed. For forex and crypto markets, users should select a timezone and time that matches their specific trading model.
Plots a horizontal line at a user-defined daily open time with full timezone control. Designed to work across equities, futures, forex, and crypto without being locked to a specific exchange session.
Most “daily open” indicators are hardcoded to New York time. This script removes that limitation and lets you define exactly what “open” means for your market.
The script includes customizable timezone selection such as Chicago, New York, London, and UTC, along with adjustable open hour and minute inputs. The default is set to 08:30 Central Time, which aligns with the 09:30 Eastern equity market open. Users can modify this to match any session including London open, Asia open, or forex rollover.
Each day, the script detects the bar matching the selected time and plots a horizontal line at that bar’s open price. The line extends forward and remains on the chart based on the selected lookback period. Visual settings such as line color, width, and style are fully customizable, and an optional label can display the exact open price.
This tool is useful for tracking key intraday levels, identifying directional bias relative to the open, and supporting price action strategies such as mean reversion or breakout trading. It also allows traders to align different markets using a consistent time reference.
This script works best on intraday timeframes such as 1-minute to 15-minute charts. On higher timeframes, the exact open bar may not exist depending on the data feed. For forex and crypto markets, users should select a timezone and time that matches their specific trading model.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。