OPEN-SOURCE SCRIPT
Low Volatility Breakout Detector)

This indicator is designed to visually identify potential breakouts from consolidation during periods of low volatility. It is based on classic Bollinger Bands and relative volume. Its primary purpose is not to generate buy or sell signals but to assist in spotting moments when the market exits a stagnation phase.
Arrows appear only when the price breaks above the upper or below the lower Bollinger Band, the band width is below a specified threshold (expressed in percentage), and volume is above its moving average multiplied by a chosen multiplier (default is 1). This combination may indicate the start of a new impulse following a period of low activity.
The chart background during low volatility is colored based on volume strength—the lower the volume during stagnation, the less transparent the background. This helps quickly spot unusual market behavior under seemingly calm conditions. The background opacity is dynamically scaled relative to the range of volumes over a selected period, which can be set manually (default is 50 bars).
The indicator works best in classic horizontal consolidations, where price moves within a narrow range and volatility and volume clearly decline. It is not intended to detect breakouts from formations such as triangles or wedges, which may not always exhibit low volatility relative to Bollinger Bands.
Settings allow you to adjust:
Bollinger Band length and multiplier,
Volatility threshold (in %),
Background and arrow colors,
Volume moving average length and multiplier,
Bar range used for background opacity scaling.
Note: For reliable results, it’s advisable to tailor the volatility threshold and volume/background ranges to the specific market and timeframe, as different instruments have distinct dynamics. If you want the background color to closely match the color of breakout arrows, you should set the same volume analysis period as the volume moving average length.
Additional note: To achieve a cleaner chart and focus solely on breakout signals, you can disable the background and Bollinger Bands display in the settings. This will leave only the breakout arrows visible on the chart, providing a clearer and more readable market picture.
Arrows appear only when the price breaks above the upper or below the lower Bollinger Band, the band width is below a specified threshold (expressed in percentage), and volume is above its moving average multiplied by a chosen multiplier (default is 1). This combination may indicate the start of a new impulse following a period of low activity.
The chart background during low volatility is colored based on volume strength—the lower the volume during stagnation, the less transparent the background. This helps quickly spot unusual market behavior under seemingly calm conditions. The background opacity is dynamically scaled relative to the range of volumes over a selected period, which can be set manually (default is 50 bars).
The indicator works best in classic horizontal consolidations, where price moves within a narrow range and volatility and volume clearly decline. It is not intended to detect breakouts from formations such as triangles or wedges, which may not always exhibit low volatility relative to Bollinger Bands.
Settings allow you to adjust:
Bollinger Band length and multiplier,
Volatility threshold (in %),
Background and arrow colors,
Volume moving average length and multiplier,
Bar range used for background opacity scaling.
Note: For reliable results, it’s advisable to tailor the volatility threshold and volume/background ranges to the specific market and timeframe, as different instruments have distinct dynamics. If you want the background color to closely match the color of breakout arrows, you should set the same volume analysis period as the volume moving average length.
Additional note: To achieve a cleaner chart and focus solely on breakout signals, you can disable the background and Bollinger Bands display in the settings. This will leave only the breakout arrows visible on the chart, providing a clearer and more readable market picture.
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。