Moving Average Crossover Entries with Heikin-Ashi Confirmation
Summary
This backtesting strategy adapts a moving average indicator into long and short entries. It offers several selectable average calculations and periods, but its default signals use the 13-period and 21-period averages. A bullish crossover begins a long setup when price is above the faster average and above a level derived from recent swing highs and lows; a bearish crossunder applies corresponding downside checks. The setup then waits for a Heikin-Ashi close to move in the required direction before entering. Users can limit the test to a date range and choose long, short, or both directions.
The script displays optional average lines and swing levels, and its description says the conversion was made for easier backtesting. It also cautions that the implementation only attempts part of the original entry checklist: the accompanying description mentions candle behavior and a Fibonacci swing level that may not be fully represented by the code. No performance results, exit rules, transaction costs, or robustness analysis are supplied, so the script describes a testable signal rather than evidence of profitability.
Key ideas
- A crossover of the selected faster and slower averages starts a directional setup.
- The strategy checks price against a swing-derived threshold before accepting the setup.
- A Heikin-Ashi close comparison provides an additional directional confirmation.
- Backtests can be restricted to a chosen period and trading direction.
- The script provides no reported performance evidence or detailed cost assumptions.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.