OPEN-SOURCE SCRIPT

Custom Open Line

387
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.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.