Testing Heikin-Ashi Bar Sequences with Real-Price Entries
Summary
This flexible strategy calculates Heikin-Ashi candle values internally while running on a standard price chart. Long and short signals depend on configurable runs of bullish or bearish Heikin-Ashi bars, along with counts over a wider lookback window and adjustable thresholds. Inputs can reverse the signal direction, modify limit-entry offsets around the bar open, and set open-profit thresholds for closing all positions.
The stated purpose is to test Heikin-Ashi bar behavior while placing orders against standard chart prices, avoiding the fictitious execution prices that can result from trading directly on Heikin-Ashi charts. The script describes its mechanics but supplies no performance results or comparative tests. Its exits are global profit and loss thresholds rather than per-trade stops, and entry directions can be reversed through settings. Results will depend on the chosen bar counts, thresholds, offsets, instrument, and timeframe; the note specifically warns that using synthetic chart prices can misrepresent fills.
Key ideas
- Heikin-Ashi candles are computed internally so signals can be evaluated on a standard price chart.
- Directional signals combine consecutive candle colors with configurable counts over a longer window.
- Inputs allow reversing signal direction and adjusting limit orders around the bar open.
- All positions close when aggregate open profit crosses configured gain or loss thresholds.
- The document describes a testing framework but provides no evidence of strategy performance.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.