OPEN-SOURCE SCRIPT

Trendlines with Breaks [LuxAlgo]

Aktualisiert
The trendlines with breaks indicator return pivot point based trendlines with highlighted breakouts. Users can control the steepness of the trendlines as well as their slope calculation method.

Trendline breakouts occur in real-time and are not subject to backpainting. Trendlines can however be subject to repainting unless turned off from the user settings.

The indicator includes integrated alerts for trendline breakouts.

🔶 USAGE

Snapshot

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

The calculation method of the slope greatly affects the trendline's behaviors. By default, an average true range is used, returning a more constant 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.

Snapshot

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

Snapshot

By default trendlines are subject to backpainting, and as such are offset by length bars in the past. Disabling backpainting will not offset the trendlines.

Snapshot

🔶 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 the slope is calculated.
  • Backpaint: Determine whether trendlines are backpainted, that is offset to past.
Versionshinweise
Minor changes.
Versionshinweise
We have adjusted the "b" signals to be fully real-time. There is an option within the settings to disable backpainting for the trendlines, in which this does not affect the signal labels as they are 100% non-repaint or backpainting.

To update to the latest version, please refresh TradingView & then remove/re-add the Trendlines with Breaks indicator to your chart.

ATRbreakoutlinregLUXluxalgosignalsignalsStandard Deviation (Volatility)trendTrend Analysis

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?


Get access to our exclusive tools: luxalgo.com

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

All content provided by LuxAlgo is for informational & educational purposes only. Past performance does not guarantee future results.
Auch am:

Haftungsausschluss