OPEN-SOURCE SCRIPT
[CS] Volume Spike Detector (Clean)

[CS] Volume Spike Detector
Statistically detects real volume spikes using Z-Score analysis, with a session-aware filter that ignores the expected 9:30 AM opening burst.
🔹 **What It Does**
- Colors spike candles directly - your chart stays clean and neutral until a spike occurs
- Uses Z-Score (standard deviation) to adapt to each instrument's natural volume profile
- Two tiers: Spike and Major. Major spikes get a small "Nx" label showing volume relative to average
- Compact 3-row stats table with current volume ratio, Z-Score, and status

🔹 **What Makes This Different**
**Session-Aware Detection.** Every volume spike indicator on TradingView lights up at 9:30 AM because the market open always has high volume — that's expected, not a signal. This indicator has a configurable "opening burst" filter that suppresses the first N minutes after session open. You only see spikes that are actually unusual for the current session — not the ones every trader already expects.

The design is intentionally minimal. Normal candles are neutral gray. Only spike candles get color. No background shading, no giant labels, no chart clutter. The signal is the candle itself.
🔹 **How to Read It**
- **Neutral gray candles** — Normal volume. Nothing to see.
- **Colored candle (subtle)** — Volume spike. Statistically above average.
- **Colored candle (bright) + "Nx" label** — Major spike. Something worth paying attention to.
- **Table shows "OPEN"** — Currently in the opening burst window. Spikes suppressed.

🔹 **Best Used For**
- Confirming breakouts with real volume
- Spotting potential reversals via climax volume
- Filtering noise — only trade when volume confirms
- Intraday trading where the 9:30 open spike is a constant problem
🔹 **Settings**
- Lookback Period (50) — bars for average and standard deviation
- Spike Threshold (2.0) — Z-Score minimum for detection
- Major Spike Multiplier (1.5) — multiplied by threshold for Major tier
- Session-Aware Mode (on) — ignores first N minutes after open
- Ignore First N Minutes (5) — opening burst window
- Session Open (930) — configurable for any market
- Fully customizable colors for bull/bear spikes and neutral candles
Part of the Candle Syntax collection — free trading indicators built different.
Statistically detects real volume spikes using Z-Score analysis, with a session-aware filter that ignores the expected 9:30 AM opening burst.
🔹 **What It Does**
- Colors spike candles directly - your chart stays clean and neutral until a spike occurs
- Uses Z-Score (standard deviation) to adapt to each instrument's natural volume profile
- Two tiers: Spike and Major. Major spikes get a small "Nx" label showing volume relative to average
- Compact 3-row stats table with current volume ratio, Z-Score, and status
🔹 **What Makes This Different**
**Session-Aware Detection.** Every volume spike indicator on TradingView lights up at 9:30 AM because the market open always has high volume — that's expected, not a signal. This indicator has a configurable "opening burst" filter that suppresses the first N minutes after session open. You only see spikes that are actually unusual for the current session — not the ones every trader already expects.
The design is intentionally minimal. Normal candles are neutral gray. Only spike candles get color. No background shading, no giant labels, no chart clutter. The signal is the candle itself.
🔹 **How to Read It**
- **Neutral gray candles** — Normal volume. Nothing to see.
- **Colored candle (subtle)** — Volume spike. Statistically above average.
- **Colored candle (bright) + "Nx" label** — Major spike. Something worth paying attention to.
- **Table shows "OPEN"** — Currently in the opening burst window. Spikes suppressed.
🔹 **Best Used For**
- Confirming breakouts with real volume
- Spotting potential reversals via climax volume
- Filtering noise — only trade when volume confirms
- Intraday trading where the 9:30 open spike is a constant problem
🔹 **Settings**
- Lookback Period (50) — bars for average and standard deviation
- Spike Threshold (2.0) — Z-Score minimum for detection
- Major Spike Multiplier (1.5) — multiplied by threshold for Major tier
- Session-Aware Mode (on) — ignores first N minutes after open
- Ignore First N Minutes (5) — opening burst window
- Session Open (930) — configurable for any market
- Fully customizable colors for bull/bear spikes and neutral candles
Part of the Candle Syntax collection — free trading indicators built different.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.
Skrip open-source
Dengan semangat TradingView yang sesungguhnya, pembuat skrip ini telah menjadikannya sebagai sumber terbuka, sehingga para trader dapat meninjau dan memverifikasi fungsinya. Salut untuk penulisnya! Meskipun Anda dapat menggunakannya secara gratis, perlu diingat bahwa penerbitan ulang kode ini tunduk pada Tata Tertib kami.
Pernyataan Penyangkalan
Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.