OPEN-SOURCE SCRIPT

Volume And ROC Surge Detector

153
Sharing this indicator I made for myself.

Volume and ROC are early indicators of long moves. When ROC + Volume happens together, it's BOOM.

This indicator called, Volume + ROC Surge Detector is a real-time momentum alert indicator designed to spot early institutional activity and explosive price moves. It combines Volume Surge analysis with Price Rate of Change (ROC) to identify when price and participation align.

The script monitors abnormal volume relative to a moving average and confirms direction using ROC strength. When both volume expansion and directional momentum occur together, it triggers high-confidence “Boom” signals for bullish or bearish moves.

To avoid noise, the indicator includes state-based alert control, ensuring each signal fires only once per condition change and only in real-time, not on historical bars.

Key Features

1. Detects bullish and bearish ROC momentum shifts
2. Identifies positive and negative volume anomalies
3. Flags combined Volume + ROC “Boom” events
4. Real-time alerts only (no repaint, no bar-close spam)
5. Duplicate alert prevention using internal state tracking
6. Clean on-chart visual markers for instant recognition. Disable visuals for cleaner chart.

Best Use Cases:

1. Catching breakouts and breakdowns early
2. Spotting smart money participation
3. Momentum confirmation for trend, intraday, and swing trading
4. Works across stocks, crypto, and indices

Alerts:
1. ROC Bullish Alert
When it fires:
Price Rate of Change (ROC) crosses above the positive ROC threshold
Alert messages:
🟢 ROC Change Bullish → TICKER @ price
What it means: Price momentum has turned strongly bullish. Early sign of upside acceleration
2. ROC Bearish Alert
When it fires:
Price ROC crosses below the negative ROC threshold
Alert message:
🔴 ROC Change Bearish → TICKER @ price
What it means:
Price momentum has turned strongly bearish. Early sign of downside acceleration
3. Positive Volume Surge Alert
When it fires:
Current volume exceeds
Average Volume × Volume Surge Multiplier
Alert message:
📈 +Ve Vol Change → TICKER @ volume
What it means:
Unusual participation / smart money activity. Strength entering the move
4. Negative Volume Alert (Volume Dry-Up)
When it fires:
Current volume drops below
Average Volume ÷ Volume Surge Multiplier
Alert message:
📉 -Ve Vol Change → TICKER @ volume
What it means:
Participation is fading. Trend exhaustion or consolidation risk
5. Boom Bull Alert (High-Conviction Signal)
When it fires:
Both conditions occur together:
Bullish ROC AND Volume Surge (high participation)
Alert message:
💥 Boom Volume + ROC Bull → TICKER @ price
What it means: Momentum + volume alignment. Strong breakout / continuation probability
6. Boom Bear Alert (High-Conviction Signal)
When it fires:
Both conditions occur together: Bearish ROC AND Volume Surge (high participation)
Alert message:
💣 Boom Volume + ROC Bear → TICKER @ price
What it means: Momentum + volume alignment to the downside. Strong breakdown / continuation probability

This indicator is built for traders who want clarity, speed, and signal discipline—not lagging confirmations or noisy alerts.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.