Spot the Range, Then Ride the Breakout: How “Step Range Breakout & Trailing Stop” Works
Price stalls, chops sideways for a while, then rips out one way or the other. You see it on every chart. But marking out exactly where the range started and ended, and deciding where to bail after the breakout, means drawing the lines yourself every single time. That gets old fast.
Step Range Breakout & Trailing Stop puts that whole sequence on the chart for you. It boxes in consolidation as it forms, colors the box once a candle closes outside it, and then trails price with an ATR (Average True Range) based trailing stop. The number of completed trades and the win rate are tallied in a small table in the top-right corner.

After running it on everything from the 1-minute to the weekly chart, I found the logic simple and the things to watch pretty limited. The flip side is that if you don’t know what triggers a box and what counts as a win, it’s easy to take the win rate in that table at face value. This article walks through each element on the chart one at a time and covers what’s behind it and where it’s actually useful.
Start by looking at one full cycle in the figure. A gray box appears as in Figure 1, and once price closes above the top edge, the box turns green and a trailing stop kicks off from the dot. As shown in Figure 2, the stop ratchets up as price moves, and in Figure 3 the trade ends when price closes below the stop.
One Full Cycle of Step Range Breakout & Trailing Stop
From range detection to the upside break, the trailing stop exit and the search for the next range, all in one chart.
Vowars DE ver.3.12.36
One thing worth noticing in this figure is the win rate in the top right. Price rallies hard after the breakout, yet the table reads “0/1 (0%)”. Because the stop sits three ATRs away, the close at exit ended up below the close of the breakout bar, so it gets logged as a loss. I’ll dig into how wins and losses are counted later on.
Six Things You’ll See on the Chart
Step Range Breakout & Trailing Stop doesn’t draw much. Here’s the full rundown up front.
| Element | Looks like | What it means |
|---|---|---|
| Range box (active) | Gray gradient | The area confirmed as a range once the midpoint stops moving. Price hasn’t broken out either way yet |
| Range box (after breakout) | Green on an upside break, red on a downside break | The color flips to the breakout direction on a close. Past boxes stay on the chart |
| Midline | Thin light-gray line | Sits exactly halfway between the top and bottom of the box. Stops extending on the breakout bar |
| Range label | Small text above or below the box | The height of the box. Shown above while active or after a downside break, moved below after an upside break |
| Trailing stop | Green or red line with a faint band spreading toward price | The exit line, shown only after a breakout. The band is one ATR wide |
| Dashboard | Three-row table in the top right | Last breakout, number of closed trades, wins and win rate |
Direction is shown by the dot at the start of the stop: green for an upside break, red for a downside break, and it only prints on the bar where the breakout is confirmed. There are no “BUY” or “SELL” text labels, so you read direction from the dot’s color and where the stop sits.
When Does a Box Appear? How the Range Is Detected
Step Range Breakout & Trailing Stop takes the highest high and lowest low of the last Structure Length bars (20 by default) and treats the halfway point as the “midpoint.” If that midpoint is exactly the same as it was Consolidation Bars / Length bars ago (5 by default), the area is locked in as a range.
That’s hard to picture in words, so I overlaid TradingView’s built-in Donchian Channels (length 20). The Donchian basis line uses exactly the same calculation as this midpoint. Once the orange basis matches its value from five bars back, as in Figure 1, the range is confirmed on the bar shown in Figure 2.
Range Confirmation and the Box Drawn Back in Time
Overlay Donchian Channels (20) for reference and you can see exactly how the range is detected.
- Donchian Channels basis
- Donchian Channels upper / lower
Vowars DE ver.3.12.36
Two things to remember here. First, the left edge of the box is drawn starting five bars before the confirmation bar. The moment it confirms, the box appears reaching back into the past. Second, as in Figure 3, the top and bottom of the box are fixed at the highest high and lowest low at the time of confirmation, and they don’t move even if the channel widens afterward. Breakouts are judged against these fixed levels.
The setting’s tooltip describes it as the midpoint “remaining unchanged” over consecutive bars, but the actual check compares the current midpoint with the midpoint Consolidation Bars / Length bars ago. It doesn’t look at the bars in between.
That said, the midpoint only moves when the highest high or lowest low gets replaced, so it rarely moves and then lands back on the exact same value. On the chart, you can treat it as essentially “the midpoint hasn’t moved for about five bars”.
What the Gradient Box Is Telling You
The box is built from 16 thin horizontal bands stacked on top of each other, darkest at the top and bottom edges and more transparent toward the middle. The few bands near the center are fully transparent, so a tall box can look like it’s split into two separate boxes. Nothing is broken, that’s just how it renders.
My guess is that the edges are darker because the edges are what matter. A breakout happens the moment price closes beyond either edge, so watching whether candles are pushing into the darker zones tells you at a glance whether a break looks imminent.
The Box Keeps Extending Until Price Breaks Out
There’s no time limit on a box. It keeps stretching to the right until price closes beyond the top or bottom. Even if a wick pokes through an edge, the box stays put as long as the close comes back inside.
When I tested it on the 4-hour chart, a gray box kept extending for nearly a month. The Range label read 7269.63, so it was a big box, and during that whole stretch no new range showed up and no trailing stop was displayed. The higher the timeframe, the more often you’ll get these long waiting periods.

