PROTECTED SOURCE SCRIPT
已更新 ICT Kill Zone & SNR Tool

## Features
- **Auto-Draws Key Price Lines:**\
Plots the close price line for both the current timeframe and a higher timeframe (HTF) of your choice. The HTF close line helps you identify major support/resistance (SNR) areas from higher timeframe structure. All lines are managed automatically to keep the chart clear.
- **Kill Zone Session Markers:**\
Automatically highlights four key Kill Zone trading sessions (London, New York, London Close, Asia) according to ICT concepts. Kill Zone time windows are adjusted for your chart's timezone, with colored horizontal lines and center labels. If any major economic event overlaps with a Kill Zone, a 🔥 icon will be added to its label.
- **Real-Time Economic Calendar Integration:**\
Integrates TradingView's EconomicCalendar library to display major macroeconomic events (FOMC, CPI, PPI, NFP, etc.) directly on your chart. Events are matched to each bar in real time and checked for overlap with Kill Zone periods.
## How to Use
1. **Enable/Disable Elements:**\
Use the settings panel to turn on/off the close price lines for the current and higher timeframe, and adjust color/width as needed.
2. **Select HTF (Higher Timeframe):**\
Choose the desired higher timeframe (such as 1H, 4H, D). The HTF close line updates only when its value changes.
3. **Configure Kill Zones:**
- Toggle Kill Zone markers and select line style (solid, dashed, dotted).
- Set custom names for each session if needed.
- All time calculations are auto-adjusted for your chart's timezone.
4. **Economic Events:**
- Select which event types (FOMC, CPI, NFP, etc.) you want to show.
- When a Kill Zone period contains an economic event, a 🔥 icon is shown in the label for extra caution.
- Hidden event icons are also plotted on bars for backtesting reference.
5. **Chart Clarity:**\
The script automatically limits the number of lines/labels plotted to keep the chart clear and readable.
## How it Works
- **Close Line Drawing:**\
Draws a line from the previous close to the current close for each bar; HTF line only updates when the HTF close changes.
- **Kill Zone Detection:**\
Converts NY Kill Zone session times to your local timezone. For each session, detects entry/exit, draws a colored horizontal line and a centered label.
- **Economic Event Overlay:**\
Checks all selected economic events and overlays a 🔥 to session labels if they overlap; optionally plots an icon on the event bar.
## Disclaimer
This script is provided **for educational and research purposes only** and does **not constitute financial advice**. Trading involves substantial risk; the author accepts no liability for any financial loss.
- **Auto-Draws Key Price Lines:**\
Plots the close price line for both the current timeframe and a higher timeframe (HTF) of your choice. The HTF close line helps you identify major support/resistance (SNR) areas from higher timeframe structure. All lines are managed automatically to keep the chart clear.
- **Kill Zone Session Markers:**\
Automatically highlights four key Kill Zone trading sessions (London, New York, London Close, Asia) according to ICT concepts. Kill Zone time windows are adjusted for your chart's timezone, with colored horizontal lines and center labels. If any major economic event overlaps with a Kill Zone, a 🔥 icon will be added to its label.
- **Real-Time Economic Calendar Integration:**\
Integrates TradingView's EconomicCalendar library to display major macroeconomic events (FOMC, CPI, PPI, NFP, etc.) directly on your chart. Events are matched to each bar in real time and checked for overlap with Kill Zone periods.
## How to Use
1. **Enable/Disable Elements:**\
Use the settings panel to turn on/off the close price lines for the current and higher timeframe, and adjust color/width as needed.
2. **Select HTF (Higher Timeframe):**\
Choose the desired higher timeframe (such as 1H, 4H, D). The HTF close line updates only when its value changes.
3. **Configure Kill Zones:**
- Toggle Kill Zone markers and select line style (solid, dashed, dotted).
- Set custom names for each session if needed.
- All time calculations are auto-adjusted for your chart's timezone.
4. **Economic Events:**
- Select which event types (FOMC, CPI, NFP, etc.) you want to show.
- When a Kill Zone period contains an economic event, a 🔥 icon is shown in the label for extra caution.
- Hidden event icons are also plotted on bars for backtesting reference.
5. **Chart Clarity:**\
The script automatically limits the number of lines/labels plotted to keep the chart clear and readable.
## How it Works
- **Close Line Drawing:**\
Draws a line from the previous close to the current close for each bar; HTF line only updates when the HTF close changes.
- **Kill Zone Detection:**\
Converts NY Kill Zone session times to your local timezone. For each session, detects entry/exit, draws a colored horizontal line and a centered label.
- **Economic Event Overlay:**\
Checks all selected economic events and overlays a 🔥 to session labels if they overlap; optionally plots an icon on the event bar.
## Disclaimer
This script is provided **for educational and research purposes only** and does **not constitute financial advice**. Trading involves substantial risk; the author accepts no liability for any financial loss.
版本注释
New: Input options and plotting functions for yesterday, today, last week, last month, and last year's highs and lows.受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。