OPEN-SOURCE SCRIPT
Break & Volume: breakout bars with volume context

WHAT IT DOES
The simplest useful question, answered on every bar: did price just break the recent high or low, and did volume show up for it? Break bars are painted green or red, a small label prints the volume ratio versus its average, and the broken level stays on the chart as a dashed line until price revisits it.
HOW IT WORKS
- A break = close beyond the highest high or lowest low of the previous N bars (default 5).
- Volume context = current volume against a 20-bar average; 1.5x and up is the spike zone.
- Breaks confirm on bar close by default — no repaint, no intrabar flicker.
- Broken levels persist as reference lines and clear themselves once revisited, so the chart self-cleans.
HOW TO USE IT
Any symbol, any timeframe. A break on 2x volume and a break on 0.6x volume are different animals; this makes the difference visible at a glance. Pairs naturally with structure tools or the pattern colorer.
WHAT IT CAN'T DO
It measures the break, not the follow-through. Low-volume breaks fail often — that is precisely what the label is there to warn you about.
SETTINGS
Lookback bars, volume average length, level lines, volume labels, label size, confirm-on-close.
Open source. Free. One glance, two facts, no clutter.
The simplest useful question, answered on every bar: did price just break the recent high or low, and did volume show up for it? Break bars are painted green or red, a small label prints the volume ratio versus its average, and the broken level stays on the chart as a dashed line until price revisits it.
HOW IT WORKS
- A break = close beyond the highest high or lowest low of the previous N bars (default 5).
- Volume context = current volume against a 20-bar average; 1.5x and up is the spike zone.
- Breaks confirm on bar close by default — no repaint, no intrabar flicker.
- Broken levels persist as reference lines and clear themselves once revisited, so the chart self-cleans.
HOW TO USE IT
Any symbol, any timeframe. A break on 2x volume and a break on 0.6x volume are different animals; this makes the difference visible at a glance. Pairs naturally with structure tools or the pattern colorer.
WHAT IT CAN'T DO
It measures the break, not the follow-through. Low-volume breaks fail often — that is precisely what the label is there to warn you about.
SETTINGS
Lookback bars, volume average length, level lines, volume labels, label size, confirm-on-close.
Open source. Free. One glance, two facts, no clutter.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน