Indicator · Price Action & Patterns
Available

Breakout Box

Quiet ranges boxed as they form on the chart's own bars, the breakout with its stop and five targets at box heights, failed breakouts marked, and how often each target was actually reached.

Available·NinjaTrader 8·mdtBreakoutBox
chart image
Breakout Box on a NinjaTrader 8 chart
What it shows

The box, the break, and which targets were hit.

Boxes drawn while they form

When the last 12 bars all sit within 2.5 ATR high to low, a box appears over them, dashed while it is still growing. A bar that keeps the whole box within the limit joins it; a bar that would stretch it past the limit without a breakout dissolves it.

One yardstick per box

The ATR is taken as of the bar before the box formed, and the box keeps it for its growth limit and its breakout buffer.

The breakout and the failure rule

A close beyond an edge by more than 0.1 ATR freezes the edges and marks the break on that side. A close back inside the box within 5 bars is a failed breakout.

Stop and five targets

Entry at the breakout close, stop at the opposite edge (or the midpoint), TP1 to TP5 at one to five box heights beyond the broken edge. The trade runs to TP5, the stop or a 240-minute time stop on the hidden 1-minute series, stop first inside a minute, and every tier it reached before the exit is recorded.

The targets-reached panel

For each tier the share of trades that got there, with n and a 95 percent range; the average net R after costs with an exit at TP5; stops and time stops; the dates covered. All as of the bar in view.

A fake-breakout tag on each break

How often earlier days' box breakouts like this one failed, with n and its range, from the Fake-Breakout Filter module. Optional alert on a breakout.

On the chart

What it looks like in a session.

screenshot 1
screenshot 2
screenshot 3
clip: scrolling the chart
Scrolling the chart: the rendering in real time, and the panel buttons.

Background

Compression first, then the move.

A consolidation box is the chart's form of compression: a run of bars that stays inside a narrow range relative to recent volatility. The idea goes back to Nicolas Darvas's boxes and to the narrow-range work on NR4 and NR7 bars: when a market has stopped moving, the next move tends to be worth more than the last. The tool measures the quiet in ATR units, so the same rule applies on any instrument and any bar size.

A dashed box is still forming and can still grow; a solid box has broken and its edges are final. The breakout bar is marked on the side it broke. From there the stop line sits at the far edge and the target lines step away one box height at a time, TP1 to TP5. A breakout that closed back inside within the window is marked failed. The panel reads as a ladder: the share of breakouts that reached TP1, then TP2, and so on, each with its sample size.

The box does not say which way the break will go, and the targets are box heights, not forecasts. The tier shares are a record of this chart's breakouts after costs, so they are only as good as their sample size, which is why n and the range sit next to every number. The box size, the buffer, the failure window and the stop choice are settings, and a change rebuilds the record live.

illustration
A dashed box over twelve tight bars turning solid as a bar closes above its top edge, with a stop line at the bottom edge and TP1 to TP5 lines stacked one box height apart above it.
Settings

Every setting, explained.

Read from the indicator's own settings, so this table always matches the current build.

GroupSettingWhat it does
BoxATR period (chart bars)
Bars to form a box
Box height at most (x ATR)
BreakoutClose beyond the edge (x ATR)
Failed if back inside within (bars)
Trade and costsStop atThe box's opposite edge or its midpoint. Targets: 1 to 5 box heights beyond the broken edge; entry at the breakout close.
Time stop (minutes)
Slippage (ticks per side)
Commission (per round turn)Futures only; other instruments count the slippage only.
History and alerts1-minute days (track record window)The chart's loaded days with 1-minute data for the outcomes (a change needs a reload).
Alert on a breakout

One license. Every tool.

Breakout Box is one of 76 tools in the Suite.