OPEN-SOURCE SCRIPT
已更新 Bollinger Squeeze Alert - NY Open Window

This indicator identifies a **Bollinger Squeeze** condition where the Bollinger Bands contract inside the Keltner Channel.
A squeeze usually means the market is in a low-volatility compression phase. This can sometimes happen before a larger volatility expansion or breakout move.
This script is designed especially for traders who want to monitor squeeze conditions around the **New York market open**.
### What this indicator does
The indicator checks whether:
**Bollinger Upper Band is below Keltner Upper Channel**
and
**Bollinger Lower Band is above Keltner Lower Channel**
When both conditions are true, the Bollinger Bands are fully inside the Keltner Channel, meaning a squeeze is active.
The script also includes a time filter so alerts only trigger during the selected New York open window.
Default alert window:
**8:30 AM to 10:30 AM New York time**
### Main features
* Detects active Bollinger Squeeze conditions
* Uses Bollinger Bands and Keltner Channels together
* Includes a New York time-based alert window
* Highlights the chart background when a valid squeeze is active
* Provides alert options for:
* Squeeze active during the NY open window
* New squeeze starting during the NY open window
* Works on futures, indices, stocks, ETFs, and other instruments
### Suggested use
This indicator can be useful for traders who monitor compression before volatility expansion, especially near the US market open.
For example, on ES futures, a trader may use this to identify when the market is compressed between **8:30 AM and 10:30 AM New York time** and then watch for a possible breakout or volatility expansion.
### Important note
This indicator does not predict direction.
It only identifies volatility compression.
A squeeze can break upward, downward, or fail completely. It should be combined with price action, volume, market context, trend, support/resistance, and proper risk management.
### Disclaimer
This script is for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any security, futures contract, or option. Trading involves risk, and past performance does not guarantee future results. Always do your own research and manage risk carefully.
A squeeze usually means the market is in a low-volatility compression phase. This can sometimes happen before a larger volatility expansion or breakout move.
This script is designed especially for traders who want to monitor squeeze conditions around the **New York market open**.
### What this indicator does
The indicator checks whether:
**Bollinger Upper Band is below Keltner Upper Channel**
and
**Bollinger Lower Band is above Keltner Lower Channel**
When both conditions are true, the Bollinger Bands are fully inside the Keltner Channel, meaning a squeeze is active.
The script also includes a time filter so alerts only trigger during the selected New York open window.
Default alert window:
**8:30 AM to 10:30 AM New York time**
### Main features
* Detects active Bollinger Squeeze conditions
* Uses Bollinger Bands and Keltner Channels together
* Includes a New York time-based alert window
* Highlights the chart background when a valid squeeze is active
* Provides alert options for:
* Squeeze active during the NY open window
* New squeeze starting during the NY open window
* Works on futures, indices, stocks, ETFs, and other instruments
### Suggested use
This indicator can be useful for traders who monitor compression before volatility expansion, especially near the US market open.
For example, on ES futures, a trader may use this to identify when the market is compressed between **8:30 AM and 10:30 AM New York time** and then watch for a possible breakout or volatility expansion.
### Important note
This indicator does not predict direction.
It only identifies volatility compression.
A squeeze can break upward, downward, or fail completely. It should be combined with price action, volume, market context, trend, support/resistance, and proper risk management.
### Disclaimer
This script is for educational and informational purposes only. It is not financial advice, investment advice, or a recommendation to buy or sell any security, futures contract, or option. Trading involves risk, and past performance does not guarantee future results. Always do your own research and manage risk carefully.
版本注释
Changed the time band colour to green for better visibility 开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。