OPEN-SOURCE SCRIPT

Break & Volume: breakout bars with volume context

249
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.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.