Skip to content
All library documents

Doji Candles as a Signal of Market Indecision

Article MQL5 code base

Summary

The document explains the Doji candlestick pattern and describes an automated detector that scans charts for it. A candle qualifies when its opening and closing prices are close together, with those prices near the midpoint between the candle’s high and low. The detector checks the previous closed candle and reports a match with an alert and message.

The pattern is presented as a sign of market indecision and a possible reversal cue. The document gives no trading rules for acting on a detection, performance evidence, or guidance on defining the permitted price difference. A Doji alone therefore does not establish a reversal or a profitable entry; the description offers a way to identify a visual pattern, not evidence of its predictive value. Traders applying it would need to specify thresholds and evaluate signals in context.

Key ideas

  • A Doji has opening and closing prices that are close together.
  • The described detector also requires those prices to be near the candle’s high-low midpoint.
  • The tool checks the previous closed candle and issues an alert when it finds a match.
  • The document treats a Doji as possible evidence of indecision or reversal, without presenting performance tests.

Tags

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