Skip to content
All library documents

Using a Harmonic Pattern Indicator to Search for Reversals

Article MQL5 code base

Summary

The document describes an MQL4 chart indicator for identifying harmonic patterns and possible emerging or reversal patterns. Users can search for candidate patterns, step through results to inspect the D point and pattern name, snap XABC points to nearby highs or lows, and toggle display and color settings. An automatic mode searches for a possible next reversal pattern using a configurable period shown on the chart.

The indicator also allows users to supply their own harmonic-pattern database by changing its filename and record count; the database file is stored in the terminal’s files folder. The document explains controls and setup but does not specify the pattern ratios, validation criteria, or how reversal candidates are scored. It includes no historical testing or evidence of predictive accuracy, so the described search results should be treated as charting prompts rather than confirmed reversal signals.

Key ideas

  • The indicator identifies named harmonic patterns from chart points and searches for possible emerging or reversal setups.
  • Users can manually inspect candidate patterns or enable automatic searches over a configurable period.
  • The XABC points can be aligned with nearby highs or lows, and the display can be toggled or recolored.
  • Users can replace the pattern database and set how many records to read.
  • The document gives no validation rules or evidence that detected patterns predict reversals.

Tags

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