Skip to content
All library documents

Using Swing Structure to Read Market Context with a Chart Indicator

Article MQL5 code base

Summary

The document describes a chart indicator that organizes price swings into higher highs, higher lows, lower highs, and lower lows. For each completed move, it displays the distance in pips, the number of bars, and the retracement percentage. A Market Story panel summarizes the detected structure and labels the latest move as an impulse or pullback, while a Swing Inspector lets users inspect individual turning points and their neighboring relationships.

Users can set the historical lookback, the candle depth used to confirm swing points, and a minimum distance filter. Display elements, colors, and panels are adjustable. The document explains how to attach the indicator and inspect its output, but supplies no empirical evidence that its classifications predict returns or improve trading results. It explicitly positions the tool as a way to visualize and inspect price behavior, rather than as a signal generator or decision system. The text points to a separate article for design details, logic, limitations, and possible extensions.

Key ideas

  • The indicator classifies swing sequences using higher highs, higher lows, lower highs, and lower lows.
  • It adds move distance, duration, and retracement measurements to swing labels.
  • A summary panel describes current structure, while an inspector provides details for selected swing points.
  • Lookback, confirmation depth, and minimum swing distance control which movements are analyzed.
  • The document presents the indicator as an analysis aid and gives no 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.