ATR Adaptive ZigZag is a chart-overlay indicator for reading market structure across changing volatility conditions. It reduces small price fluctuations into a sequence of meaningful swing legs while preserving a live view of the move that is still developing.
The indicator also places purple markers around unusually stretched market areas. These markers provide context for potential swing exhaustion, but they are not standalone buy or sell signals.
ATR Adaptive ZigZag is most useful for answering three questions:
Solid cyan lines connect confirmed swing points. They form the stable historical structure of the chart and make it easier to see sequences such as higher highs, higher lows, lower highs, and lower lows.
A confirmed swing point necessarily appears after price has moved away from the extreme. It should therefore be interpreted as validated structure, not as a trade signal that was available at the exact high or low.
The dashed cyan line is the active, provisional swing leg. It begins at the last confirmed swing point and follows the candidate extreme of the current move.
This line can extend or change while the swing develops. Treat it as a live map of the current leg rather than finalized historical structure.
A purple circle above price identifies an upper stretch area in the configured secondary context. It means the advance may deserve closer attention for signs of exhaustion or rejection.
It does not mean that a swing high has been confirmed, nor does it constitute an automatic sell signal.
A purple circle below price identifies a lower stretch area in the configured secondary context. It means the decline may deserve closer attention for signs of stabilization or reversal.
It does not mean that a swing low has been confirmed, nor does it constitute an automatic buy signal.
The status-line output summarizes the direction of the active leg:
1 indicates an active upward leg.-1 indicates an active downward leg.0 can appear before enough structure is available to establish a direction.This value describes direction only. It does not express signal strength or forecast the next reversal.
Controls the volatility horizon used by the swing sensitivity. Shorter values respond more quickly to recent conditions; longer values produce a steadier volatility reference.
Selects the smoothing style for the volatility reference. The default RMA provides a balanced response suitable for general swing analysis.
Controls how sensitive the ZigZag is to a change in direction:
This is the primary setting for matching the indicator to the desired swing scale.
Sets the multi-day context used by the purple stretch markers:
This setting affects the purple markers, not the scale of the cyan ZigZag legs.
Controls how much directional evidence is considered by the stretch context. Lower values are more responsive; higher values require a more persistent move.
Controls the amount of historical context used to judge whether current stretch is unusual. A longer lookback is more stable, while a shorter lookback adapts more quickly to regime changes.
Controls how selective the purple markers are. Higher percentiles identify more exceptional conditions and generally produce fewer markers; lower percentiles produce more frequent observations.
The indicator currently starts with:
SettingDefaultAverage True Range Length14Average True Range SmoothingRMAReversal Threshold1.5 ATRSecondary Period2 daysRange Stretch Evidence Length3Range Stretch Band Lookback100Range Stretch Band Percentile95
These defaults aim to capture responsive swing structure while keeping the stretch markers selective enough to serve as context rather than constant alerts.
The strongest reading is usually confluence: established structure, a mature active leg, a relevant purple stretch marker, and independent confirmation all pointing toward the same interpretation.
Comments