OPEN-SOURCE SCRIPT

Zig Lines with Percent & Value

Updated
Overview, Features, and Usage:

The Zig Lines with Percent & Value is an indicator that highlights the highest and lowest points of the market from pivot points and zigzag lines based on the ZigZag Period setting. By a default value of 13 for the ZigZag Period this works well on Bitcoin or other alt coins on the 1 hour or higher timeframe charts.

What makes this indicator unique is that it draws a green line to signify an uptrend or a red line to signify a down trend. It will also show the percent difference between the previous point/line, for example: If you see a -negative percentage point with a red line drawn to it, then you are looking at a low pivot point and then as the green line is drawn to a +positive percentage value the percentage you see is the difference between the two points. This is great to see a trend reversal as you can look at previous pivot points and notice about how far the price moves before it changes direction (trend reversal).

There is an invisible EMA line that is used to assist with coloring the negative vs positive values. The value above or below the percentage is the lowest or highest price at that pivot point . The display of the price at the pivot point depends on your ZigZag Period setting and the timeframe of your chart.

Added Bollinger Bands as it fits perfectly with the visuals of the Zig Lines & Pivots.
Usage of Bollinger Bands:
~As the price or candle gets close to the top or bottom of the Bollinger band it can give you a better confirmation that the pivot location is at it's final place, and the trend is more likely to switch directions.

It’s important to know this indicator should not be used for alerts of any type it does repaint as the green or red line is drawing based on live chart data and it can change depending on the direction of the market. This is a great visual tool for trend analysis or to be used with other indicators as a confirmation for a possible good entry or exit position.

Credits (and consent to use):
Credits go to user LonesomeTheBlue for creation of this 'Double Zig Zag with HHLL' script.
Double Zig Zag with HHLL



The addition of the Value above/below the Percentages is from user Noldo and that script is found here:
Function : Pivots High and Low



The Bollinger Bands setup was suggested by user countseven12 and his script that uses the same BB setup is found here:
Hull MA with BB (With Alerts)



References:

1. Chen, James. (2021 March 15). Zig Zag Indicator . Received from http: investopedia.com/terms/z/zig...
2. Mitchell, Cory. (2021 April 30). Pivot Points . Received from http: investopedia.com/trading/usi...
Release Notes
Added option to Enable/Disable the price at each pivot point.
*Requested by b0bbyG
Bollinger Bands (BB)percentagepivotPivot PointstrendZigzagZig Zag Indicator

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer