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.

Nota Keluaran:
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.
Skrip sumber terbuka

Dalam semangat TradingView yang sebenar, penulis skrip ini telah menerbitkannya dengan menggunakan sumber terbuka supaya pedagang-pedagang dapat memahami dan mengesahkannya. Sorakan kepada penulis! Anda dapat menggunakannya secara percuma tetapi penggunaan semula kod ini dalam penerbitan adalah dikawalselia oleh Peraturan Dalaman. Anda boleh menyukainya untuk menggunakannya pada carta.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.

Ingin menggunakan skrip ini pada carta?