Skip to content
All library documents

Smoothed Heikin-Ashi and Stochastic Rules for Trend Signals

Article ProRealCode

Summary

This indicator combines smoothed Heikin-Ashi candles with a stochastic oscillator and a moving-average condition to mark possible entries and exits. The described logic treats rising Heikin-Ashi candles as bullish and falling candles as bearish, while candle size and shadows are used to interpret trend strength, weakening, consolidation, or possible reversal. A bullish arrow requires the stochastic K line above D, a price or prior-candle condition, and a bullish smoothed candle; the exit side uses the reverse candle and K-below-D conditions. State variables limit repeated signals until the direction changes.

The indicator also draws a vertical line on the third Friday of each month, which the author associates with options and warrants expiry effects on closing prices. Example parameter defaults are given, but there is no backtest or evidence that the rules are profitable. Heikin-Ashi smoothing can delay signals, and the expiry marker is only a calendar cue; neither should be treated as proof of a reversal or market effect.

Key ideas

  • The indicator smooths Heikin-Ashi candle values and uses candle direction to define bullish and bearish states.
  • Stochastic K and D conditions combine with price and candle filters to draw entry and exit arrows.
  • A direction-state variable suppresses repeated signals until a later qualifying change.
  • A vertical marker highlights the third Friday of each month as a potential expiry-related date.
  • The document provides rules and sample settings but no performance validation.

Tags

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