yes …compare -1 Candle with SMA/EMA 21 -8
Yes. An offset (shifted) moving average is the same average read from an earlier candle, and you do that with the Position keyword’s candle index.
At the last closed candle (-1), the shifted SMA equals the SMA of 8 candles earlier, i.e. candle -9:
Position(CLOSE(Symbol(<instrument>, '15m')), -1) > Position(SMA(CLOSE(Symbol(<instrument>, '15m')), 21), -9)
This reads: “the last closed candle closed above the 21-SMA displaced by 8 candles”.
0 is the candle still forming; -1 is the last closed one.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.