OPEN-SOURCE SCRIPT

Breakout Failure Radar

230
Breakout Failure Radar
Follow the breakout. Keep the original level. Recognize when the structure fails.

Breakout Failure Radar tracks what happens after a price-channel breakout. It freezes the original breakout level and volatility reference, then monitors whether price holds a retest or closes back through the failure threshold.

READ THE COLORS

Blue B+ / B− — Breakout detected
A new upward or downward breakout enters observation.

Green R+ / R− — Retest held
Price touches the frozen retest zone and closes back on the breakout side. Monitoring continues.

Orange F+ / F− — Breakout failed
Price closes beyond the failure threshold on the opposite side of the original level.

Gray square — Window complete
The observation window ends without a defined failure. This does not indicate a profitable trade.

The + and − signs always refer to the original breakout direction. F+ identifies a failed upward breakout; F− identifies a failed downward breakout.

HOW A BREAKOUT IS DETECTED

The default channel uses the highest high and lowest low of the previous 20 completed candles. The current candle is excluded.

An upward breakout requires:
• A close more than 0.10 ATR14 above the upper channel.
• The previous close to have been at or below its own previous upper channel.

Downward breakouts use the opposite conditions.

The channel boundary and ATR are frozen when the breakout is confirmed. Later price movements do not move these reference values.

RETEST OR FAILURE?

The default observation window covers the next five candles, excluding the breakout candle.

The retest zone extends 0.25 frozen ATR on either side of the original level. A held retest requires the candle’s range to intersect this zone and its close to finish more than 0.10 frozen ATR on the original breakout side.

A failure occurs when price closes more than 0.10 frozen ATR on the opposite side of the original level.

A held retest does not end the observation. The same breakout can hold a retest and still fail later.

WORKED EXAMPLE
Hypothetical prices using the default settings.

An upward breakout freezes a level of 100 and an ATR of 4. Price closes at 102, satisfying the breakout conditions.

• Retest zone: 99 to 101.
• Held retest: The candle touches this zone and closes above 100.40.
• Failure: A subsequent candle closes below 99.60 within the observation window.
• Still unresolved: A close at 99.80 is below the original level but has not crossed the failure threshold.

The buffers distinguish a small move around the level from a confirmed condition. They do not guarantee that price will continue or reverse.

MONITORING RULES

• Only one breakout is monitored at a time. Additional breakouts during an active observation are ignored.
• A held retest is reported only once per setup.
• A gap that skips the entire retest zone does not count as a touch.
• Failure takes priority over window completion on the final observation candle.
• A first held retest and window completion can occur on the same final candle.
• A new observation can start no earlier than the candle after the previous observation ends.
• A rejected crossing is not automatically activated later; a fresh channel crossing is required.

DISPLAY AND ALERTS

The frozen level and retest zone are displayed through the observation’s final candle. Historical markers remain on the candles where their conditions were confirmed.

The status panel shows:
• Original breakout direction and latest status.
• Frozen breakout level.
• Number of candles monitored.
• Distance from the latest confirmed close to the frozen level, measured in frozen ATR. Positive values indicate the original breakout side.
• Whether a held retest occurred during the observation.

Five alert conditions are available:
1. New breakout under observation.
2. Retest held.
3. Upward breakout failed.
4. Downward breakout failed.
5. Monitoring window complete.

Choose Once Per Bar Close when creating alerts.

CONFIRMED-CANDLE BEHAVIOR

State changes and event markers are confirmed at candle close. The script does not use future candles, backdated signals or lookahead requests.

Historical data corrections, changes to chart history and different input settings can still change historical results. Use standard candles for interpreting the price-based rules.

RESEARCH AND LIMITATIONS

The default rules were examined on daily BTC, ETH, SOL, BNB and XRP USD histories from January 2021 through September 10, 2026.

The proportion of completed observations meeting the failure definition was:
• 2021–2023: 44.93% across 276 observations.
• 2024–2025: 46.63% across 178 observations.
• 2026: 55.38% across 65 observations.

These figures describe how frequently the chosen failure condition occurred. They are not prediction accuracy or trading win rates.

Average price movement after a warning changed direction between the examined periods. The study therefore did not establish a stable advantage from automatically trading against failed breakouts.

The analysis does not model portfolio exposure, execution costs, funding, stop-losses or actual fills. The five cryptocurrencies are a selected and correlated sample.

The indicator can calculate on stocks and other timeframes, but this research covers cryptocurrency daily candles with the default settings only.

WHAT MAKES THIS TOOL DISTINCT

The implementation combines a Donchian-style channel and Wilder ATR with frozen reference levels, a defined observation window and continued monitoring after a held retest. Each component serves the specific purpose of tracking how an individual breakout develops.

It operates independently of Crypto Breakout Compass and does not import that indicator’s signals.

Breakout Failure Radar is a market-structure monitoring tool. A failure warning identifies a condition that has already occurred; it is not an automatic instruction to enter the opposite trade.

إخلاء المسؤولية

لا يُقصد بالمعلومات والمنشورات أن تكون، أو تشكل، أي نصيحة مالية أو استثمارية أو تجارية أو أنواع أخرى من النصائح أو التوصيات المقدمة أو المعتمدة من TradingView. اقرأ المزيد في شروط الاستخدام.