Skip to content
All library documents

Dynamic Fibonacci Levels from Recent ZigZag Swings

Article MQL5 code base

Summary

The document describes a chart indicator that automatically plots Fibonacci retracement and extension levels using the latest swing high and swing low identified by a ZigZag calculation. As new swing points form, the displayed levels update, making the tool a way to track potential retracement or extension zones without drawing them manually.

Users can toggle individual levels, display prices beside them, show an optional line connecting ZigZag points, and adjust the ZigZag depth, deviation, and backstep settings. The indicator is said to recalculate only when a new bar appears, a design intended to reduce unnecessary work. The text briefly links Fibonacci ratios with harmonic pattern trading, but gives no specific trading rules, entry or exit criteria, validation, or performance evidence. Since the levels depend on the selected ZigZag parameters and changing swing points, they should be treated as charting references rather than evidence of predictive value.

Key ideas

  • The indicator derives Fibonacci retracement and extension levels from recent ZigZag swing points.
  • Displayed levels change when the indicator identifies new highs or lows.
  • Users can control which levels appear and adjust ZigZag parameters.
  • The document provides no tested trading strategy or evidence that the levels predict price movements.

Tags

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