Skip to content
All library documents

Classifying Heikin-Ashi Doji Candles with Directional Signals

Article ProRealCode

Summary

The document presents an indicator that draws Heikin-Ashi candles and marks narrow-body candles as potential dojis. It distinguishes an upward case, a downward case, and an undecided case, using the relationship between the Heikin-Ashi and regular candle values to assign direction. The code defines a small body relative to the candle range, places text and arrows near identified candles, and uses average true range to offset those marks from price. For an ambiguous doji, the description suggests consulting a second indicator, such as Stochastic, to help judge direction.

This is charting logic rather than a tested trading system: no entry, exit, position sizing, or performance results are provided. The text does not specify how the secondary indicator should resolve an undecided signal. The code’s candle calculations and comparisons also depend on platform-specific conventions and should be checked in the intended environment. A doji label alone does not establish a reliable forecast of subsequent price movement.

Key ideas

  • The indicator builds Heikin-Ashi candles and identifies dojis when the body is small relative to the candle range.
  • It labels potential dojis as upward, downward, or undecided using candle-value comparisons.
  • Average true range offsets the chart annotations from nearby prices.
  • A second indicator, such as Stochastic, is suggested for ambiguous cases, but no decision rule is given.
  • The document contains no backtest or evidence that the candle labels predict profitable trades.

Tags

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