Skip to content
All library documents

A Non-Lagging PSAR Zigzag for Trend Swings

Article MQL5 code base

Summary

The document describes a dynamic zigzag built around the Parabolic SAR trend state. Unlike a conventional zigzag, which waits for later bars to confirm a pivot and is mainly used to examine past swings, this design aims to show trend legs through the current bar without that confirmation delay. It positions the result as a trend-following visualization rather than a conventional retrospective pivot tool.

A backstep input sets the lookback used to select a high or low when forming each leg. Depending on the version, a segment endpoint may use that extreme or a nearby support or resistance level. Later versions constrain pivots to candle highs and lows or add forward-step logic for further control. The document identifies choppy, ranging markets as a weakness inherited from PSAR. It provides a design description and version differences, but no performance tests, trading rules, or evidence that the claimed lack of lag improves results; the indicator should therefore be treated as a charting method rather than a validated signal.

Key ideas

  • The indicator uses PSAR trend state to draw zigzag legs through the current bar.
  • A backstep lookback selects candidate highs and lows for segment endpoints.
  • Different versions vary how strictly pivots attach to candle extremes and whether forward-step logic is used.
  • The method can struggle in ranging markets, reflecting a known limitation of PSAR.
  • The document describes construction choices but supplies no backtest or trading-performance evidence.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.