OPEN-SOURCE SCRIPT

ATR based ZigZag

785
An ATR-based ZigZag indicator that adapts automatically to any timeframe without requiring parameter changes. Uses ATR(20) × 2.0 to determine swing significance — swings smaller than this threshold are filtered out as noise, while genuine trend reversals are connected with clean diagonal lines.

Two display modes:
- Classic ZigZag: diagonal lines connecting confirmed swing highs and lows, with a dashed line for the current unconfirmed leg
- Stepped ZigZag: horizontal stepped line tracking the current swing level

Default settings: ATR Lookback 20, Multiplier 2.0.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。