# D-Shape Breakout Signals

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

Draws semi-circular arcs between swing points and treats each 'D' as curved support and resistance: one breakout per shape, marked by green, red, or blue dots for upside, downside, and neutral resolutions. A trailing stop-loss line that updates only on confirmed breaks adds built-in risk management for breakout traders.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Aug 29, 2024.
- Access: free.
- Concepts: [Breakout](https://www.luxalgo.com/library/concept/breakout/) (primary), [Fib Geometry Tools](https://www.luxalgo.com/library/concept/fib-geometry-tools/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn1bf1001rvhsgzmsy0yn4
- Page: https://www.luxalgo.com/library/indicator/d-shape-breakout-signals/

**D-Shape Breakout Signals** turns support and resistance into geometry. The distance between two swing points defines a semi-circular arc (the "D") and that curve, not a horizontal line, becomes the [breakout](https://www.luxalgo.com/library/concept/breakout/) boundary. Each shape resolves exactly once: through the top, through the bottom, or expiring at its right edge. The approach shares DNA with arc-based [fib geometry tools](https://www.luxalgo.com/library/concept/fib-geometry-tools/), which likewise scale curved reaction zones from swing distances.

## How to Trade the D-Shape Breakout Signals?

- **Green dot**: price broke above the arc; the shape recolors green and the resolution is bullish.
- **Red dot**: the arc broke to the downside; the shape recolors red.
- **Blue dot**: a Neutral Breakout: price reached the arc's right edge without crossing either boundary, and the shape turns blue.
- **Trailing stop-loss line**: after a confirmed break, the midline of the broken D-shape becomes the TSL, moving only when a later shape breaks (to the higher midline in an uptrend, the lower one in a downtrend, or the new shape's midline after an opposite break), usable as a stop, an entry reference, a support/resistance level, or a trend gauge.

One signal per shape keeps the chart honest: resolved arcs age out under your minimum-pattern budget while active ones keep working, and the width you choose moves both the detection line and the eventual stop placement.

## D-Shape Breakout Signals Settings

- **Swing Length**: the detection period for the swing highs and lows that anchor each shape.
- **Minimum Patterns**: the minimum number of D-shapes kept visible before older ones are cleared.
- **D-Width**: arc width as a percentage of the distance between swing points.
- **Included Swings**: build shapes from Swing Highs, Swing Lows, or Both.
- **Style Historical Patterns**: display resolved shapes as Arc, Midline, or Both, plus label sizing, a connecting swing-level line, and TSL color fill.

## Frequently Asked Questions

### What does a Neutral Breakout tell me?

That price ran out of room: it reached the right edge of the arc without breaking either side. The shape turns blue and the trailing stop line deliberately holds its level, preserving the prior trend read rather than flipping on ambiguity.

### How does it compare with level-based breakout tools?

Tools like [Breakouts with Tests & Retests](https://www.luxalgo.com/library/indicator/breakouts-with-tests-retests/) confirm horizontal levels. Here the boundary is curved, so the breakout threshold changes as the shape matures rather than staying flat: different geometry for the same trading question.

### How do I access D-Shape Breakout Signals?

The indicator is free in the LuxAlgo Library. Running or backtesting it in Quant, our coding agent, takes one click from this page. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [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
- [Candle Breakout Oscillator](https://www.luxalgo.com/library/indicator/candle-breakout-oscillator/) (Breakout): markdown at https://www.luxalgo.com/library/indicator/candle-breakout-oscillator.md
- [Luminance Breakout Engine](https://www.luxalgo.com/library/indicator/luminance-breakout-engine/) (Breakout): markdown at https://www.luxalgo.com/library/indicator/luminance-breakout-engine.md
- [Probabilistic Breakout Forecaster](https://www.luxalgo.com/library/indicator/probabilistic-breakout-forecaster/) (Breakout): markdown at https://www.luxalgo.com/library/indicator/probabilistic-breakout-forecaster.md
- [Gap Fill Breakouts](https://www.luxalgo.com/library/indicator/gap-fill-breakouts/) (Breakout): markdown at https://www.luxalgo.com/library/indicator/gap-fill-breakouts.md
- [Fibonacci Toolkit](https://www.luxalgo.com/library/indicator/fibonacci-toolkit/) (Fib Geometry Tools): markdown at https://www.luxalgo.com/library/indicator/fibonacci-toolkit.md
- [Trendline Breakout Navigator](https://www.luxalgo.com/library/indicator/trendline-breakout-navigator/) (Breakout): markdown at https://www.luxalgo.com/library/indicator/trendline-breakout-navigator.md

---

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