OPEN-SOURCE SCRIPT
Updated

ZigZag with Retracement Levels

This is a modification to "ZigZag with Fibonacci Levels" by LonesomeTheBlue. https://www.tradingview.com/script/vCJe18K3-ZigZag-with-Fibonacci-Levels/

By default, the script finds the ZigZag, draws Fibonacci lines and labels accordinly. ZigZag period can be set.

The modification to the original script provides the following features:

1) Option for user to customize retracement levels, if they don't want to use Fibonacci levels. This allows for different strategy adoptions.

2) Option to show Fibonacci or custom retracement levels based on the latest pivot (including the current bar)

For example:
snapshot

Enjoy and happy trading~!!
Release Notes
Fixed calculation error on current fib level 1 and level 5

Disclaimer