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.
I did an in-depth revision of the previous version based only on manual or on the atr. If I compare the previous verses that new version, the previous was much more stable in the projection. That new one is more versatile but unfortunately very unstable in the future trend direction.
I think the forecast is ultimately the main purpose of the zig-zag technique and there shall be the focus of the coming zigzag tool.