Heikin Ashi entry on 21 MA crossover, exit on reverse — Tradetron Community
← Community

Heikin Ashi entry on 21 MA crossover, exit on reverse

Keyword help 1,235 views

nila

Hi

I wanted to trade with Heikin-Ashi pattern entry with crossing of 21 MA and exit with reverse signal , Can you please guide how to do.

Regards
Pat

Ujjwal

image
use following this will give you close > ema

Tradetron Team Tradetron team
  1. Build the candles with Heikin Ashi on your instrument and timeframe, e.g. Heikin Ashi(Symbol('NIFTY 50','5m')).
  2. Take the close of those candles and compute EMA with period 21.
  3. Entry: Position(Cross(CLOSE(HA candles), EMA(CLOSE(HA candles), 21)), -1) == Number(1). Cross returns 1 only on the bar where the first series crosses above the second.
  4. Exit (reverse signal): the same with the two series swapped (close crosses below the EMA).

Use index -1 (last closed candle). Index 0 is the candle still forming and can flip. Test in Live Offline first. Keyword docs: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.