Skip to content
Script type
Indicator
Source code
Open-source
Purpose
Trade signals

Z-Score Range Boxes Breakout

Boxes the range after a Z-Score extreme and flags breakouts.

Difficulty Intermediate

No.VOW-000037

The rule for creating a box is simple: it appears when the smoothed Z-Score crosses beyond ±2. Using it well, though, means knowing a few display rules, such as a box locks in after 11 bars including the starting bar, marker color follows the direction of the breakout rather than the color of the box, and only the broken side's line stops while the opposite line keeps extending. Taking every marker as a trade signal also leaves you open to fakeouts, so you'll want to filter direction with something like an EMA. If you're already familiar with Bollinger Bands and breakout trading, the diagrams make this easy to pick up, which is why we rate it intermediate.

Repainting
Backpaints
  1. Live barChanges
  2. On closeFixed
  3. HistoryBackpaints
When a box locks in, its top, middle and bottom lines are drawn back to the box's starting bar, but markers on closed bars and the box levels never move afterward.
Best timeframes
  • Lower TFs≤15m
  • Mid TFs30m–4H
  • Higher TFs1D+
Tested on BTCUSD (1H, 4H, 1D)
Alerts
No
Buy/sell signals
Yes
Market conditions
High volatility, Trending
Display
Both
Chart elements
BoxesLinesLabels
Base indicator
SMAZ-Score
Trading style
Swing TradingDay Trading
Support & ResistanceBreakout

A TradingView Breakout Indicator That Auto-Boxes the Range After Pumps and Dumps

Diagram gallery 8

Article Summary
What does this indicator do?
Bottom line

"Z-Score Range Boxes Breakout" draws a box from the 11 bars of highs and lows that start when the smoothed Z-Score crosses beyond ±2, then marks any bar that closes above the top or below the bottom. Signals on closed bars don't repaint, but narrow boxes throw off back-to-back markers and more fakeouts.

Tell me more
Key points
  • The Z-Score in the lower pane shows where price sits relative to a Bollinger Band setup with a length of 20 and a deviation of 2.
  • When the Z-Score, smoothed over 5 bars, drops below -2, an aqua box appears on the price chart; when it rises above +2, an orange box appears.
  • Each box is defined by the highs and lows of 11 bars including the starting bar, and once it locks in, three lines (top, middle, bottom) extend to the right.
  • A close above the top gives an aqua marker and a close below the bottom gives an orange one, so marker color follows the breakout direction, not the box color.
  • Only the broken side's line stops, while the opposite line keeps extending until the next box forms, so a single box can produce markers in both directions.
  • Narrow boxes tend to produce back-to-back up and down markers, and treating them as standalone trade signals gets you whipsawed.
  • It pairs well with an EMA: set the trend direction first, then take only the markers that agree with it, on a confirmed bar.
  • No breakout alerts are built in, so you can draw horizontal lines at the box top and bottom and set alerts on those instead.

“Z-Score Range Boxes Breakout” boxes up the consolidation that follows an overextended move

“Z-Score Range Boxes Breakout”, published by BigBeluga, uses the moment price stretches far from its average as a trigger, records the range that forms right after as a box, and leaves that box’s top and bottom on the chart as breakout levels. The oscillator spots the overextension, and the price chart shows where price has to break for the next move to start. Two jobs, one indicator. It’s a genuinely practical idea.

“Z-Score Range Boxes Breakout” on a TradingView 4H chart. Boxes and breakout levels on the price chart, Z-Score in the lower pane.
“Z-Score Range Boxes Breakout” on a TradingView 4H chart. Boxes and breakout levels on the price chart, Z-Score in the lower pane.

What first caught my eye was that it automatically draws the “this is where the real move starts” levels right after a pump or a dump. Price usually chops around for a while after a sharp move, and redrawing that range by hand every time is more tedious than it sounds. “Z-Score Range Boxes Breakout” does it for you, mechanically.

