Skip to content
All library documents

Combining Fibonacci Retracements with Market Structure Signals

Article MQL5 code base

Summary

This MetaTrader 5 indicator combines pivot-based swing analysis with Fibonacci retracements. It labels swing points as higher highs, higher lows, lower highs, or lower lows, and classifies breaks as continuation events (BOS) or possible reversals (CHoCH). After a structural event, it plots selected retracement levels, a highlighted zone from 0.500 to 0.786, and extension targets beyond the swing origin.

Its signal score combines structural bias, price interaction with the highlighted retracement zone, and optional engulfing patterns near Fibonacci levels. An ATR-based filter can screen out smaller swings, while ATR also sets the tolerance for highlighting nearby levels and calculates alert stop-loss and take-profit distances. A cooldown limits repeated signals. The document describes the indicator’s settings and alert behavior, but provides no performance testing or evidence that the signals are profitable. It recommends validating the tool across symbols and timeframes before live use.

Key ideas

  • The indicator detects swing pivots using a configurable lookback and optional ATR filter.
  • It distinguishes trend continuation breaks from breaks that may signal a change in direction.
  • Retracement levels, extension targets, and an ATR-based confluence highlight are plotted after structural events.
  • Signal scoring combines market structure, Fibonacci interactions, and optional engulfing patterns.
  • Alerts report ATR-based risk and target levels, but the document gives no trading performance evidence.

Tags

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