XXUANTIFYInvite a friend

Consolidation Zones Under the Microscope

Where has price been going sideways, and where does that pause end? LonesomeTheBlue's Consolidation Zones - Live answers that by drawing a shaded box around each quiet stretch and stretching it until price leaves. We found a faithful, non-repainting and calm map of sideways markets. As a breakout trigger it is a different story: on BTC daily, its upward breakout alerts did worse than the market's own odds over the next five days.

Candlesticks drifting sideways inside a glowing rectangle bounded by dashed upper and lower lines, one candle poking above the top line
A consolidation box: price drifts inside, the box stretches, and one candle finally leaves.

Key takeaways

Its lines match the original exactly on all four charts, and nothing repaints

Calm: the zone shading switches about 36 times a year on BTC and ETH daily, median run 7 bars

Not one breakout was reversed by the opposite alert within 3 bars, on any chart

Upward breakouts on BTC daily rose over 5 days only 40% of the time, against 53% for any day

Scorecard

Faithful

Checked against the original: its plotted lines match exactly on BTC and ETH, daily and hourly. The dashed box outlines are drawn a little differently.

Repainting

None found. It reads no higher timeframe and no future bars.

Calm

About 36 shading switches a year on BTC and ETH daily, median run 7 bars; roughly one run in four is short.

Edge

No clear edge after its breakouts on three charts; on BTC daily, Breakout Up was clearly worse than any bar at 5 days.

What the author built

LonesomeTheBlue describes the script as a way to find consolidation zones as they form, in real time. In their account it looks for the highest and lowest bars over a lookback window, works out the current direction from them, and uses that to mark a zone once price has stayed inside it for a minimum number of bars. The zone then keeps extending for as long as there is no breakout. A longer lookback, the author says, gives bigger zones.

The code does it like this. Every bar that sets a new 10-bar high or low becomes a swing point, and the script keeps a running pivot: the most extreme swing point since the direction last changed. While that pivot stays put, or moves only inside the current box, a counter climbs. Once the counter reaches five bars, the box is set to the high and low of those five bars; after that it only widens, to take in each new high or low. When the pivot finally jumps above the top of the box, the script raises a Breakout Up alert; below the bottom, a Breakout Down. Then the counter starts again.

It is its own idea, not a classic in disguise: the nearest classic line on BTC daily, a 34-bar weighted average, correlates at only 0.84.

What we measured

We measured the script with its author's default settings (lookback 10, minimum length 5) on BTC and ETH perpetuals, on daily charts from late 2019 to mid-October 2026 and on hourly charts from January 2025 to mid-October 2026.

Behaviour. On BTC daily the shading switches on or off 35.7 times a year, with a median run of 7 bars and a longest of 70; on ETH daily it is 36 a year, median 7 bars. The hourly charts behave the same per bar: median runs of 7 hours, about 850 to 880 switches a year. Breakout alerts are sparse on daily charts: 10.3 up and 7.6 down a year on BTC, 11.3 up and 6.7 down on ETH. On BTC daily, downward breakouts came more often below the 200-day average (2.45 per 100 bars) than above it (1.76). None of the breakouts, on any chart, was undone by the opposite alert within three bars.

Year of BTC daily candles with shaded consolidation boxes and two marked breakout alerts, one up in August 2026 and one down in October 2026
Look at how each box widens step by step while price stays inside, then closes when the alert fires.

Reliability. Our reproduction matches the original's plotted lines exactly on all four charts, and no repainting or look-ahead was found. The dashed outlines are deleted and redrawn each bar as the box extends; ours differ slightly from the original's, so we judge the lines, not those outlines.

After its signals. On BTC daily, from September 2019 to October 2026, price rose in the five days after a Breakout Up 40% of the time (73 alerts), against 53% after any day: a clear gap, and on the worse side. At ten days the gap was not clear (45% against 54%). On ETH daily and both hourly charts, neither alert differed clearly from the market. Upward breakouts leaned slightly worse on all four charts, but only BTC daily was clear. The alerts also tended to come late: a median of about ten bars after the swing had turned.

Where it shines, and where it is quieter

Where it shines

As a map of sideways stretches. Its boxes last a median of 7 bars on every chart, the shading rate barely changes between calm, normal and wild markets (about 9 to 11 switches per 100 bars on BTC daily), and its breakout alerts never flip-flopped within three bars. Its plotted lines are reproduced exactly, so what you see in a backtest is what it showed live.

Where it is quieter

As a stand-alone entry. On BTC daily, upward breakouts were clearly weaker than any day over five days (40% against 53%, 73 alerts). On ETH daily and on the hourly charts the alerts were roughly a coin toss, close to the market's own odds. Downward breakouts showed no clear lean anywhere.

Make it better

No measured change passed our test, so these are hints for using it well, not tested improvements. First, treat a breakout alert as the end of a quiet stretch, not a reason to chase: the data show no follow-through on its own, so pairing it with a trend or volume filter of your choice is worth checking. Second, leave room for a stop. On ETH daily, nine in ten of the up-breakouts that went on to win stayed within about 11% against the entry over ten days (on BTC daily, within about 6%). A stop just beyond that leaves most winners alone. That is a rule of the market's swings as much as a finding about this script.

The bottom line

Consolidation Zones - Live by LonesomeTheBlue does one job cleanly: it shows, without repainting, where the market has been resting and how wide that rest has become. Read it as context — where a range sits, how long it has lasted — rather than as a buy or sell button. An author's next step could be a confirmation option on the breakout, such as waiting for a close beyond the box, which would let readers test whether the late, weak upward alerts improve.

For a different take on the same question, see our look at LuxAlgo's Range Detector, or meet the author through their Monotonic Trend Analysis. More measured scripts are on /latest/.

These results come from the author's default settings on BTC and ETH, daily and hourly; your own settings or market may behave differently.

This article is education, not investment advice.

Every test here counts trading costs, runs on many markets and compares the result with just holding the same market. A result is a starting point, not a verdict. How we test

Newsletter

New tests, now and then.

Only for this newsletter; we send a mail to confirm first, and every mail has a link to stop. Privacy