The more I used it, though, the clearer it became that a few small rules drive every decision: how many bars define a box, when each line stops, and what the marker colors actually mean. In this review I walk through the behavior I verified on Bitcoin charts, step by step, with diagrams.

The big picture first

In a nutshell: the Z-Score in the lower pane pushes outside ±2 → a box starts on the price chart on that same bar → once the box locks in, three lines extend to the right → when a candle closes beyond a line, a marker prints. Follow the whole sequence in the figure.

An overextended Z-Score kicks off a box on the price chart

Box building starts on the price chart on the same bar where the Z-Score in the lower pane drops below -2.

An overextended Z-Score kicks off a box on the price chart① Bar where Z drops below -2 ② Box starts on the same bar ③ Close breaks the locked-in top: marker printsZ-Score Range Boxes BreakoutZ: -2.13 -202Bar where Z drops below -2Box starts on the same barClose breaks the locked-in top:marker prints

Vowars DE ver.3.12.11

The box is defined by the highs and lows of 11 bars including the trigger bar. Once it locks in, top, mid and bottom lines extend to the right. A small marker prints on the bar that closes beyond a line.

The key detail is that the bar where the Z-Score drops below -2 Figure 1 and the bar where the box starts Figure 2 are the same bar. The oscillator and the price chart line up vertically, so if you ever wonder why a box is sitting somewhere, one glance at the lower pane answers it.

Where it shows upElementHow to read it
Lower paneGradient line (Z-Score)The closer to aqua, the further below the average; the closer to orange, the further above it
Lower pane±2 dashed lines and fillColor fills only the part of the line that pushes past the dashed levels
Price chartBox and “Z: value” labelThe range over a fixed number of bars starting at the overextended bar. The value is the Z-Score on the trigger bar
Price chartTop, mid and bottom linesBreakout levels that extend to the right once the box locks in
Price chartSmall markersAqua = upside breakout, orange = downside breakout

The lower pane is basically “where price sits inside the Bollinger Bands,” flattened out

The math itself is simple. A Z-Score measures how far the close is from its recent average, expressed in standard deviations (a measure of how spread out price has been). By default, “Z-Score Range Boxes Breakout” uses a 20-bar simple moving average and standard deviation, then smooths the result with a 5-bar moving average.

That’s essentially the same yardstick as 20-period, 2-standard-deviation Bollinger Bands. A Z-Score of +2 means the close is sitting on the upper band, and -2 means it’s on the lower band. In other words, the lower pane is best thought of as price’s position inside the Bollinger Bands, redrawn on a flat horizontal scale.

Boxes are triggered by the 5-bar smoothed Z-Score. This is easy to miss. A single close poking outside the +2σ band won’t push the smoothed value past 2 very easily. The condition only fires once price has hugged the outside of the band for several bars, so the indicator is built to ignore one-off spikes.

The line color shifts between -3 and +3

The Z-Score line uses a gradient that goes from aqua at -3 to orange at +3. Beyond ±3 the color stops changing, so if you’re reading “how stretched is it?” from the color, ±3 is the useful limit. The fill that appears past the dashed levels gets darker the further the line moves away from them.

How a box forms and turns into three lines

The box is the heart of “Z-Score Range Boxes Breakout.” It looks simple, but it’s built in a very specific order. Walk through it step by step in the figure.

The box grows over 11 bars, then turns into three lines on the last one

From the bar where Z crosses below -2, the box grows by picking up the highs and lows of 11 bars at default settings.

The box grows over 11 bars, then turns into three lines on the last one① Starts with just the trigger bar's high and low ② Over 11 bars, expands with every new high and low ③ Top, mid and bottom lock in on bar 11Z-Score Range Boxes BreakoutZ: -2.22 -202Starts with just the triggerbar's high and lowOver 11 bars, expands withevery new high and lowTop, mid and bottomlock in on bar 11

Vowars DE ver.3.12.11

Box Period Length (Bars) defaults to 10, but the trigger bar counts too, so the box spans 11 bars. On the bar it locks in, the top (solid), midline (dashed) and bottom (solid) are drawn.

1 The trigger is the bar where the Z-Score crosses ±2

