Skip to content
All library documents

Chart Indicator for Searching Custom Candlestick Sequences

Article MQL5 code base

Summary

This indicator searches chart history for user-defined sequences of bullish, bearish, or unrestricted candles and marks matches on the chart. A pattern is entered as a string: U denotes a bullish candle, D a bearish candle, and N allows either type. For instance, a three-symbol sequence can specify two bullish candles followed by a bearish candle, or use N to make one position unrestricted. The settings also allow the indicator to display a mirrored version of the specified pattern.

The document describes pattern notation and display behavior, and gives examples of sequences with and without reverse matching. It does not define the candle classification rules, report how frequently patterns occur, or provide evidence that any sequence predicts future returns. The indicator is therefore a pattern-finding and visualization aid; the text does not establish a trading strategy or a performance advantage.

Key ideas

  • Patterns are entered as sequences where U means bullish, D means bearish, and N accepts either direction.
  • The indicator finds matching candle sequences and displays them on a chart.
  • A setting can enable display of mirrored versions of the requested sequence.
  • The document gives no predictive evidence or trading rules based on detected patterns.

Tags

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