Skip to content
All library documents

Measuring All-Time-High Breakouts, Pullbacks, and Subsequent Run-Ups

Article TradingView scripts

Summary

This indicator tracks price advances to new all-time highs, subject to a minimum bar gap between qualifying breaks. For each detected breakout sequence, it records the starting and ending high, the intervening low, and later highs. From these points it calculates pullback size and duration, recovery time, and the run-up after recovery, including percent changes and bar counts. Chart drawings mark the sequence and a data table compares current measurements with historical medians, maxima, and percentile ranks.

The display is intended to describe how a market has behaved around prior highs and to place a current pullback or run-up in historical context. It does not define entry or exit rules or demonstrate that breakouts lead to profitable trades. Results depend on the chart's price history and the minimum-gap setting; the document supplies no empirical performance study. The current sequence may still be developing, so its measurements can change as new highs and lows form.

Key ideas

  • The indicator identifies new all-time highs only when the bar gap from the prior high meets a configurable minimum.
  • It records pullback depth, time to the low, recovery duration, and subsequent run-up measures.
  • A chart drawing marks the breakout sequence and its low, while a table summarizes historical and current statistics.
  • Percentile ranks show how current measurements compare with observations stored by the indicator.
  • The tool describes price behavior but does not provide a tested trading strategy or evidence of profitability.

Tags

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