When the smoothed Z-Score crosses below Oversold Trigger Level (-3 or -4) you get an aqua box, and when it crosses above Overbought Trigger Level (3 or 4) you get an orange box. At first, the box only covers the high and low of that single trigger bar Figure 1. The number inside the box, like “Z: -2.22,” is the Z-Score calculated on that trigger bar.

2 For 11 bars, the box stretches to fit the highs and lows

From there, every new bar that makes a higher high or a lower low stretches the box up or down Figure 2. Box Period Length (Bars) defaults to 10, but the trigger bar counts too, so the box actually spans 11 bars. I assumed it was 10 at first and only caught it after recounting the candles.

3 Top, mid and bottom lock in on the last bar

The box locks in on the 11th bar. At that moment, three lines are drawn: the top (solid), the midline (dashed) and the bottom (solid) Figure 3. The dashed midline sits exactly halfway between the top and bottom. From the next bar on, all three lines extend to the right one bar at a time.

Box color shows which way price got overextended

In the settings, the aqua box color is called Oversold / Bullish Color and the orange one Overbought / Bearish Color, but the box color does not tell you whether to buy or sell. Aqua just means price got stretched below its average, and orange means it got stretched above. Which way it breaks afterward is a separate question.

Breakout markers, and which lines stop or keep going

Once the box locks in, you’re waiting for a candle to close beyond the top or the bottom. There are a few rules here that are easy to misread.

Even after an upside break, the bottom line survives and can still catch a breakdown

Only the broken side's lines stop; the opposite line keeps extending until the next box forms.

Even after an upside break, the bottom line survives and can still catch a breakdown① Aqua marker on the bar that closes above the top ② Top and midline stop here ③ Bottom line survives; orange marker when it breaksZ-Score Range Boxes BreakoutZ: 2.14Z: -2.16 -202Aqua marker on the barthat closes above the topTop and midline stop hereBottom line survives; orangemarker when it breaks

Vowars DE ver.3.12.11

Even an orange box (created when Z crossed above +2) gets an aqua marker if it breaks to the upside. Marker color follows the breakout direction, not the box color.

Marker color follows the breakout direction, not the box color

When a candle closes above the top, an aqua marker prints below that candle Figure 1. When a candle closes below the bottom, an orange marker prints above it. The box on the left side of the figure is orange, but it broke to the upside, so the marker is aqua.

Only the close counts. A wick poking through a line won’t print a marker. Also, the bar where the box locks in can never print a marker; the earliest possible signal is the next bar. That one-bar delay is by design.

Only the broken side stops; the other side keeps running

On an upside breakout, the top line and the midline stop just before the breakout bar Figure 2. The bottom line, however, keeps extending, and if a candle later closes below it, an orange marker prints Figure 3.

That’s why a single box can produce both an upside and a downside marker. The script’s description says the lines get cleared on a breakout to reset for the next signal, but in practice the lines don’t disappear. They simply stop extending and stay right where they are.

EventTop lineMidlineBottom lineMarker
Close breaks above the topStops hereStops hereKeeps extendingAqua, below the candle
Close breaks below the bottomKeeps extendingStops hereStops hereOrange, above the candle
Next box is triggeredStopsStopsStopsNone

No new box while one is still forming

Another important rule: only one box can be under construction at a time. If the Z-Score crosses ±2 again while a box is still forming, no new box is created Figure 1.

No new box while one is forming, and a new box stops the old lines

Only one box can be built at a time. Overextensions that happen while a box is forming are ignored.

No new box while one is forming, and a new box stops the old lines① Z re-crosses +2 mid-box, but no new box appears ② Lines stop right before the next box starts ③ A forming box has its right edge drawn in advanceZ-Score Range Boxes BreakoutZ: 2.12Z: 2.1Z: 2.16 -202Z re-crosses +2 mid-box,but no new box appearsLines stop right beforethe next box startsA forming box has itsright edge drawn in advance

Vowars DE ver.3.12.11

