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 de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.
Script de código aberto
Em verdadeiro espírito do TradingView, o criador deste script o tornou de código aberto, para que os traders possam revisar e verificar sua funcionalidade. Parabéns ao autor! Embora você possa usá-lo gratuitamente, lembre-se de que a republicação do código está sujeita às nossas Regras da Casa.
Aviso legal
As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.