How can we create an EXIT condition like this example:
close > entry time EMA20 + (some value)
How can we create an EXIT condition like this example:
close > entry time EMA20 + (some value)
Store the EMA value at the moment you enter, then compare against the stored value in the exit.
ema_entry, click Fx and set it to the EMA of the last closed candle:Position(EMA(CLOSE(Symbol(<instrument>, '15m')), 20), -1)Position(CLOSE(Symbol(<instrument>, '15m')), -1) > Get Runtime Number(ema_entry) + Number(<value>)At entry the 20 EMA is 18,450. With <value> = 50, the exit fires when a 15-minute candle closes above 18,500.
Notes: a Universal Exit clears runtime variables. You can see stored values on the Deployed page → ⋮ → Runtime Data. Test in Live Offline.
Worked example: Use Entry Candle - High and Low using Runtime Variable - #8 by Nelson
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.