Breakouts Are Decided Only by the Close of a Confirmed Bar
An upside break is when price closes above the top of the box, and a downside break is when it closes below the bottom. Both are evaluated only after the bar closes, so even if the live candle pokes outside the box, the color doesn’t change at that point.
I prepared a downside example in the figure. In Figure 1 the box turns red and the Range label stays on top. On an upside break the label moves below the box, so you can also tell the direction from where the text sits.
What a Downside Break Looks Like
When price closes below the bottom of the box, the box turns red and the stop trails from above.
Vowars DE ver.3.12.36
The stop starts at “three ATRs below the low of the breakout bar” on an upside break, and “three ATRs above the high” on a downside break, as in Figure 2. When the breakout bar is a big candle, both the ATR and the bar’s range are large, so the starting dot can print far away from price. On real charts I often saw the dot land well outside the box.
The band in Figure 3 is filled from the stop line toward price, one ATR wide. The closer price gets to the edge of that band, the less room you have before the stop.
Even if a big wick blows through the box, it isn’t a breakout if price closes back inside. The flip side is that the breakout only prints after the bar closes, so on strong moves price is often already well away from the box by the time you notice. Decide in advance whether you’ll enter on the breakout close or wait for a retest.
Reading the Trailing Stop
After the breakout, the trailing stop takes over from the box. On the long side it calculates “the bar’s low minus ATR × Trailing Stop Multiplier” on every bar and only moves the stop up when that value is higher than the previous stop. The short side works the other way around.
How the Trailing Stop Moves and When It Exits
The stop only moves in your favor, and exits are judged on the close of a confirmed bar.
Vowars DE ver.3.12.36
As in Figure 1, the stop doesn’t move down even when price pulls back. That’s why the line climbs in steps like a staircase.
Exits are also judged on the close, just like breakouts. In Figure 2 a wick tags the stop, but the close holds above it, so the trade stays open. On the other hand, when a big red candle slices straight through as in Figure 3, the exit is filled at that bar’s close, not at the stop level. Keep in mind that on a sharp drop, that means exiting well below the stop.

