Skip to content
All library documents

Using ZigZag Swings to Mark Fibonacci Pullback Zones

Article MQL5 code base

Summary

The indicator finds recent swing highs and lows with a ZigZag calculation, then plots Fibonacci retracements at 50%, 61.8% and 78.6%. It highlights the area between the latter two as a potential pullback zone. The proposed use is to look for a retracement into that area in the direction of the broader trend, with bullish or bearish reversal signs as additional context. Optional chart labels can signal when a candle closes inside the zone, and a dashboard reports swing prices and calculated levels.

The document describes configurable swing sensitivity and display settings, and suggests placing stops beyond the zone and targeting the opposite swing or a chosen risk-to-reward level. It states that calculations use closed candles and that levels remain fixed until a new swing is detected. It provides no performance tests or evidence that the zone predicts reversals; Fibonacci levels are presented as a charting aid, so signals require independent validation and risk controls.

Key ideas

  • The indicator derives retracement levels from the latest ZigZag swing high and low.
  • The 61.8% to 78.6% interval is highlighted as a potential pullback entry area.
  • The suggested setup seeks entries in the direction of the broader trend after reversal signs appear.
  • Optional labels flag closes inside the zone, while the dashboard displays prices and levels.
  • The document offers no backtest or evidence of predictive performance.

Tags

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