OPEN-SOURCE SCRIPT
已更新 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.
發行說明
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.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。