Skip to content
All library documents

Classifying ZigZag Price Waves by Size as Impulses or Retracements

Article MQL5 code base

Summary

The ZZ Color Retracement indicator extends a basic ZigZag approach by classifying detected price swings according to their length. It compares the latest ZigZag move with an average of prior moves: sufficiently longer swings are marked as impulses, sufficiently shorter ones as corrections, and movements near the average as flat or intermediate. Users can adjust the typical retracement size, the averaging period, and the percentage threshold that separates these categories.

The stated purpose is to make it easier to identify refined moves between local highs and lows and support later chart constructions, including Fibonacci grids. The document explains the indicator’s inputs and intended interpretation, but provides no performance evidence or trading rules. As with ZigZag-based tools generally, classifications depend on parameter choices and the detected swing points; the text does not discuss whether signals change as prices evolve or how to validate them in a trading system.

Key ideas

  • The indicator uses ZigZag swings to locate local highs, lows, and price movements between them.
  • It classifies each move by comparing its length with an average of recent ZigZag moves.
  • A percentage threshold determines whether a move is labeled impulsive, corrective, or intermediate.
  • Its intended use includes helping automate chart analysis such as Fibonacci grid placement.
  • The description gives no evidence that the classifications predict profitable trades.

Tags

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