Failed Breakout Retest [Harmony Algo]

Failed Breakout Retest marks a reversal setup after price closes beyond a recent high or low, returns inside, and rejects a later test of the same level. The level and volatility scale are fixed at the breakout close.
How to read the chart
A gray dashed line marks a setup in progress. Sell marks a confirmed rejection of a former high from below. Buy marks the reverse at a former low. The colored line identifies the precise level and extends five bars past confirmation as a visual reference. Canceled setups remove their gray line. The chart retains the latest 24 successful lines.
How the signal is confirmed
The default reference is the highest high or lowest low of the preceding 48 chart candles. A breakout requires a close at least 0.20 of the prior 21-bar ATR beyond that level. ATR measures typical bar movement. Within 12 bars, price must close at least 0.15 ATR back inside. A later candle has up to 18 bars to test the level from inside. Its open and the preceding close must be on the inside side or at the level. It must reach within 0.15 ATR of the level and close 0.15 to 1.25 ATR inside with a body of at least 0.10 ATR in the rejection direction. A renewed close at least 0.20 ATR outside cancels the retest. This separates the failed breakout from the later entry trigger and tracks the original price level throughout.
Alerts and limits
Choose Buy or Sell for the same confirmed close as its chart label. Use standard candles. The script tracks one setup at a time and can miss reversals that never return to test the level. Gaps, sessions and data feeds affect the setups. The script supplies no exit rule or estimate of profitability.
How to read the chart
A gray dashed line marks a setup in progress. Sell marks a confirmed rejection of a former high from below. Buy marks the reverse at a former low. The colored line identifies the precise level and extends five bars past confirmation as a visual reference. Canceled setups remove their gray line. The chart retains the latest 24 successful lines.
How the signal is confirmed
The default reference is the highest high or lowest low of the preceding 48 chart candles. A breakout requires a close at least 0.20 of the prior 21-bar ATR beyond that level. ATR measures typical bar movement. Within 12 bars, price must close at least 0.15 ATR back inside. A later candle has up to 18 bars to test the level from inside. Its open and the preceding close must be on the inside side or at the level. It must reach within 0.15 ATR of the level and close 0.15 to 1.25 ATR inside with a body of at least 0.10 ATR in the rejection direction. A renewed close at least 0.20 ATR outside cancels the retest. This separates the failed breakout from the later entry trigger and tracks the original price level throughout.
Alerts and limits
Choose Buy or Sell for the same confirmed close as its chart label. Use standard candles. The script tracks one setup at a time and can miss reversals that never return to test the level. Gaps, sessions and data feeds affect the setups. The script supplies no exit rule or estimate of profitability.
Harmony Algo | harmonyalgo.com
Practical indicators for chart analysis. No performance guarantees.
Practical indicators for chart analysis. No performance guarantees.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Harmony Algo | harmonyalgo.com
Practical indicators for chart analysis. No performance guarantees.
Practical indicators for chart analysis. No performance guarantees.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.