OPEN-SOURCE SCRIPT
Volume Spike Detector - by TenAMTrader

📌 Volume Spike Detector – by TenAMTrader
This indicator is designed to help traders quickly identify unusual surges in trading volume relative to recent activity. High-volume spikes can often signal strong buying or selling pressure, potential trend reversals, or breakout setups.
⚙️ How It Works
The script calculates the average trading volume over a user-defined period (default: 21 bars).
It then sets a spike threshold, which is that average volume plus a percentage buffer (default: 25%).
Whenever the current bar’s volume exceeds this threshold, a 💰 label is plotted below the candle.
If alerts are enabled, you’ll also receive a real-time alert whenever a spike occurs.
🔧 User Settings
Spike Ratio % → Adjust how much higher than average volume must be to qualify as a spike.
Trading Period → Set the lookback period used to calculate the average volume.
Enable Alert → Turn alerts on/off.
📊 Practical Use Cases
Breakout Trading: Volume spikes often confirm breakouts from consolidation zones.
Reversal Signals: A sudden surge in volume may precede a trend reversal.
News & Events: Spot unusual activity during earnings, economic releases, or unexpected events.
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, or trading recommendations. Past performance is not indicative of future results. Always do your own research and consult with a licensed financial professional before making any trading decisions.
This indicator is designed to help traders quickly identify unusual surges in trading volume relative to recent activity. High-volume spikes can often signal strong buying or selling pressure, potential trend reversals, or breakout setups.
⚙️ How It Works
The script calculates the average trading volume over a user-defined period (default: 21 bars).
It then sets a spike threshold, which is that average volume plus a percentage buffer (default: 25%).
Whenever the current bar’s volume exceeds this threshold, a 💰 label is plotted below the candle.
If alerts are enabled, you’ll also receive a real-time alert whenever a spike occurs.
🔧 User Settings
Spike Ratio % → Adjust how much higher than average volume must be to qualify as a spike.
Trading Period → Set the lookback period used to calculate the average volume.
Enable Alert → Turn alerts on/off.
📊 Practical Use Cases
Breakout Trading: Volume spikes often confirm breakouts from consolidation zones.
Reversal Signals: A sudden surge in volume may precede a trend reversal.
News & Events: Spot unusual activity during earnings, economic releases, or unexpected events.
⚠️ Disclaimer
This indicator is provided for educational and informational purposes only. It does not constitute financial advice, investment advice, or trading recommendations. Past performance is not indicative of future results. Always do your own research and consult with a licensed financial professional before making any trading decisions.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.