OPEN-SOURCE SCRIPT
Mis à jour Bolling Band Breakout with Volume

The indicator is designed to show volume above 2 standard deviations to show a breakout after a Bollinger Band Squeeze.
Notes de version
Here's a changelog write-up you can paste into the "What's new" / update notes section on TradingView:---
**Update: Added intraday session-volume projection**
This update adds support for using the indicator on intraday timeframes, in addition to daily charts.
**What changed:**
- **New input: "Use Intraday Session Projection"** (checkbox, off by default) — when enabled, the script estimates full-session volume pace by dividing cumulative volume by the fraction of the trading session elapsed (based on a 9:30–16:00 session window). This corrects for the fact that a partial trading day's raw volume will always look artificially low when compared against a 20-day average built from full trading days.
- **Daily chart behavior is unchanged** — with the new toggle left unchecked, the indicator calculates exactly as before: raw volume vs. a rolling 20-period average and standard deviation, with no projection applied. Existing users on daily charts don't need to change anything.
- **Threshold and z-score logic unchanged** — still flags any bar where volume is 2+ standard deviations above its rolling average, colored red (down-day, distribution) or lime (up-day, accumulation); gray for normal volume.
- **Alerts unchanged** — the two existing alert conditions (sell-off volume outlier, buying volume outlier) still fire the same way, now also usable intrabar on intraday charts.
**Why this matters:** on intraday timeframes, the current forming bar recalculates live throughout the session. Without the projection, a genuinely large-volume day can look like a false negative early in the session simply because only a few hours of volume have accumulated. Enabling the projection puts intraday readings on a comparable basis to the historical daily average, so the signal is meaningful mid-session rather than only after the close.
**Recommended use:** leave the toggle **off** for daily-chart squeeze/breakout analysis; turn it **on** when applying the indicator to intraday charts for real-time volume-pace confirmation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.