The box on the far right has its frame drawn 10 bars ahead of the trigger bar and expands up and down as new bars arrive. Until it locks in, its height is still subject to change.

On the other hand, when a new trigger fires after a box has locked in, every line that was still extending stops right before it Figure 2. That applies even to lines that were never broken. If you see a line that just ends mid-chart, it’s usually where the next box started.

To be precise, the lockout covers the 11 bars of the box plus the one bar right after it locks in. If the Z-Score crosses ±2 again on that very next bar, it’s skipped.

A box that’s still forming, like the one on the far right, has its frame drawn 10 bars ahead of the trigger bar right away Figure 3. Its height isn’t final yet, so it’s way too early to use that top or bottom for limit orders. When the frame appears, count how many bars are left until the lines get drawn and wait for the box to lock in. That’s the calmer way to use it.

What I saw running it on Bitcoin

Here’s what I noticed after loading “Z-Score Range Boxes Breakout” on Bitcoin’s 4H, daily and 1H charts and following it by eye.

On the 4H, orange boxes stack up along the uptrend

A Bitcoin 4H example where the same box's top and bottom produced both a downside and an upside breakout marker, days apart.
A Bitcoin 4H example where the same box’s top and bottom produced both a downside and an upside breakout marker, days apart.

On the 4H chart from mid-August to late September 2026, most of the boxes were orange. Several times, a box formed each time the Z-Score pushed above +2 during the rally, price broke its top and moved up to the next step, like a staircase. It’s an easy pattern to read.

The box from late August was the interesting one. Price first closed below the bottom and printed an orange marker, then in early September a close broke above the top line that had kept extending, and this time an aqua marker printed. One box ended up acting as the breakout level for a move more than a week later. If you don’t know that the opposite line stays alive, you’ll probably be confused about which box that aqua marker came from.

On the daily, one box can frame the range for months

A daily Bitcoin example where a box formed during a sell-off served as the top and bottom of the range for about three months.
A daily Bitcoin example where a box formed during a sell-off served as the top and bottom of the range for about three months.

The daily chart was even more extreme. The aqua box that formed when the Z-Score dropped below -2 during the February 2026 sell-off acted as a frame for roughly three months, with price chopping around between its top and bottom most of that time. After an aqua marker printed on a break above the top in early May, price pushed one leg higher, but the rally didn’t last and rolled over within about 10 days. Breaking the top of a box doesn’t guarantee a big trend.

The aqua box from June, on the other hand, printed an orange marker on a break below its bottom and then quickly reversed and rallied. That downside marker turned out to be a shakeout near the lows. A classic trap. The next upside marker came in mid-August, which means the top of the June box stayed alive as a breakout level for more than two months.

On the 1H, boxes get tighter and markers get more frequent

On the 1H chart, boxes line up in quick succession and breakout markers show up more often.
On the 1H chart, boxes line up in quick succession and breakout markers show up more often.

Drop down to the 1H and you get noticeably more boxes and more markers. The chart gets busy. The aqua box that formed around midnight on September 24 printed a marker when price broke its bottom that same evening, but price then chopped around near the box, and only the top line kept extending sideways for about three days. The lower the timeframe, the tighter the boxes, so markers print more easily, but each one carries less weight.

Fakeouts love tight boxes

The thing I’d watch out for most is markers from tight boxes. They stand out more on lower timeframes. When a trigger fires in the middle of a consolidation, the box locks in while the 11 bars’ highs and lows are still close together, so the top and bottom end up very close to each other.

In a tight box, upside and downside markers can print back to back

When the box is narrow, even a small move can break both the top and the bottom.

In a tight box, upside and downside markers can print back to back① Breaks the bottom: orange marker ② Next bar breaks the top: aqua marker ③ Tight box = top and bottom sit close togetherZ-Score Range Boxes BreakoutZ: 2.13Z: -2.2 -202Breaks the bottom:orange markerNext bar breaks the top:aqua markerTight box = top andbottom sit close together

Vowars DE ver.3.12.11

