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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。