OPEN-SOURCE SCRIPT

Volume Peak Box

204
📄 English Description

Overview
The Volume Peak Box indicator highlights periods of unusually high volume by identifying volume spikes using Bollinger Bands on volume and drawing a price-range box around each spike window. This provides traders with a clear visual representation of supply/demand imbalances, absorption zones, and breakout/false-break areas.
All calculations come from one unified concept: detecting statistically significant volume peaks on a locked timeframe and mapping them onto the chart.

Concept & Logic
1. Locked Timeframe Volume Analysis

Instead of using the current chart timeframe, this script allows users to lock volume analysis to any timeframe (e.g., 60m, 4H, 1D).
The script retrieves from the chosen timeframe:

Volume

High price

Low price

This allows volume structure from higher timeframes to be used while trading lower timeframes.

2. Bollinger Bands on Volume

Volume volatility is analyzed using a standard Bollinger Band model:

Basis = SMA(volume, BB length)

Upper Band = Basis + (mult × standard deviation)

When:

Volume > Upper Band


→ This bar is classified as a Volume Peak.

This approach makes the peak detection statistically meaningful, instead of simply comparing raw volume to previous bars.

3. Peak Session Detection (Continuous Peaks Form One Box)

The script tracks continuous volume peaks:

When a peak starts → begin a session

While peaks continue → extend the session

When peaks end → session closes and a box is created

For each peak session, the script records:

Start bar index

End bar index

Highest high within the session

Lowest low within the session

These values determine the box boundaries.

This allows the indicator to group related peaks into a single price zone, instead of drawing a box for every bar.

4. Drawing the Volume Peak Box

When a session ends, the script draws:

A filled box covering the full price range

From startBar → endBar

Using user-defined:

Box fill color

Border color

Each box visually marks a region where strong participation entered the market, often signaling:

Breakout validation

Absorption zones

Supply/demand imbalance

High-activity trading decisions

How to Use

Use the boxes to identify high-volume reaction zones.

When price revisits a box:

Expect strong reactions (bounce, rejection, or absorption).

When price breaks out from a box:

Can signal continuation with momentum.

Lower-timeframe entry signals become more reliable when aligned with high-timeframe volume boxes.

Recommended to lock the TF to:

60m for intraday

4H or 1D for swing trading

Why This Script Is Original

It uses Bollinger Bands on volume, not price — a less common volatility-based method for detecting volume anomalies.

It groups continuous peaks into unified zones instead of treating each spike separately.

The ability to lock the volume analysis to a higher timeframe allows multi-timeframe volume interpretation without cluttering the chart.

Boxes give traders a clean and intuitive view of volume-based “decision zones”.

🇹🇭 Thai Description — คำอธิบายภาษาไทย

ภาพรวม
อินดิเคเตอร์ Volume Peak Box ใช้การตรวจจับ “Volume Peak” โดยใช้ Bollinger Band บน Volume แล้วสร้าง “กล่องช่วงราคา” ครอบช่วงที่มี Volume สูงผิดปกติ ทำให้เห็นบริเวณที่มีแรงซื้อขายเข้ามาอย่างชัดเจน เช่น จุด Breakout, จุด Absorption, หรือเขต Supply/Demand

แนวคิดและหลักการทำงาน
1. วิเคราะห์ Volume จาก Timeframe ที่ล็อกไว้

คุณสามารถเลือก TF ที่ต้องการให้ Volume ถูกนำมาคำนวณ เช่น 60 นาที, 4 ชั่วโมง, 1 วัน
แม้คุณจะเปิดกราฟ TF เล็ก เช่น 5m แต่กล่องยังอิง volume จาก TF ที่เลือกไว้ ทำให้ได้ “โซน Volume ใหญ่” ที่แม่นยำขึ้น

2. Bollinger Band บน Volume

ใช้ SMA + ส่วนเบี่ยงเบนมาตรฐานของ Volume เพื่อหา “จุดที่ Volume สูงกว่าปกติอย่างมีนัยสำคัญ”

เงื่อนไข Peak:

Volume > Upper Bollinger Band


นี่เป็นวิธีที่ดีกว่า “เทียบกับแท่งก่อนหน้า” เพราะคิดจากสถิติของทั้งช่วง

3. รวม Peak ต่อเนื่องเป็นกล่องเดียว

ถ้า Volume Peak เกิดต่อเนื่องหลายแท่ง:

จะถูกจับรวมเป็น Peak session เดียว

ใช้ High สูงสุด และ Low ต่ำสุดของทั้ง session

เมื่อ Peak จบ → วาดกล่องช่วงราคา

เหมาะกับการหาจุดที่ตลาดมีแรงเข้าซื้อ/ขายหนักในช่วงเวลาเดียวกัน

4. วาดกล่อง Volume Peak

กล่องจะครอบ:

ช่วงแท่งเริ่มต้น → แท่งสุดท้ายของ Peak

ความสูงของกล่อง = ช่วงราคาที่มี Volume สูงผิดปกติ

กล่องสามารถใช้เป็น:

โซน Breakout/Breakdown

โซน Supply/Demand

เขตที่ราคามักมี reaction

วิธีใช้งาน

ใช้กล่องเป็น “เขตการตัดสินใจ” (Decision Zone)

ราคาแตะซ้ำมักเกิดการกลับตัวหรือความผันผวนสูง

การทะลุกล่องบ่อยครั้งนำไปสู่ขาเทรนด์ใหญ่

เหมาะกับการใช้ร่วมกับ Price Action และโครงสร้างราคา

จุดเด่น / ความเป็น Original

ใช้ Bollinger Band บน Volume (น้อยอินดี้ทำ)

รวม Peak ต่อเนื่องเป็น session เดียว

วิเคราะห์ Volume ข้าม TF ได้ โดยไม่ต้องเปลี่ยน TF บนกราฟ

ได้ “โซน Volume สำคัญ” แบบชัดเจน อ่านง่าย ไม่รกจอ

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.