Jump on the first downside break and the next bar's upside break whipsaws you. Both markers are based on confirmed closes, so they won't disappear, but that doesn't mean the direction is right.

In the figure, price breaks below the bottom and prints an orange marker Figure 1, and on the very next bar it closes above the top and prints an aqua marker Figure 2. Both markers are based on confirmed closes, so neither disappears, but anyone who jumped on the first signal would have been whipsawed the other way. That one hurts.

Treat markers as a cue to check, not a signal to jump in

When the box is only one or two average candles tall for that timeframe, it’s safer to hold off on acting right away and check whether the next bar stays outside the line. Both sides break easily in that situation, and your stop ends up far too close.

Boxes that stretched wide after a big pump or dump are a different story. There’s plenty of distance between the top and bottom, so a break actually means something. I think that range difference is a big part of why the markers on the 4H and daily felt more meaningful.

The other trouble spot is the middle of a strong trend. In an uptrend the Z-Score pushes above +2 over and over, so orange boxes keep printing. An orange marker on a break below one of those boxes can turn out to be nothing more than a pullback rather than the end of the trend. Having a separate yardstick for which markers to take makes the call much easier (more on that below).

Settings, and how to tune them for your goal

The parameter names below are exactly as they appear in the settings panel.

Parameters
SettingDefaultSuggestedEffect
Z-Score Length2020 (standard) / 30–50 (longer)Number of bars used for the average and standard deviation. Raising it measures distance from a longer-term average, so during trends the Z-Score stays outside ±2 for longer
Z-Score SourcecloseclosePrice source for the Z-Score. Switching to high or low brings wick extensions into the calculation. Breakouts are always judged on the close regardless of this setting
Smoothing Line Length53–8Number of bars used to smooth the Z-Score. Lower reacts faster and creates more boxes; higher lags more and produces fewer triggers
Oversold Trigger Level (-3 or -4)-2.0-2.0 to -2.3An aqua box forms when the Z-Score crosses below this level. Adjustable in 0.1 steps
Overbought Trigger Level (3 or 4)2.02.0 to 2.3An orange box forms when the Z-Score crosses above this level. Adjustable in 0.1 steps
Box Period Length (Bars)1010 (standard) / 15–20 (less noise)Number of bars the box tracks highs and lows for. Including the trigger bar, the box locks in after this number + 1 bars
Oversold / Bullish ColorAquaYour preferenceColor of aqua boxes, lines and upside breakout markers
Overbought / Bearish ColorOrangeYour preferenceColor of orange boxes, lines and downside breakout markers

Box Period Length (Bars) sets box size and how early markers print

The setting with the most obvious effect is Box Period Length (Bars). I ran the same price action with it set to 5 and 20 and put them side by side. For the default of 10, see the box-building figure.

Box Period Length (Bars) at 5: smaller boxes, earlier markers

Same price action as the box-building figure, with only this setting changed to 5.

Box Period Length (Bars) at 5: smaller boxes, earlier markers① A small box that locks in after 6 bars ② Upside marker 4 bars earlier than default ③ Breakdown marker as the surviving bottom breaksZ-Score Range Boxes BreakoutZ: -2.22 -202A small box that locksin after 6 barsUpside marker 4 barsearlier than defaultBreakdown marker as thesurviving bottom breaks

Vowars DE ver.3.12.11

The box locks in after 6 bars including the trigger bar, so it's narrower and the upside marker prints earlier than with the default. The trade-off is that tight boxes break on even small wiggles.

At 5, the box locks in after 6 bars including the trigger bar Figure 1, and the upside marker printed 4 bars earlier than with the default Figure 2. You get in earlier. The flip side is that smaller boxes fall into the fakeout pattern from the previous section more easily.

Box Period Length (Bars) at 20: bigger boxes, fewer markers

Same price action, with this setting changed to 20.

Box Period Length (Bars) at 20: bigger boxes, fewer markers① Over 21 bars, the box swallows both the rally and the drop ② Top and bottom remain as major levelsZ-Score Range Boxes BreakoutZ: -2.22-202Over 21 bars, the box swallowsboth the rally and the dropTop and bottom remainas major levels

