OPEN-SOURCE SCRIPT
Volume And ROC Surge Detector

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.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.