OPEN-SOURCE SCRIPT
Hourly Structure Boxes & Volume

This indicator merges micro-session market structure with a localized volume kinematics engine. By anchoring opening range boxes (5m, 15m, and 30m) to a strict hourly cycle, it allows traders to visualize initial balance boundaries while simultaneously measuring the order flow effort required to break out of them.
Core Logic & Mechanics
This script resolves the common issue of Cumulative Volume Delta (CVD) "drifting" over time by forcing it to reset at specific structural boundaries. The mashup of visual price boxes and volume data is justified because the volume calculations are strictly dependent on the structure for their anchor points.
Hourly Micro-Boxing: At the start of every hour, the script begins drawing three nested ranges: the first 5 minutes, 15 minutes, and 30 minutes. It calculates the midlines of the 5m and 15m ranges and highlights the space between them as a "Midline Zone," projecting it forward to the end of the hour as a critical area of structural gravity.
Dynamic CVD Resets: The CVD engine does not run continuously. It resets at the top of the hour, at the completion of each micro-box (5m, 15m, 30m), AND dynamically if the price touches the extended 5m or 15m midlines. This ensures the volume delta is always measuring the immediate push off a structural level.
3-Stage Breakout Engine: The script actively monitors the 15-minute box for a specific exhaustion-breakout pattern. It requires three stages to trigger a signal:
Stage 1: Price wicks or touches outside the 15m box boundary.
Stage 2: Price retreats back inside the 15m box.
Stage 3: A subsequent candle strictly closes outside the box. Only then does it print a "15m Breakout" label, filtering out standard liquidity sweeps.
Volume Kinematics Dashboard: The lower dashboard calculates proprietary metrics:
Pace: Total points moved divided by the bars elapsed since the last structure reset.
Velocity: CVD divided by bars elapsed.
Friction: Absolute Velocity / Absolute Pace. Measures absorption (how much volume is being burned for minimal point gain).
Burn Score: A localized exhaustion metric adjusted by an Auto-Session Divisor to normalize values between the main New York session and overnight trading.
How to Use It
Designed primarily for scalping volatile indices like the Nasdaq 100 on lower timeframes (1m to 5m), this tool provides actionable data for mean-reversion and breakout trading.
Trading the 15m Breakout: Wait for the 3-stage breakout label to print. Before entering, check the dashboard's "Velocity" and "Friction." If the breakout label prints with high Velocity and low Friction, it signals genuine momentum.
Midline Zone Bounces: If price enters the shaded cyan 5m-15m Midline Zone, watch for the CVD reset. If the reset immediately shows heavy opposing volume (a spike in Pace and Velocity in the opposite direction), the midline zone is defending successfully, offering a tight-risk entry back toward the hourly box extremes.
Friction Exhaustion: If price is pushing against the 30-minute box boundary but the dashboard shows extreme "Friction" and a high "Burn Score" (turning purple or red), the move is being absorbed by limit orders. This is a setup for a fade/reversal back to the midlines.
Core Logic & Mechanics
This script resolves the common issue of Cumulative Volume Delta (CVD) "drifting" over time by forcing it to reset at specific structural boundaries. The mashup of visual price boxes and volume data is justified because the volume calculations are strictly dependent on the structure for their anchor points.
Hourly Micro-Boxing: At the start of every hour, the script begins drawing three nested ranges: the first 5 minutes, 15 minutes, and 30 minutes. It calculates the midlines of the 5m and 15m ranges and highlights the space between them as a "Midline Zone," projecting it forward to the end of the hour as a critical area of structural gravity.
Dynamic CVD Resets: The CVD engine does not run continuously. It resets at the top of the hour, at the completion of each micro-box (5m, 15m, 30m), AND dynamically if the price touches the extended 5m or 15m midlines. This ensures the volume delta is always measuring the immediate push off a structural level.
3-Stage Breakout Engine: The script actively monitors the 15-minute box for a specific exhaustion-breakout pattern. It requires three stages to trigger a signal:
Stage 1: Price wicks or touches outside the 15m box boundary.
Stage 2: Price retreats back inside the 15m box.
Stage 3: A subsequent candle strictly closes outside the box. Only then does it print a "15m Breakout" label, filtering out standard liquidity sweeps.
Volume Kinematics Dashboard: The lower dashboard calculates proprietary metrics:
Pace: Total points moved divided by the bars elapsed since the last structure reset.
Velocity: CVD divided by bars elapsed.
Friction: Absolute Velocity / Absolute Pace. Measures absorption (how much volume is being burned for minimal point gain).
Burn Score: A localized exhaustion metric adjusted by an Auto-Session Divisor to normalize values between the main New York session and overnight trading.
How to Use It
Designed primarily for scalping volatile indices like the Nasdaq 100 on lower timeframes (1m to 5m), this tool provides actionable data for mean-reversion and breakout trading.
Trading the 15m Breakout: Wait for the 3-stage breakout label to print. Before entering, check the dashboard's "Velocity" and "Friction." If the breakout label prints with high Velocity and low Friction, it signals genuine momentum.
Midline Zone Bounces: If price enters the shaded cyan 5m-15m Midline Zone, watch for the CVD reset. If the reset immediately shows heavy opposing volume (a spike in Pace and Velocity in the opposite direction), the midline zone is defending successfully, offering a tight-risk entry back toward the hourly box extremes.
Friction Exhaustion: If price is pushing against the 30-minute box boundary but the dashboard shows extreme "Friction" and a high "Burn Score" (turning purple or red), the move is being absorbed by limit orders. This is a setup for a fade/reversal back to the midlines.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
*PM me after for access.*
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с открытым кодом
В истинном духе TradingView, создатель этого скрипта сделал его открытым исходным кодом, чтобы трейдеры могли проверить и убедиться в его функциональности. Браво автору! Вы можете использовать его бесплатно, но помните, что перепубликация кода подчиняется нашим Правилам поведения.
*PM me after for access.*
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.