LuxAlgo

Trendlines with Breaks [LuxAlgo]

To complete our previous work on breakouts with pivot point-based levels, we introduce an indicator returning pivot point based trendlines with highlighted breakouts. Users can control the steepness of the trendlines as well as their slope calculation method.

The indicator also includes integrated alerts for trendlines breakouts.

Settings

  • Length: Pivot points period
  • Slope: Slope steepness, values greater than 1 return a steeper slope. Using a slope of 0 would be equivalent to obtaining levels.
  • Slope Calculation Method: Determines how this lope is calculated.
  • Show Only Confirmed Breakouts: Only shows confirmed breakouts when enabled.

Usage

Any valid trendlines methodology can be used with the indicator, users can identify breakouts in order to infer future price movements.


Break labels highlight breakouts and are delayed by length bars (with the exception of breakouts with the dashed trendlines which are not delayed). By default the indicator shows any breakouts, toggling on "Show Only Confirmed Breakouts" will allow showing only significant ones. Note that this will not affect breakouts with the dashed trendlines.

The calculation method of the slope greatly affects the trendline's behaviors. By default, an average true range is used, returning a consistent slope amongst trendlines. Other methods might return trendlines with significantly different slopes.

Stdev makes use of the standard deviation for the slope calculation, while Linreg makes use of the slope of a linear regression.


The above chart shows the indicator using "Stdev" as a slope calculation method. The chart below makes use of the "Linreg" method.

Release Notes:
Minor changes.

Get Access to LuxAlgo indicators: luxalgo.com

Join our 100k+ community: discord.gg/lux

All scripts & content provided by LuxAlgo are for informational & educational purposes only. Past performance does not guarantee future results.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?