Trendoscope

Multi ZigZag

Trendoscope Wizard 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

Release Notes:
Convert to pine 5

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 a publication is governed by House Rules. You can favorite it to use it on a chart.

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.

Want to use this script on a chart?