OPEN-SOURCE SCRIPT

Multi ZigZag

Updated
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
Pivot PointsZig Zag Indicatorzigzags

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