OPEN-SOURCE SCRIPT
Adaptive High Volume Bars - Swing V2

is a volume activity indicator designed to highlight unusual trading participation directly on price candles while keeping the volume panel compact and easy to read.
The indicator classifies volume into four levels:
N — Normal
H — High
VH — Very High
EX — Exceptional
Bullish candles use a green-to-blue color scheme, while bearish candles use light gray for normal activity and an orange gradient for abnormal volume.
The lower panel uses fixed-height activity bars rather than a traditional volume histogram. This makes the importance of each event immediately visible without allowing raw volume spikes to distort the scale.
The indicator combines two statistical methods:
Absolute Volume measures how far the current volume is above its historical average using a Z-score based on the moving average and standard deviation of volume.
Volume Acceleration measures the sudden increase in volume compared with the previous candle.
The script automatically adapts its detection method and thresholds to four commonly used timeframes:
Weekly (1W)
Absolute volume detection with a 52-week lookback.
Daily (1D)
Absolute volume detection with a 200-bar lookback.
4 Hour (4H)
Hybrid detection combining absolute volume and volume acceleration.
1 Hour (1H)
Hybrid detection with stricter thresholds to reduce intraday noise.
In Hybrid mode, the indicator keeps the strongest signal produced by either absolute volume or volume acceleration.
The goal is not to measure price strength directly, but to identify periods when market participation becomes statistically unusual. These events can help provide additional context around breakouts, reversals, momentum expansion, capitulation and potential exhaustion moves.
The script also includes alert conditions for bullish and bearish High, Very High and Exceptional volume events.
This indicator is intended as a market analysis tool and should not be used as a standalone trading signal.
The indicator classifies volume into four levels:
N — Normal
H — High
VH — Very High
EX — Exceptional
Bullish candles use a green-to-blue color scheme, while bearish candles use light gray for normal activity and an orange gradient for abnormal volume.
The lower panel uses fixed-height activity bars rather than a traditional volume histogram. This makes the importance of each event immediately visible without allowing raw volume spikes to distort the scale.
The indicator combines two statistical methods:
Absolute Volume measures how far the current volume is above its historical average using a Z-score based on the moving average and standard deviation of volume.
Volume Acceleration measures the sudden increase in volume compared with the previous candle.
The script automatically adapts its detection method and thresholds to four commonly used timeframes:
Weekly (1W)
Absolute volume detection with a 52-week lookback.
Daily (1D)
Absolute volume detection with a 200-bar lookback.
4 Hour (4H)
Hybrid detection combining absolute volume and volume acceleration.
1 Hour (1H)
Hybrid detection with stricter thresholds to reduce intraday noise.
In Hybrid mode, the indicator keeps the strongest signal produced by either absolute volume or volume acceleration.
The goal is not to measure price strength directly, but to identify periods when market participation becomes statistically unusual. These events can help provide additional context around breakouts, reversals, momentum expansion, capitulation and potential exhaustion moves.
The script also includes alert conditions for bullish and bearish High, Very High and Exceptional volume events.
This indicator is intended as a market analysis tool and should not be used as a standalone trading signal.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。