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.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.