ZigZagSignal
Category: trend, market_structure
A structural ZigZag indicator that identifies swing highs and lows using Depth, Deviation, and Backstep, featuring visual arrows, trendline connections, and alerts with a configurable confirmation delay.
Formula
Standard ZigZag Algorithm: \n1. Identify local extremes using `iHighest` and `iLowest` over `InpDepth` window.\n2. Filter extremes using `InpDeviation` (minimum price change).\n3. Re-evaluate within `InpBackstep` window to ensure the most extreme point is selected.\n4. Second pass to ensure strictly alternating high-low peaks by removing intermediate points.
Inputs
- InpDepth (default: 62)
- InpDeviation (default: 15)
- InpBackstep (default: 9)
- alerts (default: Yes)
- EmailAlert (default: No)
- alertonbar (default: 3)
- sendnotify (default: No)
- displayinfo (default: Yes)
See signal primitives and every published strategy that uses ZigZagSignal on WOBR StrategyVerse.