Vowars DE ver.3.12.11

The box swallows both the rally and the drop, so not a single marker prints in this stretch. Use the remaining top and bottom as major levels.

At 20, the box swallows both the rally and the drop Figure 1, and not a single marker printed in this stretch. In exchange, the top and bottom that remain become much bigger levels Figure 2. It’s the setting for when you want fewer markers and only care about breaks of large ranges.

About the “-3 or -4” in the threshold names

Oversold Trigger Level (-3 or -4) and Overbought Trigger Level (3 or 4) have 3 and 4 right in their names, but the defaults are ±2.0. A little confusing. Across the periods I had loaded on Bitcoin’s 4H, daily and 1H charts, the 5-bar smoothed Z-Score reached ±3 only once, on the daily. Smoothed values rarely swing that far out, so if you plug in ±3 or ±4 as the names suggest, you’ll barely get any boxes.

Even a small widening of the thresholds has a big impact. In a test on randomly generated price data, setting them to ±2.5 cut the number of boxes to about a tenth of the default. My suggestion is to start at ±2.0, and if you feel there are too many boxes, widen them in 0.1 steps up to around ±2.3.

Setting combos by goal

GoalWhat to changeWhy
More boxes and markers, faster reactionsSmoothing Line Length to 3, Box Period Length (Bars) to 5–7Triggers come earlier and boxes get smaller. Expect more fakeouts, so trade in the direction of the higher timeframe
Less noise, only the big breakoutsBox Period Length (Bars) to 15–20, thresholds around ±2.2Bigger boxes and fewer markers. Suited to swing trading
Avoid chop on lower timeframesBox Period Length (Bars) around 15On the 1m and 5m, an 11-bar range is often too tight, so stretching the box horizontally gives it more room
Measure distance from a longer averageZ-Score Length to 30–50During trends the Z-Score stays outside ±2 for longer, and triggers now mean “overextended relative to the longer average”

Running Smoothing Line Length through the same test, 3 produced about 1.5x as many boxes as the default, and 8 cut them to less than half. Faster reactions mean more boxes, slower means fewer. That’s all you really need to remember.

There’s no “correct” value for any of these. What works depends on the asset and how much the timeframe moves. If you’re looking for a good fit, markets that make a sharp move and then stall, such as gold or index futures around news releases and session opens, are strong candidates, because that’s exactly the “overextend, then consolidate” behavior the boxes assume. Start with the defaults, look back over a month or two, and adjust once you’ve seen how wide the boxes are and how many markers print.

Pair it with an EMA to decide which markers to take

As mentioned in the fakeout section, “Z-Score Range Boxes Breakout” prints upside and downside markers with equal weight. The pairing I think works best is to overlay an EMA (exponential moving average) and only take markers in the direction of the trend.

Overlaying a 50 EMA makes it easier to pick which markers to take

Among markers printed above a rising EMA, prioritize the ones pointing the same way as the trend.

Overlaying a 50 EMA makes it easier to pick which markers to take① Upside break with the EMA sloping up ② A breakdown above the EMA is counter-trendZ-Score Range Boxes BreakoutZ: 2.26Z: 2.02 -202Upside break withthe EMA sloping upA breakdown above the EMAis counter-trendEMA 50

Vowars DE ver.3.12.11

While the EMA slopes up and price holds above it, treat aqua markers as the main signal and orange markers as a possible start of a pullback. The EMA is added here only for illustration and is not part of this indicator.

The approach is simple. When the EMA is sloping up and price is above it, treat the aqua upside markers as the main signal Figure 1. An orange downside marker in that same context is more likely the start of a pullback to the EMA than a trend reversal Figure 2. In a downtrend, flip the logic.

For the EMA length, I use something around 50, clearly longer than the 20-bar Z-Score lookback. Using a longer average lets you read short-term overextension and the medium-term trend on two separate yardsticks, which is what makes this combo work. Note that the EMA isn’t part of “Z-Score Range Boxes Breakout”; add TradingView’s Moving Average Exponential to the chart separately.

