OPEN-SOURCE SCRIPT
ที่อัปเดต: 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.
Release Note
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 ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน