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提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。