All indicators

Trendlines with Breaks

By LuxAlgoJan 17, 2022

Static chart image

Trendlines with Breaks anchors a support line and a resistance line to recent pivot points, extends them at a slope you control, and flags the moment price breaks through either one. It is the house baseline for automated trendline analysis: three slope engines to choose from, integrated alerts on every break, and repainting that can be switched off to lock lines in place when signal precision matters more than aesthetics.

How to Trade the Trendlines with Breaks?

  • Break of the upper trendline: a bullish breakout cue, marked in real time and usable with any standard trendline methodology to project potential price direction.
  • Break of the lower trendline: the bearish mirror, useful for breakdown entries or as an exit trigger.
  • Slope method shapes behavior: ATR (the default) gives a consistent slope across lines; Stdev varies it with statistical variance; Linreg follows the regression slope.
  • Backpaint disabled: aligns the lines with current prices instead of offsetting them into the past, the stricter view for live evaluation.

By default the trendlines are backpainted, offset back by the length specified in the settings, which reads cleanly on historical charts. Signals themselves arrive without backpainting issues, so timely decision-making stays intact.

Trendlines with Breaks Settings

  • Length: the pivot detection period the trendlines are built from.
  • Slope: steepness control; values above 1 create steeper angles, while 0 turns the lines into horizontal levels.
  • Slope Calculation Method: Average True Range, Standard Deviation, or Linear Regression.
  • Backpaint: keep the historical offset or align lines with current data.

Frequently Asked Questions

Free on Vela

Run it on Vela. Go further with a paid plan.

  • Up to 500 strategy 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
See plans

Also works on

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo
All 10 Trendline indicators

Run 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.