Specify which Zig Zag you are checking
This page follows the current TradingView built-in documentation and the official TradingView/ZigZag library v9 release notes, checked October 17, 2026. Library v8 moved to Pine Script v6; v9 replaced extendLast with projectionPivots. The old extension to the latest price and the v9 search for a potential pivot are different behaviors. Do not transfer settings from an unrelated community script by name alone.
- For the worked example, use a 5% deviation, Pivot legs = 4, and projections off. Evaluate only completed bars with positive prices.
- The library update() result can mean either a new line or a changed last line. A true result alone is not a new reversal signal.