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
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

use following this will give you close > ema
Heikin Ashi(Symbol('NIFTY 50','5m')).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.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
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.
Request received. Pick a time now, or close this and we'll call you to set one up.
The calendar didn't load here. Open the booking page ↗
Booked. The calendar invite is on its way to your email.
Tradetron's AI assistant — pricing, brokers, strategies, anything.
AI can make mistakes. Consider checking important information.
How good was it?
We store the question and the answer with your report so the team can audit it.