While a stop is on the chart, no new boxes appear. The search for the next range only starts once the trade is closed. That’s why sideways action in the middle of a rally doesn’t get boxed, and “no box” doesn’t mean “no consolidation”.
What Do Fakeouts Look Like? And How Is the Win Rate Counted?
With any range breakout indicator, fakeouts are probably the biggest concern. Step Range Breakout & Trailing Stop has no filter to weed them out (no volume confirmation, no higher-timeframe bias, nothing like that). If price closes beyond an edge, it’s treated as a breakout right there.
An Upside Break That Turns into a Fakeout, Then Flips Down
Even after a spike breaks out to the upside, a quick rejection hits the stop and the setup flips to a break the other way.
Vowars DE ver.3.12.36
Figure 1 shows an upside break on a big bullish candle during a spike. But price gets pushed back within a few bars, and in Figure 2 it closes below the stop. The exit close is below the breakout bar’s close, so this one is a loss. Right after that, the red box in Figure 3 shows up and the setup flips to a downside break.
That red box is drawn overlapping the rally that just happened. Because a range is drawn back five bars from the bar where it confirms, the left edge of the box can overlap the previous trade. When you scroll back through history, you’ll see upside and downside breaks stacked almost on top of each other and wonder which came first, so check where the stop line ends to get the order right.
The Three Rows of the Dashboard
The table in the top right is made up of the three rows shown in the figure.
Reading the Dashboard in the Top Right
The top-right table sums up how many breakout-to-exit trades ran on the visible chart and how many of them won.
Values in the table are illustrative.
Vowars DE ver.3.12.36
“Last Breakout” in Figure 1 shows the direction of the most recent breakout and the close of the breakout bar. “Closed Trades” in Figure 2 is the number of trades that have been exited, and once it exceeds Win Rate Lookback Trades (100 by default), the oldest ones drop off. “Win Rate” in Figure 3 shows wins, total trades and the percentage, in green at 50% or higher and red below that.
The win/loss rule is simple: it’s a win if the exit bar closes on the favorable side of the breakout bar’s close. It doesn’t look at the size of the move or the P&L. Even slightly favorable counts as a win, and slightly unfavorable counts as a loss. Commissions and spreads aren’t included either.
For reference, here are the win rates I got on each timeframe on October 23, 2026: 1-minute 30/100 (30%), 5-minute 15/62 (24.19%), 15-minute 17/46 (36.96%), 30-minute 38/100 (38%), 1-hour 28/77 (36.36%), 4-hour 21/61 (34.43%), daily 13/33 (39.39%), and weekly 3/6 (50%). The loaded history and number of trades vary widely, so this isn’t a basis for ranking timeframes, but apart from the weekly, every timeframe landed somewhere between the mid-20s and just under 40%.

