Looks like your coding is wrong to calculate%.
For current price you have to use LTP
you cannot calculate untill your trade is executed and your code is also notcorrect
For the % difference between two traded legs, use Math Operation with each leg’s LTP:
((LTP leg1 − LTP leg2) / LTP leg2) × 100
LTP(Traded Instrument Name(Set 1, Condition 1, Leg 1)) and ... Leg 2.+ - * /).> Number(2).This only works after both legs have traded.
Example: leg 1 LTP = 102, leg 2 LTP = 100 → (102 − 100) / 100 × 100 = 2%. The exit fires on the next check where the result is above 2.
If the exit never fires, check that the Set / Condition / Leg numbers point at the right legs, and look at the computed value in the Notification Log while running in Live Offline. Keywords: 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.