OPEN-SOURCE SCRIPT
Updated

Multi ZigZag

14898
I created this as basis for my next scripts. We are just trying to plot multiple zigzags with different length basis here. Input allows you to select different Length, Width, Color and Line Style for each Zigzags.

Max_pivot_size says how many pivots each Zigzag can have. Value 100 means, each zigzag will show 99 lines joining 100 points.

Additional option ShowStatsTable allows you to print pivots in a table. Table only shows selected zigzags.
Release Notes
Add max_bars_back
Release Notes
Updated color coding of table cells to reflect higher high/higher low
Release Notes
Fix small error in zigzag calculation
Release Notes
Fix logical bug in calculating the bar upon no change direction
Release Notes
Major update

  • Fix all zigzag calculation issues
  • Simplified settings
  • Added option for external/alternate source


snapshot
Release Notes
Convert to pine 5

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.