A trailing stop approach takes a string of small losses in exchange for occasionally catching a big run. Even with a win rate in the 30s, it can still work if the winners are large enough. But this table shows neither move size nor P&L, so that part is something you have to check on your own charts.
Also, the table only counts what’s loaded on the chart. Same symbol, same settings, and the numbers will still change if you look at a different range of history or a different timeframe.
This is an indicator, not a strategy, so it isn’t set up to report P&L in the Strategy Tester. If you want to see P&L, the reliable way is to step through bar by bar in TradingView’s Bar Replay and log the breakout close and exit close yourself. The timeframes available in Bar Replay and how far back you can go depend on your plan.
What Each Setting Changes, and the Personality Behind Each Number
Step Range Breakout & Trailing Stop has six settings, not counting colors. Here are the defaults along with suggested ranges for different goals.
| Setting | Default | Suggested | Effect |
|---|---|---|---|
| Structure Length | 20 | 20–40 | Number of bars used for the highest high and lowest low. Higher values keep the midpoint steadier, so even slow sideways drift gets boxed. Boxes tend to get wider |
| Consolidation Bars / Length | 5 | 5–8 | How many bars back the midpoint is compared with. Higher values make range confirmation stricter and reduce the number of boxes. The box’s left edge is also drawn back by this many bars |
| Range Display Format | Price | Price (Ticks also works for futures) | Unit for the Range label. Price (price distance), Ticks (number of minimum increments), Both (both) |
| Trailing Stop ATR Length | 14 | 14 | ATR period used for the stop distance. Shorter values react faster to recent volatility |
| Trailing Stop Multiplier | 3.0 | 2.0–3.0 | How many ATRs away the stop is placed. Lower values exit sooner and produce more trades |
| Win Rate Lookback Trades | 100 | 30–100 | Number of recent trades used for the win rate. Lower values show only recent performance |
The suggested ranges are values you can adjust within without straying far from the idea behind the defaults. There’s no single right answer here. It comes down to which timeframe you trade and how long you want to hold.
What Happens When You Lower Trailing Stop Multiplier?
The setting most likely to change your results is Trailing Stop Multiplier. the figure compares 3.0 and 1.5 on the same candles.
Trailing Stop Multiplier Compared (3.0 vs 1.5)
Same price action, but a lower multiplier pulls the stop closer, so you exit and start searching for the next range sooner.
Vowars DE ver.3.12.36
At 3.0 in Figure 1, the stop sits far away and the position is held through the sideways stretch after the rally. At 1.5 in Figure 2, it gets stopped out early on the first pullback. The interesting part is what happens next: because it exited early, the range search restarts sooner, and as in Figure 3, that sideways stretch becomes a new box and catches the downside break.
So lowering the multiplier doesn’t just get you out sooner, it increases the number of boxes and signals overall. As a rough guide, around 2.0 if you want more turnover for day trading, and leave it at the default 3.0 if you want to stay in bigger swings. Drop it to 1.5 and, as in this example, small wiggles start stopping you out.
Structure Length: Higher Means More Boxes
Structure Length is the one that tends to be counterintuitive. You’d think more bars would make detection stricter, but in practice the highest high and lowest low get replaced less often, so the midpoint stays put for longer, which makes boxes appear more easily.
Structure Length Compared (20 vs 40)
Look back over more bars and the midpoint moves less often, so even slow sideways drift gets boxed.
Vowars DE ver.3.12.36
The slow, drifting sideways action in Figure 1 doesn’t become a box at 20. At 40, it gets detected as a box as in Figure 2 and catches the downside break that follows. The box currently extending in Figure 3 also gets detected earlier at 40, and it’s wider too.
Want more boxes? Increase Structure Length. Want to narrow it down to spots where price has truly stalled? Increase Consolidation Bars / Length. Each one changes the indicator’s character in a different way, so I’d recommend testing them one at a time.
A Small Note on Range Display Format
Set Range Display Format to “Ticks” and the label shows the box height divided by the symbol’s minimum price increment (tick). That’s handy if you think in ticks, like most futures traders do. The tooltip says “Ticks/Pips,” but what you get is always the tick count. On FX pairs quoted to 5 decimals (3 for JPY pairs), one pip equals 10 ticks, so divide the number by 10 if you want pips.
Setting Combos by Goal
| Goal | What to change | Why |
|---|---|---|
| Fewer fakeouts | Consolidation Bars / Length to 7–8 | Keeps only ranges where price has truly stalled. Fewer boxes |
| Catch looser consolidation too | Structure Length to 30–40 | More boxes, and wider ones. Good for spotting big ranges on higher timeframes |
| Lock in profits sooner | Trailing Stop Multiplier to around 2.0 | Earlier exits and more trades |
| Stay in big trends | Trailing Stop Multiplier left at 3.0 | Harder to get shaken out on pullbacks, but you give back more at exit |
| Track recent performance only | Win Rate Lookback Trades to around 30 | Makes it easier to see whether market conditions have shifted |
Repainting and How It Looks in Real Time
It looks slightly different when you scroll back through history versus when you use it live. Let’s go through it in order.
1 Breakouts and exits only happen on confirmed bars
Upside breaks, downside breaks and exits are all judged on the close of a confirmed bar. Once a breakout color, dot or exit point has printed, it never changes or disappears later.
2 Boxes appear reaching back into the past at the moment they confirm
A confirmed range is drawn back five bars. Watching live, a five-bar box suddenly appears where there was nothing a moment ago. The detection itself doesn’t change after the fact, but looking at the left edge of a box on a historical chart and thinking “I could have entered here” is wrong. The box only became visible five bars after that left edge.
3 Things shift around on the live bar
On a bar that hasn’t closed yet, the midpoint check and the stop level move with price. A box may start to appear and then vanish intrabar, and the stop line may ratchet up partway through the bar. Treat whatever remains after the bar closes as the official reading.
If you want to see exactly which bar a box confirmed on, step through with Bar Replay one bar at a time. Watching a box suddenly extend to the left with your own eyes once makes it much harder to get fooled by how historical charts look.
Step Range Breakout & Trailing Stop has no built-in alert conditions. That said, TradingView alerts let you pick an indicator’s plotted lines as the condition. Set the condition to price crossing the “Trailing Stop” line and you can get notified when price approaches or hits your exit level. That line only appears after a breakout, though, so it won’t work for alerting on the box confirming or on the breakout itself.
Add Historical Volatility to Judge Breakout Quality
Step Range Breakout & Trailing Stop is built to catch the moment price wakes up after a quiet consolidation. That’s why I found TradingView’s built-in Historical Volatility (HV) such a good match. It expresses how widely price changes are scattered on an annualized basis, so it reads low when the market is quiet and high when it’s volatile.
Pairing It with Historical Volatility
Volatility goes quiet during the range and lifts off with the upside break. The lower pane shows whether that sequence lines up.
Vowars DE ver.3.12.36
As in Figure 1, HV stays low and flat while the box is active, then lifts off at the same time as the upside break in Figure 2. A breakout with that sequence looks like price building up energy before it moves, which makes it a reassuring piece of evidence.
On the flip side, there are cases where a box forms while HV is already elevated and then breaks. Often the midpoint just happened to stall in the middle of choppy price action, and my impression was that these get pushed back quickly. HV’s absolute level varies a lot by symbol and timeframe, so rather than deciding “below X% means quiet,” it’s more practical to judge whether it’s low compared with the last few dozen bars.
A few other indicators also pair well with it:
- ADX: if ADX turns up after the breakout, it suggests the move has the strength to develop into a trend. Useful for deciding whether to keep your trailing stop wide
- Chaikin Money Flow (CMF): lets you check whether volume flow agrees with the breakout direction. Be cautious if it’s an upside break but CMF is negative
- Keltner Channels: since it’s an ATR-based channel, it’s easy to compare with the stop distance. Spots where a box edge lines up with the outer channel tend to get watched
Where It Shines, Where It Struggles
Based on what I saw running it across all these charts, here’s where Step Range Breakout & Trailing Stop earns its keep and where it doesn’t.
Where it delivers
- Markets that consolidate and then trend in one direction. You can follow the whole thing from box to trend as one continuous move
- When you want to skip drawing range highs and lows yourself. The box height is shown as a number, too
- Traders whose exit rules tend to wobble mid-trend. You can turn “hold until price closes below the stop” into a hard rule
- Swing trading on the 1-hour to daily charts, holding each trade for days to weeks
Where it whipsaws you
- Wild, choppy markets that swing hard both ways. Breakouts and stop-outs alternate and the losses pile up
- Low timeframes like the 1-minute or 5-minute. Boxes get small and noise-driven breaks that snap back become more common
- When the breakout bar is a huge bullish or bearish candle. The stop ends up far away and you give back more at exit
- When you want to judge purely by the win rate number. P&L and move size aren’t shown
To sidestep the weak spots, the realistic move is to add your own filters, such as only taking breakouts aligned with the higher-timeframe trend, or skipping when the breakout bar is unusually large. Step Range Breakout & Trailing Stop doesn’t do that kind of filtering itself, so it’s easier to work with if you go in assuming your own rules will fill that gap.
As for timeframes, in my testing the 1-hour to daily range was the easiest to read. It works on lower timeframes too, but there are so many boxes that each one means less. The same approach works whether it’s a 24/7 market like Bitcoin or something with trading hours like gold or index futures, but on symbols that close overnight, watch out for gap bars turning straight into breakout bars.
Wait in the Box, Exit on the Line: For Traders Who Can Turn This into Rules
ImageStep Range Breakout & Trailing Stop does just three things: find the range, chase it when price closes outside, and exit at an ATR-based distance. None of those ideas are new, but seeing them connected without a break on a single chart is what I like about this indicator.
On the other hand, there’s nothing to cut down fakeouts, and the win rate in the top right is just a reference number counting whether the close was even slightly favorable. Combined with the boxes being drawn five bars back, you can’t make real-time decisions exactly the way the historical chart looks, and that’s worth understanding from the start.
What worked for me was treating the boxes and stops not as buy and sell signals in themselves, but as a rough sketch of “where to wait” and “where to get out”. Layer volatility shifts and the higher-timeframe trend on top, and make the final call yourself. Used that way, anyone who has been tracking range breakouts by hand should find they spend a lot less time staring at charts.









