D-Shape Breakout Signals
By LuxAlgoAug 29, 2024
D-Shape Breakout Signals is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

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 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, 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
Free to use
Run it on Vela. Go further with a paid plan.
- Up to 500 Custom Alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- More Quant usage to customize it, plus extra usage when you need it
- Futures data alongside crypto, stocks, forex and commodities
Also works on
Related indicators
All 29 Breakout indicatorsRun it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.



