Zig Zag Channels [LUX]

The Zig Zag indicator is a useful tool when it comes to visualizing past underlying trends in the price and can make the process of using drawing tools easier. The indicator consists of a series of lines connecting points where the price deviates more than a specific percentage from a maximum/minimum point ultimately connecting local peaks and troughs.

The proposed indicator estimates peaks and troughs by using rolling maximums/minimums with a window size determining their significance. This window size approach allows us to have an indicator that works with a certain regularity no matter the scale of the price, something the percentage-based approach struggles with.

Additionally, one upper and lower extremity are displayed, highlighting the price point that deviates the most from the Zig Zag lines.

1. Settings

  • Length: Determines the significance of the detected peaks and troughs.
  • Extend To Last Bar: Extend the most recent line to the most recent closing price value.
  • Show Extremities: Displays the extremities.
  • Show Labels: Display labels highlighting the high/low prices located at peaks and troughs.

1.1 Style

  • Upper Extremity Color: Color of the upper extremity displayed by the indicator.
  • Zig Zag Color: Color of the ZigZag lines.
  • Lower Extremity Color: Color of the lower extremity displayed by the indicator.

2. Usage

The Zig Zag indicator is commonly used to returns points of references for the usage of specific drawing tools, such as Fibonacci retracements, fans, squares...etc.

A common usage also includes the easy determination of Elliot wave patterns in the price.

The Zig Zag indicator above highlights a down-trending motive wave.

2.1 Extremities

The novel approach taken by this Zig Zag indicator is the addition of two extremities derived from the distance between the price and the Zig Zag line, thus returning channels. It is uncommon seeing extremities in Zig Zag indicators since the line connecting peaks and troughs has rarely any other utility than seeing trend variations with more clarity and is not meant to provide an accurate estimate of underlying local trends in the price.

This channel can be useful to study the potential relationship between underlying trends and the Zig Zag line. A low width between the Zig Zag and the upper extremity indicates price variations mostly located below the Zig Zag while equal width indicates more linear trends.

When the indicator is extended to the last line, the extremities provide potential support and resistances, thus making this indicator able to forecast price variations.

จากใจ TradingView ผู้เขียนสคริปต์นี้ได้เผยแพร่เป็นโอเพนซอร์ส เพื่อให้ผู้ค้าสามารถเข้าใจและตรวจสอบได้ ยินดีด้วย! คุณสามารถใช้มันได้ฟรี แต่การใช้โค๊ดนี้ซ้ำเพื่อการเผยเเพร่ อยู่ภายใต้ กฎของเรา คุณสามารถตั้งเป็นรายการโปรดเพื่อใช้กับชาร์ตได้



This is unbelievable for me. Thank you so much for this amazing work guys
100 เหรียญ
+10 ตอบกลับ
Thank you for the wonderful indicator!
200 เหรียญ
Can it be used to generate buy sell signals: use it as a trade reference ?
+20 ตอบกลับ
Peter_GM lonelyIguana76334
Hi , I am using this indicator for paper trade. I am facing following issues.

1) It changes trend much later on live chart, it repaints. Downtrend becomes uptrend after 1 day on 5min chart settings.
2) Trend Levels keep shifting on live, its doesn't change direction

Any suggestion would be of great help. Thanks
+15 ตอบกลับ
This is an interesting stuff; thank you so much for the posting <3
+4 ตอบกลับ
Great job! This method of calculating pivot points seems much better than the standard deviation/depth method used by every other indicator.
If I can wrap my head around it I might see how well it works in other indicators.
+3 ตอบกลับ
amazing work!!
+2 ตอบกลับ
+1 ตอบกลับ