Check the higher-timeframe boxes too

When trading markers on the 1H, it’s also worth checking where the 4H and daily box tops and bottoms are. “Z-Score Range Boxes Breakout” has no option to display higher-timeframe boxes, but with TradingView’s multi-chart layout you can put a higher timeframe next to it and compare the boxes from the same indicator. How many charts you can show depends on your plan.

Before you use it: repainting and alerts

What prints on a closed bar stays put

No future bars or higher-timeframe data are pulled in anywhere. Markers printed on closed bars and the top and bottom of a locked-in box never get redrawn somewhere else later. A forming box expanding or lines extending to the right is simply the designed behavior described above.

The live bar (the real-time bar that’s still forming) is a different story. If the Z-Score crosses ±2 or price moves beyond a line mid-bar, the box or marker shows up right away. If the condition no longer holds by the time the bar closes, it disappears. That’s just how indicators run on TradingView, not a flaw specific to this one, but you’ll avoid a lot of confusion if you make it a rule to only act on markers after the bar closes.

No built-in alerts (as of 2026/9/29)

The script’s description mentions breakout alerts, but the version published as of 2026/9/29 doesn’t include any alert conditions for breakouts. In other words, there’s currently no way to get notified directly when a marker prints. That’s a bit of a letdown.

There are two workarounds. The first is an alert based on one of the indicator’s plots. TradingView lets you create alerts on the lines an indicator draws (its plots) using conditions like “Crossing.” Set one for when “Smoothed Z-Score Gradient” crosses 2 or -2, and you’ll know a box has started forming. Keep in mind that it will also fire on crosses that happen while a box is still forming, so check the chart to confirm a new box actually appeared. The second is to draw your own horizontal lines at the top and bottom once the box locks in and set alerts on those lines. If you set the alert to trigger “Once Per Bar Close,” it gets quite close to the close-based condition the markers use.

Use Bar Replay to review past behavior

This indicator isn’t a strategy, so it can’t produce a Strategy Tester performance report. If you want to review past behavior, use Bar Replay and step forward one bar at a time; you’ll see the box expand, lock in and extend its lines in the same order as in real time. How far back you can go depends on your plan and the timeframe.

Old boxes disappear once there are enough of them

Boxes, lines and markers are each capped at 500 on the chart. Once the cap is exceeded, the oldest ones are removed automatically, so if you scroll far back on something like the 1m chart, older boxes may be missing. Since each box uses three lines, the line cap is actually reached before the box cap.

Where it shines, and where to be careful

Where it shines

  • Automatically boxes up the range after a pump or dump, so you no longer have to redraw the top and bottom by hand
  • Each box starts on the same bar as the Z-Score trigger in the lower pane, so you can instantly see why a box is there
  • The opposite line stays alive, so one box can track breakouts days later
  • Anything printed on closed bars doesn’t repaint, so it behaves the same on historical and live charts
  • Only a handful of settings, and changing Box Period Length (Bars) alone adjusts box size and how early markers print

Where to be careful

  • Tight boxes tend to print upside and downside markers back to back
  • Box colors and marker colors mean different things, which is easy to misread at first
  • No breakout alerts, so notifications take some workarounds
  • In strong trends, same-direction boxes keep coming, and counter-trend markers can turn out to be mere pullbacks
  • It can’t catch a new overextension during the 11 bars of box building or the bar right after the box locks in

Treat the box lines as a map of where the next move starts

The biggest value I found in “Z-Score Range Boxes Breakout” is that it leaves the range formed after an overextended move on the chart in a form you can look back on. Use the Z-Score to set the starting point, build a box from 11 bars of price action, and use its top and bottom as breakout levels. The mechanics aren’t complicated, but for sorting out what happens after a sharp move, it’s much faster and more consistent than drawing lines by hand.

Z-Score Range Boxes Breakout [BigBeluga]

