PINE LIBRARY
lib_bar_strength

Big bar breakout detection for multi-timeframe trading systems.
Identifies significant ("big") bars where the range exceeds a configurable ATR multiple. Classifies them as Bull Break, Bear Break, Possible Bull, or Possible Bear. Tracks the most recent strong bar's high, low, midpoint, and ATR multiple for use in key signal notes.
**Event types:** 0=None, 1=Bull Break, 2=Bear Break, 3=Possible Bull, 4=Possible Bear
**Exports:** `detect()` — returns event type, high, low, midpoint, ATR multiple, and recent strong bar data.
Used by: TCD - Trade Consistent & Disciplined (indicator)
Identifies significant ("big") bars where the range exceeds a configurable ATR multiple. Classifies them as Bull Break, Bear Break, Possible Bull, or Possible Bear. Tracks the most recent strong bar's high, low, midpoint, and ATR multiple for use in key signal notes.
**Event types:** 0=None, 1=Bull Break, 2=Bear Break, 3=Possible Bull, 4=Possible Bear
**Exports:** `detect()` — returns event type, high, low, midpoint, ATR multiple, and recent strong bar data.
Used by: TCD - Trade Consistent & Disciplined (indicator)
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Pine library
In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in publications is governed by House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.