Skip to content
All library documents

Heikin-Ashi Runs and Bar-Count Filters for Trade Signals

Article Strategy library · Author: Tarzan the Ape Man

Summary

This strategy builds Heikin-Ashi candles from price data and uses their direction to form long and short signals. A signal requires a configurable run of consecutive candles in one direction, then checks the count of bullish candles over a wider lookback window. Inputs can change the run length, window size, count thresholds, and whether the long or short count condition is inverted. Orders are submitted at limits based on the bar open, with adjustable offsets.

The document provides source code and configurable defaults, but no performance results or market-specific evaluation. It also includes profit-target and maximum-loss inputs without showing the corresponding exit logic in the available excerpt. The strategy’s behavior therefore cannot be fully assessed from this text, and its parameters would need careful testing, including in sideways markets where alternating candle colors may generate noisy signals.

Key ideas

  • Heikin-Ashi candle direction is used to identify consecutive bullish or bearish runs.
  • A wider bar-count window filters signals according to the number of bullish candles it contains.
  • Inputs allow the run length, count limits, and long or short filter direction to be adjusted.
  • The excerpt shows limit entries but does not include the complete exit logic or performance evidence.

Tags

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