OPEN-SOURCE SCRIPT
Cập nhật Daily Key Levels

Daily Key Levels marks important New York-session opening prices directly on the chart, helping intraday traders keep the current session’s main reference levels visible without carrying old historical lines forward.
The indicator captures each level from 1-minute data and projects it across the active session only. The session resets at 18:00 New York time, matching the common futures session structure.
Key Features
Overlap Logic
When multiple level groups share the same timestamp, the indicator uses a clean priority rule:
For example, the standalone 18:00 market-open level takes priority over both 4H and 6H 18:00 levels. The standalone 10:00 macro level takes priority over the 4H 10:00 level.
Notes
This indicator is designed as a visual reference tool for intraday context, planning, and level awareness. It does not generate trade signals, entries, exits, or alerts. Level accuracy depends on the chart symbol’s available 1-minute data and TradingView’s session/feed data.
The indicator captures each level from 1-minute data and projects it across the active session only. The session resets at 18:00 New York time, matching the common futures session structure.
Key Features
- Marks the 18:00 market open, 8:30 news level, 9:30 New York open, and 10:00 macro level.
- Optional 4-hour opening prices: 18:00, 22:00, 02:00, 06:00, 10:00, and 14:00.
- Optional 6-hour opening prices: 18:00, 00:00, 06:00, and 12:00.
- Automatically avoids duplicate stacked lines when the same timestamp belongs to multiple groups.
- Only displays levels for the current active session.
Overlap Logic
When multiple level groups share the same timestamp, the indicator uses a clean priority rule:
- Dedicated key levels > 4-hour opens > 6-hour opens
For example, the standalone 18:00 market-open level takes priority over both 4H and 6H 18:00 levels. The standalone 10:00 macro level takes priority over the 4H 10:00 level.
Notes
This indicator is designed as a visual reference tool for intraday context, planning, and level awareness. It does not generate trade signals, entries, exits, or alerts. Level accuracy depends on the chart symbol’s available 1-minute data and TradingView’s session/feed data.
Phát hành các Ghi chú
This update improves visual customisation and settings organisation for Daily Key Levels.Line styling has been moved to TradingView’s native Style tab, so each plotted level can be customised using TradingView’s standard line controls.
A new Label Colours settings group has also been added, allowing label text colours to be adjusted separately for the 18:00 level, intraday levels, 4-hour opening prices, and 6-hour opening prices.
The previous label visibility setting was removed to keep label handling simpler and avoid duplicating controls.
A new Line Extension settings group now contains the Extend line to right option, which adds right-only extensions for active levels without extending lines backward across the chart.
Note: TradingView/Pine does not allow script labels to automatically inherit user-edited Style tab line colours, so label colours are provided as separate manual controls.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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.