Skip to content
All library documents

Detecting False Breakouts with Recent Highs, Lows, and Close Crossings

Article ProRealCode

Summary

This article explains a chart indicator intended to flag failed moves beyond recent support or resistance. It calculates rolling highs and lows over a configurable period, optionally smooths those levels with a selected moving average, and tracks the sequence and spacing of new extremes. A signal occurs when the close crosses a stored reference level while timing conditions are met. The chart marks a suspected false bullish breakout with a red downward arrow and a suspected false bearish breakout with a green upward arrow.

Inputs control the lookback, minimum and maximum bar spacing, smoothing choice, moving-average type, and its length. The article supplies an implementation example, but it presents no market, timeframe, or performance tests. The indicator is a signal aid, not proof that a breakout has failed or a complete entry and exit system. Its usefulness depends on parameter choices and market conditions, and the document does not discuss confirmation, position sizing, transaction costs, or false-signal rates.

Key ideas

  • The indicator builds reference levels from rolling highs and lows, with optional moving-average smoothing.
  • It tracks new extremes and their spacing before checking whether the close crosses a stored level.
  • Red downward and green upward arrows represent suspected failed bullish and bearish breakouts, respectively.
  • The article provides code but no empirical results or guidance on choosing parameters.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.