paaax

[PX] Pivot Zones

Hello everyone,

I was having some fun with the new gradient function, arrays and pivots. Decided that i would publish my little playground :)
This script basically draws lines or zones for detected pivot high and lows and counts the number of candles those levels have been untested.
Tested levels will stop at the candle, which breaks them.

How does it work?

- Define the number of candles that make up the pivot point with the "Pivot Left" and "Pivot Right" parameter (I took more extreme values to showcase the indicator).
- Select your "Layout Type": This can be either a line at the pivot point, a zone between the pivot point and its body or the average of the two.
- You can in-/decrease the number of lines with the "Number of Lines/Zones" parameter.

The older a line becomes the more it will lose of its original transparency.

Hope that might be useful to some of you :)

Please click the "Like"-button and follow me for future open-source script publications.

If you are looking for help with your custom PineScript development, don't hesitate to contact me directly here on Tradingview or through the link in my signature :)

🙋‍♂️Listed as "Trusted Pine Programmer for Hire"

💰Save $30 on your Tradingview subscription: bit.ly/3OtLyNz

🔓Indicator access: www.dize-trading.de

🔒Trial access: discord.gg/DqwKjBZ8Qe
Open-source Skript

Ganz im Spirit von TradingView hat der Autor dieses Skripts es als Open-Source veröffentlicht, damit Trader es besser verstehen und überprüfen können. Herzlichen Glückwunsch an den Autor! Sie können es kostenlos verwenden, aber die Wiederverwendung dieses Codes in einer Veröffentlichung unterliegt den Hausregeln. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.

Möchten Sie dieses Skript auf einem Chart verwenden?