Skip to content
All library documents

Heikin-Ashi Directional Entries with a Date-Filtered Backtest

Article Strategy library · Author: AnthonyGunawan

Summary

This strategy calculates Heikin-Ashi close as the average of a bar’s open, high, low, and close, then derives Heikin-Ashi open recursively from the previous bar’s values. It colors bars by direction and enters long when the calculated close is above the open, or short when it is at or below the open. User-set start and end dates limit when entries can occur.

The document provides the rules in Pine Script and identifies BTCUSD as a possible use, but supplies no performance report, test results, or evidence that the approach is profitable. It does not describe position sizing, stop losses, or additional risk controls. Since signals follow bar direction, reversals may cause frequent changes in position; results would also depend on market, timeframe, execution assumptions, and the chosen test window.

Key ideas

  • The strategy compares calculated Heikin-Ashi close and open to determine bullish or bearish direction.
  • Bullish bars trigger long entries, while bearish or equal-value bars trigger short entries.
  • Start and end date inputs restrict the period in which trades may be entered.
  • The document offers no quantified performance evidence or explicit stop-loss rules.

Tags

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