# Trendline Breakout Navigator

Trendline Breakout Navigator is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Maintains three self-optimizing trendlines at once (long, medium, and short term), each born from swing points and refined against historical closes. Dots mark wick tests that pierced a line without a closing break, bar colors grade every close against all three slopes, and background flips flag breaks of your chosen line. For trend traders who want diagonal structure at three scales.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 2, 2025.
- Access: free.
- Concepts: [Trendline](https://www.luxalgo.com/library/concept/trendline/) (primary), [Breakout](https://www.luxalgo.com/library/concept/breakout/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn6nnp009evhsgyc22esvi
- Page: https://www.luxalgo.com/library/indicator/trendline-breakout-navigator/

**Trendline Breakout Navigator** keeps three [trendlines](https://www.luxalgo.com/library/concept/trendline/) alive at once: a solid long-term line for overall market direction, a dashed medium-term line for intermediate movement, and a dotted short-term line for immediate fluctuations. Each begins as a horizontal line at a swing point, connects once a new higher low or lower high forms, and then optimizes itself against the historical closes that pierced it. The result is diagonal structure at three scales, maintained without a single manual drawing.

## How to Trade the Trendline Breakout Navigator?

- **Blue and orange dots**: a higher low or lower high pierced a bullish (blue) or bearish (orange) trendline without the close breaking it. Tested lines like these can precede continuations or reversals.
- **Green background**: price broke above a bearish trendline, or a new higher high printed.
- **Red background**: price fell below a bullish trendline, or a lower low appeared.
- **Bar colors**: green and red hues deepen according to how the close stacks up against the long, medium, and short-term lines together, a three-layer trend read at a glance.

HH/LL labels mark where fresh trendlines are born, and the Period setting can source everything from a higher timeframe, with trendlines spanning up to 5000 bars, so a lower-timeframe chart can trade against bigger structure.

## Trendline Breakout Navigator Settings

- **Period**: "chart" for the current timeframe, or a higher timeframe for broader trend recognition.
- **Swing Length**: set per trendline; longer values produce longer-term swing levels.
- **Term**: choose whether the Long, Medium, or Short-term line drives HH/LL labels and background coloring.
- **HH/LL Labeling, Background Coloring, Bar Coloring**: independent visual layers, plus color controls for lines and wick dots.

## Frequently Asked Questions

### What exactly do the dots tell me?

They mark the precise point where price exceeded a trendline intrabar while the close held the line, a failed [breakout](https://www.luxalgo.com/library/concept/breakout/) attempt that forces the trendline to update. Repeated tests reveal where the market keeps probing the trend's defense.

### How is this different from Trendlines with Breaks?

[Trendlines with Breaks](https://www.luxalgo.com/library/indicator/trendlines-with-breaks/) manages one pivot-anchored pair with configurable slope and flags each break; the Navigator maintains three term-graded lines and scores every close against all of them. One is a lean signal tool, the other a full trend map.

### What does the Trendline Breakout Navigator cost?

Nothing. It is free on the LuxAlgo Library. From this page you can also drop it into Quant, our coding agent, and explore how the three-line structure behaves historically. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Trendlines Oscillator](https://www.luxalgo.com/library/indicator/trendlines-oscillator/) (Trendline): markdown at https://www.luxalgo.com/library/indicator/trendlines-oscillator.md
- [Trendlines with Breaks](https://www.luxalgo.com/library/indicator/trendlines-with-breaks/) (Trendline): markdown at https://www.luxalgo.com/library/indicator/trendlines-with-breaks.md
- [Trendlines with Breaks Oscillator](https://www.luxalgo.com/library/indicator/trendlines-with-breaks-oscillator/) (Trendline): markdown at https://www.luxalgo.com/library/indicator/trendlines-with-breaks-oscillator.md
- [Rolling Trendline](https://www.luxalgo.com/library/indicator/rolling-trendline/) (Trendline): markdown at https://www.luxalgo.com/library/indicator/rolling-trendline.md
- [Power Hour Trendlines](https://www.luxalgo.com/library/indicator/power-hour-trendlines/) (Trendline): markdown at https://www.luxalgo.com/library/indicator/power-hour-trendlines.md
- [Machine Learning Trendlines Cluster](https://www.luxalgo.com/library/indicator/machine-learning-trendlines-cluster/) (Trendline): markdown at https://www.luxalgo.com/library/indicator/machine-learning-trendlines-cluster.md
- [Breakouts with Tests & Retests](https://www.luxalgo.com/library/indicator/breakouts-with-tests-retests/) (Breakout): markdown at https://www.luxalgo.com/library/indicator/breakouts-with-tests-retests.md
- [Breakout Detector (Previous MTF High Low Levels)](https://www.luxalgo.com/library/indicator/breakout-detector-previous-mtf-high-low-levels/) (Breakout): markdown at https://www.luxalgo.com/library/indicator/breakout-detector-previous-mtf-high-low-levels.md

---

Source: https://www.luxalgo.com/library/indicator/trendline-breakout-navigator/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
