Skip to content
All library documents

ZigZag Indicator Repainting and Breakout Candidate Signals

Article MQL5 code base

Summary

This document explains how a ZigZag indicator identifies swings using depth-period highs and lows, while warning that its latest turning point can move as new prices arrive. A point that appears to mark a live top or bottom may therefore be provisional; interpreting it as a confirmed signal can mislead traders. The indicator is presented as more appropriate for historical analysis than as a real-time turning-point predictor.

An enhanced version visualizes the depth-period extremes, finalized ZigZag pivots, earlier candidate pivots, and optional breaks beyond the period highs or lows. Those breakouts may serve as exploratory scalping cues or early warnings before retracements, but the document proposes no tested strategy or performance evidence. It also describes configurable alerts and parameter settings, including deviation adjustments for fractional pip pricing. The visual additions are intended to reveal internal behavior and support strategy research, not establish that the suggested signals are profitable.

Key ideas

  • The latest ZigZag pivot can change as new price data arrives, so live turning points are provisional.
  • The indicator is better suited to analyzing historical swings than to treating current pivots as confirmed signals.
  • An enhanced display marks period extremes, finalized pivots, candidate pivots, and optional breakout points.
  • Breakout markers are possible research cues, but the document provides no performance tests.

Tags

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