Use the Cross keyword on two EMAs, read on the last closed candle with Position. This matches an EMA crossover on a TradingView chart.
Position(Cross(EMA(CLOSE(Symbol(<instrument>, '15m')), 9), EMA(CLOSE(Symbol(<instrument>, '15m')), 21)), -1) == Number(1)Cross is 1 only on the bar where the cross happens. For “is above”, compare the two EMAs directly. Keyword reference: 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.