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.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.