OPEN-SOURCE SCRIPT
High Volume Breakout Detector

This indicator is a dedicated volume analysis tool displayed in a separate pane below the price chart. It visually highlights significant volume surges (spikes) by comparing the current bar's volume to a dynamic threshold based on a Simple Moving Average (SMA) of volume.
Key Concepts and Methodology:
- The core calculation uses a user-configurable Simple Moving Average (default: 20 periods) of historical volume to establish a baseline of "normal" trading activity.
- A customizable multiplier (default: 1.50, meaning 150% of the SMA) defines the threshold for a volume spike. When the current bar's volume meets or exceeds this threshold, it is classified as a spike—indicating unusually high participation that often accompanies breakouts, reversals, climaxes, or institutional activity.
- Volume bars are plotted as columns and colored based on two factors:
- Candle direction: Green shades for bullish candles (close ≥ open), red shades for bearish candles (close < open).
- Spike status: Brighter/solid colors for confirmed spikes, muted/translucent colors for normal volume. This candle-matched coloring helps traders quickly assess whether the surge supports buying pressure (green spike on up candle) or selling/distribution (red spike on down candle).
- Optional overlays include the volume SMA line (blue) and the dynamic threshold line (orange, plotted as circles for easy distinction).
Features and Customization:
- Fully adjustable inputs: SMA length, multiplier threshold, colors for up/down/normal/spike bars, and toggles for showing the SMA line, threshold line, or background highlighting on spikes.
- Built-in alert condition triggers reliably on volume spikes (≥ selected multiplier of SMA), with a constant message string including ticker, timeframe, volume value, and threshold reference.
How to Use:
- Add to any chart in a separate pane (overlay=false).
- Look for brighter colored volume bars as potential signals of conviction in price moves. For example:
- Green spikes on up candles may signal strong accumulation or breakout confirmation.
- Red spikes on down candles may indicate distribution or exhaustion selling.
- Combine with price action, support/resistance, or trend indicators for confluence.
- Ideal for day trading, swing trading, or spotting volume climaxes on stocks, forex, crypto, or futures across any timeframe.
The unique combination of candle-direction-matched coloring for spikes, visual threshold plotting, and focused spike highlighting provides clearer, more actionable insight into directional volume pressure compared to standard volume displays.
Key Concepts and Methodology:
- The core calculation uses a user-configurable Simple Moving Average (default: 20 periods) of historical volume to establish a baseline of "normal" trading activity.
- A customizable multiplier (default: 1.50, meaning 150% of the SMA) defines the threshold for a volume spike. When the current bar's volume meets or exceeds this threshold, it is classified as a spike—indicating unusually high participation that often accompanies breakouts, reversals, climaxes, or institutional activity.
- Volume bars are plotted as columns and colored based on two factors:
- Candle direction: Green shades for bullish candles (close ≥ open), red shades for bearish candles (close < open).
- Spike status: Brighter/solid colors for confirmed spikes, muted/translucent colors for normal volume. This candle-matched coloring helps traders quickly assess whether the surge supports buying pressure (green spike on up candle) or selling/distribution (red spike on down candle).
- Optional overlays include the volume SMA line (blue) and the dynamic threshold line (orange, plotted as circles for easy distinction).
Features and Customization:
- Fully adjustable inputs: SMA length, multiplier threshold, colors for up/down/normal/spike bars, and toggles for showing the SMA line, threshold line, or background highlighting on spikes.
- Built-in alert condition triggers reliably on volume spikes (≥ selected multiplier of SMA), with a constant message string including ticker, timeframe, volume value, and threshold reference.
How to Use:
- Add to any chart in a separate pane (overlay=false).
- Look for brighter colored volume bars as potential signals of conviction in price moves. For example:
- Green spikes on up candles may signal strong accumulation or breakout confirmation.
- Red spikes on down candles may indicate distribution or exhaustion selling.
- Combine with price action, support/resistance, or trend indicators for confluence.
- Ideal for day trading, swing trading, or spotting volume climaxes on stocks, forex, crypto, or futures across any timeframe.
The unique combination of candle-direction-matched coloring for spikes, visual threshold plotting, and focused spike highlighting provides clearer, more actionable insight into directional volume pressure compared to standard volume displays.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.