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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.