OPEN-SOURCE SCRIPT
RG - Volume Spike Detector

RG - Volume Spike Detector is a comprehensive volume analysis tool designed to help traders identify significant volume activity across different tickers on TradingView. This indicator not only detects overall volume spikes and percentage changes but also approximates and analyzes buying and selling volume separately, providing valuable insights into market dynamics. With customizable parameters, visual cues, and built-in alerts, it's suitable for traders of all levels looking to monitor volume-based market movements.
Features
Volume Spike Detection:
Identifies when total volume exceeds a user-defined multiple of its moving average (default: 2x).
Separate detection for buying and selling volume spikes based on their respective moving averages.
Volume Change Analysis:
Calculates and displays the percentage change in total volume from the previous bar.
Highlights significant increases (>50%) or decreases (<-50%) with alert options.
Buy/Sell Volume Approximation:
Estimates buying and selling volume using price movement and range:
Up bars: Buying volume ≈ volume * (close - low)/(high - low)
Down bars: Selling volume ≈ volume * (close - low)/(high - low)
Handles edge cases (e.g., high = low) to ensure accurate calculations.
Ideal For
Day traders monitoring sudden volume surges
Swing traders analyzing volume trends
Market analysts studying buying vs. selling pressure
This indicator empowers traders with a robust tool to track volume dynamics, offering both visual clarity and actionable alerts for informed decision-making.
Features
Volume Spike Detection:
Identifies when total volume exceeds a user-defined multiple of its moving average (default: 2x).
Separate detection for buying and selling volume spikes based on their respective moving averages.
Volume Change Analysis:
Calculates and displays the percentage change in total volume from the previous bar.
Highlights significant increases (>50%) or decreases (<-50%) with alert options.
Buy/Sell Volume Approximation:
Estimates buying and selling volume using price movement and range:
Up bars: Buying volume ≈ volume * (close - low)/(high - low)
Down bars: Selling volume ≈ volume * (close - low)/(high - low)
Handles edge cases (e.g., high = low) to ensure accurate calculations.
Ideal For
Day traders monitoring sudden volume surges
Swing traders analyzing volume trends
Market analysts studying buying vs. selling pressure
This indicator empowers traders with a robust tool to track volume dynamics, offering both visual clarity and actionable alerts for informed decision-making.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.
Script de código aberto
No verdadeiro espirito do TradingView, o autor desse script o publicou como código aberto, para que os traders possam entendê-lo e verificá-lo. Parabéns ao autor Você pode usá-lo gratuitamente, mas a reutilização desse código em publicações e regida pelas Regras da Casa.
Para acesso rápido no gráfico, adicione esse script para seus favoritos — saiba mais aqui.
Aviso legal
As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.