Skip to content
All library documents

Configuring a Candlestick Indicator for One-, Two-, and Three-Bar Patterns

Article MQL5 code base

Summary

The document describes a chart indicator that scans for thirty popular candlestick patterns and marks detected patterns on the price chart. Users can configure the display by pattern group—one-bar, two-bar, or three-bar formations—and individually enable or disable pattern searches. Tooltips can show the chart period, pattern name, and time, while other settings control matching tolerance and the appearance of labels.

The text is a feature overview rather than an explanation of how each formation is defined or interpreted. It provides no rules for turning detections into entries or exits, and no tests of predictive value, profitability, or false-signal rates. The configurable pip tolerance may affect which near-equal prices qualify, so detections depend in part on settings and instrument scale. The indicator should be understood as a pattern-highlighting aid, not as evidence that the patterns forecast price direction.

Key ideas

  • The indicator identifies thirty candlestick formations and displays detections on a price chart.
  • Patterns are grouped into one-bar, two-bar, and three-bar categories that can be toggled separately.
  • Individual patterns can also be enabled or disabled, and tooltips can show pattern names and timestamps.
  • A pip-distance tolerance controls how closely prices must match for a pattern to qualify.
  • The overview provides no evidence that detected patterns predict returns or support a profitable strategy.

Tags

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