OPEN-SOURCE SCRIPT

Zig Lines with Percent & Value

已更新
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...
版本注释
Added option to Enable/Disable the price at each pivot point.
*Requested by b0bbyG
Bollinger Bands (BB)percentagepivotPivot PointstrendZigzagZig Zag Indicator

开源脚本

本着真正的TradingView精神,此脚本的作者已将其开源,以便交易者可以理解和验证它。向作者致敬!您可以免费使用它,但在出版物中重复使用此代码受网站规则约束。 您可以收藏它以在图表上使用。

想在图表上使用此脚本?

免责声明