OPEN-SOURCE SCRIPT

High Volume Breakout Detector

70
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.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。