BACKTESTING · HEIKIN-ASHI TREND

Heikin-Ashi Trend Signal Backtest in Crypto: Fees, Slippage and Break-Even Costs

Heikin-Ashi candles average prices to smooth trends. Their open and close aren't real prices, which is the main backtest trap.

Short answer

Heikin-Ashi close = average of open, high, low, close; HA open = average of the previous HA open and close. A rule like 'buy after two green HA candles' is fine as a signal, but filling at HA prices assumes trades at levels that didn't exist. Simulate fills at the real next-bar open with costs. HA signals also lag, which affects break-even cost through later entries and exits.

Break-even cost

ItemValue (illustrative)
Trades90
Gross avg per trade+0.70%
Fees (2 × 0.05%)−0.10%
Slippage (2 × 0.04%)−0.08%
Net avg per trade+0.52%
Break-even round-trip cost0.70%
Heikin-Ashi Trend: edge vs cost per trade (%)Heikin-Ashi Trend: edge vs cost per trade (%): Gross edge 0.70 %; Fees 0.10 %; Fees + slippage 0.18 %.HEIKIN-ASHI TREND: EDGE VS COST PER TRADE (%)Gross edge0.70 %Fees0.10 %Fees + slippage0.18 %
Edge per trade versus cost per trade. Original ChartsPod editorial graphic.

HA vs real fills

Fill priceNet avg (illustrative)
HA close+1.15% (invalid)
Real next open+0.48%
Real close of signal bar+0.52% (borderline look-ahead)
Illustrative net avg (%)Illustrative net avg (%): HA prices +1.15 %; Real next open +0.48 %.ILLUSTRATIVE NET AVG (%)HA prices+1.15 %Real next open+0.48 %
Only real prices are tradable. Original ChartsPod editorial graphic.

Conclusion

Related: Range-Bar Trend Following Backtest in Crypto: Fees, Slippage and Break-Even Costs, Renko Trend Signal Backtest in Crypto: Fees, Slippage and Break-Even Costs.

Backtest the heikin-ashi trend rule with costs in ChartsPod.

Open the ChartsPod terminal

HA signals also lag, which affects break-even cost through later entries and exits.

See Heikin-Ashi Trend Signal Backtest in Crypto on live data in the free ChartsPod terminal.

Open the ChartsPod terminal

Questions readers ask

Are Heikin-Ashi prices real?

No; they're averages.

Can I use HA signals?

Yes, with real-price fills.

Do HA signals lag?

Yes.

Sources and methodology

Backtest cost logic follows TradingView's Pine Script strategy documentation; indicator definitions are standard. All performance numbers are illustrative examples of the method, not results of real tests.

  1. TradingView Pine Script: Strategies — simulated fills and assumptions.
  2. TradingView Pine Script: Repainting — live vs historical calculation.
  3. ChartsPod documentation — guides for order flow, derivatives, alerts, backtests, journal and workspaces.
  4. TradingView: Unrealistic results on non-standard chart types — synthetic prices vs real fills.

This article explains research tools and workflows. It is not financial advice, does not recommend buying or selling any asset and does not predict prices. Crypto derivatives carry a risk of rapid and total loss of margin.

CHARTSPOD EDITORIAL EDITION · RESEARCH AND EDUCATION ONLY · NOT FINANCIAL ADVICE.