OPEN-SOURCE SCRIPT
מעודכן

Bolling Band Breakout with Volume

221
The indicator is designed to show volume above 2 standard deviations to show a breakout after a Bollinger Band Squeeze.
הערות שחרור
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.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.