That said, the markers print with equal weight in both directions, so if you trade them on their own, tight boxes and counter-trend signals in strong trends will whipsaw you. Decide the trend direction with something like an EMA, only take markers in that direction, and act only after the marker’s bar closes. Sticking to those three rules alone should cut down on getting chopped up quite a bit, and you’ll second-guess yourself less. Rather than an entry button, the box lines work best as a map of where the picture changes once price breaks out. That’s where this indicator really shines.

Sources: This article is based on hands-on testing and in-depth analysis of the indicator Z-Score Range Boxes Breakout by BigBeluga on the charting platform TradingView.

Disclaimer: This article summarizes our own testing and analysis of how an indicator published on TradingView works and behaves. The symbols, timeframes, and settings used here were chosen to check how the indicator displays—they are not a recommendation to trade those instruments or to use the suggested settings. Indicators can change when their authors update them, so this article reflects the version we tested. All investment decisions are your own.

Never miss a new indicator
Get Vowars in Google search, a browser alert on publish, or updates on X.
YUZURU
AuthorYUZURUFounder & Reviewer, Vowars
View profileClose

An editor for content sites at a web agency, I started trading crypto in 2018. Working my way from spot to futures got me hooked on chart analysis, and I now build my own custom indicators on TradingView. On Vowars, I test TradingView indicators one by one on my own charts and review everything from the math behind them to how to use them and where they fall short, with custom visuals throughout.…

Created by

Vowars Picks

Stochastic Heat Map

“Stochastic Heat Map” Tested: Bottom-to-Top Color Shifts That Show How Real a Move Is

"Stochastic Heat Map" is an oscillator that stacks 28 Stochastics with lengths from 10 to 280 as colors, showing where price sits in its range on every lookback at once. The way color spreads from the bottom rows to the top tells you how strong a move is, but red stays pinned in strong trends, so it works best with direction handled separately by something like an EMA.

DifficultyIntermediate 8 figures

CME Institutional Order Flow & AMT Lens

Auction Market Theory on One Chart: An Indicator That Flags Volume Absorption by Color

“CME Institutional Order Flow & AMT Lens” is a TradingView indicator that combines a volume profile, candle coloring, shelves, and a dashboard in one. It gives no buy or sell signals and instead automatically marks key prices such as the POC and Value Area.

DifficultyAdvanced 7 figures

Fibonacci Trend Continuation Signals [AlgoAlpha]

Measure Pullback Depth Inside a Trend With “Fibonacci Trend Continuation Signals”

"Fibonacci Trend Continuation Signals" is a free TradingView indicator that automatically draws a Fibonacci range in the direction of the trend and prints a continuation signal the moment price starts moving again after a pullback or bounce. It gives you an objective read on pullback depth.

DifficultyIntermediate 5 figures

Smart Trader, Episode 06, Isotropic Trend Lines

Isotropic Trend Lines: Measuring Trend Strength with a Volatility-Adjusted Angle

Isotropic Trend Lines is a channel indicator that puts price on a log scale and divides it by volatility (σ) to produce a trend angle that does not depend on chart scaling. On one screen you get direction, strength, and position in the channel, plus breakout and retest status.

DifficultyIntermediate 10 figures

Strong Burst Fader

Strong Burst Fader: Measure Overextension with Diamond Stacks and Color for Mean-Reversion Fades

“Strong Burst Fader” measures how far the wick pokes outside a hidden moving average plus ATR band and shows that depth as diamond stack height and color, making it a mean-reversion indicator for fading overextended moves. The taller and redder the stack, the deeper the overshoot, and the best setups come when the burst stops at one stack and price closes back inside the band.

DifficultyBeginner 9 figures

Divergence for Many Indicators v4

Divergence for Many Indicators v4 : How to Read Divergence Across 10 Indicators in One Label

"Divergence for Many Indicators v4" is a TradingView indicator that detects divergence across 10 indicators, including RSI and MACD, and shows how many line up in a single label. Signals come early, but only the last one survives within the same swing. It works best once you've defined market direction.

DifficultyIntermediate 6 figures

Browse by goal

1 / 5