Skip to content
All library documents

MQL5 Swing Extremes for Mean-Reversion Pullback Signals

Article MQL5 articles

Summary

The document describes an MQL5 indicator that tracks swing highs and lows on higher and lower timeframes, classifies market structure, and flags price moves that extend beyond recent lower-timeframe boundaries. Its premise is that unusually large displacements may signal exhaustion and a possible pullback, rather than a breakout worth chasing.

The implementation uses ATR-scaled thresholds, structure-break checks, and buy or sell arrows, with optional chart visualization. It also records which swing has already triggered a signal to avoid repeated alerts from the same extreme. The article presents the indicator's logic and code fragments, but the provided text omits much of the implementation and includes no quantitative test results. It frames reversal probability as favorable without supplying supporting statistics, so the signals should be treated as a hypothesis for further testing, not established evidence of an edge.

Key ideas

  • The indicator compares price with recent swing highs and lows on higher and lower timeframes.
  • Moves beyond lower-timeframe structure are treated as possible exhaustion and pullback conditions.
  • ATR-based thresholds help define how far price must extend beyond a swing to count as extreme.
  • Higher-timeframe bias and lower-timeframe structure inform the directional signal.
  • The article provides no empirical performance evidence for the proposed reversal logic.

Tags

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