All indicators

Overextension Trendline Breakout

Apr 21, 2026

Static chart image
Support and ResistanceSignalsFibonacciPivot Based (Retrospective)Volatility

The Overextension Trendline Breakout indicator is a multi-pivot trendline detection system that identifies validated support and resistance lines through clean-line scanning and angle validation. It distinguishes meaningful market structure from noise by applying ATR-normalized filters and projects Fibonacci extension targets upon a confirmed breakout.

Usage

The indicator automatically identifies swing highs and lows across multiple timeframes. Once a trendline gathers enough touches, it is displayed on the chart to assist with trade identification.

  • Ascending Support (Cyan): Represents rising trendlines with at least 3 lows. A bounce suggests trend continuation, while a break signals a bearish reversal.
  • Descending Resistance (Orange): Represents falling trendlines with at least 3 highs. A rejection suggests trend continuation, while a break signals a bullish breakout.
  • Forming Lines (Dashed): These are emerging trendlines with 2 touches that have not yet met the minimum validation threshold.
  • Breakout Markers: Upward triangles (Bullish) and downward triangles (Bearish) appear when price closes beyond a validated line plus a specified ATR buffer.
  • Fibonacci Targets: Upon a breakout, the tool plots four configurable targets (0.618, 1.0, 1.618, and 2.618) to assist with profit taking.

Details

The script utilizes a configurable range of pivot lengths to build a pool of significant swing points. It employs three distinct validation layers to ensure accuracy:

  1. ATR-Scaled Angle Validation: Ensures lines aren't too flat or near-vertical by calculating steepness relative to market volatility.
  2. Touch Density: Requires a specific number of pivot connections within a volatility-adjusted tolerance.
  3. Clean-Line Scanning: Monitors intermediate price action between pivots to ensure no bar has significantly violated the trendline integrity.

Settings

Zigzag Pivots

  • Minimum/Maximum Pivot Length: Defines the lookback range for detecting swing highs and lows.
  • ATR Length: Sets the lookback for the Average True Range used in volatility normalization.
  • ATR Deviation Filter: When enabled, requires a minimum distance between consecutive pivots of the same type.
  • Minimum Pivots to Connect: The number of touches required to transition a line from "forming" to "confirmed."

Trendline Validation

  • Minimum/Maximum Angle: Filters trendlines based on their steepness in degrees.
  • Max Pivot-to-Pivot Span: Limits the maximum number of bars allowed between connected points.
  • Clean-Line Tolerance: Defines how far price can deviate from a line before it is considered invalidated.

Breakout Logic

  • Break Requires Close Beyond Line: Determines if a candle close is required to trigger a breakout or if a wick touch is sufficient.
  • Break Buffer: An extra ATR-based margin required beyond the line to confirm a breakout.
  • Max Line Age: The number of bars a line remains active before expiring.

Fibonacci Targets

  • Target Ratios: Configures the multiplier for the four projected Fibonacci levels.
  • Target Extension: Determines how many bars forward the target lines are drawn.

FAQ

How do I access Overextension Trendline Breakout?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Why do some trendlines disappear?

Lines that are violated by price action or exceed the "Max Line Age" setting are automatically removed or marked as expired to keep the chart clean.

What is the purpose of the Break Buffer?

The buffer is used to prevent "fakeouts" caused by minor price wicks, ensuring that the breakout is backed by sufficient momentum.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.