Traded instrument condition check triggering after exit — Tradetron Community
← Community

Traded instrument condition check triggering after exit

Uncategorized 818 views

Suman

Repair condition having traded instrument is getting triggered after the set exit. Any solution?

Tradetron Team Tradetron team

Traded Instrument keeps returning the old leg’s values after the set exits, so a repair condition built on it can stay true. Add a check that the position is still open.

Fix

Add this with AND to the repair condition:

Open Positions Detail('All', 'All', <underlying>, 'count') > Number(0)

Open Positions Detail counts only instruments that are open right now; a squared-off instrument drops out. So the repair can’t fire once the set is flat.

Example

Repair: LTP(<leg>) >= Traded Instrument(Entry, price, ...) + Number(30) AND the open-positions check above. After the set exits, the count is 0 and the repair stays quiet.

Avoid Positions Detail for this: it counts closed trades too.

Test in Live Offline and check the Notification Log. Keyword reference: Keyword Documentation — Tradetron

:sparkles: Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.