OPEN-SOURCE SCRIPT
Spike Volume Bar & POC

This indicator identifies volume spikes using Z-score statistical analysis and
calculates Point of Control (POC) for high-volume bars.
KEY FEATURES:
- Statistical volume spike detection using customizable Z-score threshold
- Multi-timeframe POC calculation using lower timeframe data
- Multiple volume sources (Chart, Binance, Coinbase, Bybit, OKEx)
- Smart POC line management with hit detection
- Color-coded bars for bullish/bearish high-volume periods
HOW IT WORKS:
1. Z-SCORE CALCULATION:
• Calculates rolling mean and standard deviation of volume over specified period
• Z-score = (Current Volume - Mean Volume) / Std Deviation
• Triggers when Z-score exceeds threshold (default: 2.0σ)
2. POC CALCULATION:
• For lower timeframe mode: analyzes intrabar volume distribution
• Calculates VWAP for each lower timeframe bar
• Identifies price level with highest volume concentration
• Uses statistical filtering (Z-score > 1.5) to find volume clusters
3. LINE MANAGEMENT:
• Draws horizontal lines at POC levels
• Extends lines until price touches them
• Optional: hides or grays out touched POC levels
• Maintains up to 500 active lines
calculates Point of Control (POC) for high-volume bars.
KEY FEATURES:
- Statistical volume spike detection using customizable Z-score threshold
- Multi-timeframe POC calculation using lower timeframe data
- Multiple volume sources (Chart, Binance, Coinbase, Bybit, OKEx)
- Smart POC line management with hit detection
- Color-coded bars for bullish/bearish high-volume periods
HOW IT WORKS:
1. Z-SCORE CALCULATION:
• Calculates rolling mean and standard deviation of volume over specified period
• Z-score = (Current Volume - Mean Volume) / Std Deviation
• Triggers when Z-score exceeds threshold (default: 2.0σ)
2. POC CALCULATION:
• For lower timeframe mode: analyzes intrabar volume distribution
• Calculates VWAP for each lower timeframe bar
• Identifies price level with highest volume concentration
• Uses statistical filtering (Z-score > 1.5) to find volume clusters
3. LINE MANAGEMENT:
• Draws horizontal lines at POC levels
• Extends lines until price touches them
• Optional: hides or grays out touched POC levels
• Maintains up to 500 active lines
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.
Скрипт с открытым кодом
В истинном духе TradingView автор этого скрипта опубликовал его с открытым исходным кодом, чтобы трейдеры могли понять, как он работает, и проверить на практике. Вы можете воспользоваться им бесплатно, но повторное использование этого кода в публикации регулируется Правилами поведения.
Отказ от ответственности
Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.