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提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。