How to update univeral exit if repair condition is triggered?
Keyword help3,108 views
Sanket
Hi,
I want to update my universal exit condition only if the repair once condition is triggered. Suppose by default I have PnL > 5000 in universal exit condition, now If repair once is triggered i don’t want to wait till 5000 and exit when PnL > 2500. what keywords should i can use and what can be the alternatives to achieve this.
Br,
Sanket
Sanket
can I use entry time and LastReparied time? What will the last repaired time show if it’s not repaired?
if I have entered at 9:50 and last repaired was at the day before at 13:50 will EnteryTime < LastRepariedTime will give me inaccurate results?
i am trying to achive this with below block. lets see if it works in next few days paper trades..
yes i do have entry for nifty and bank nifty both.. there is big OR block in universal condition this is just a snip of adjustment.
Initialize Variables:repaired = Number(1) (start at 1; a bare 0 can read as false).
In the Repair Once block’s runtime variables: set repaired = Number(2). It is written after the repair’s leg is taken.
Universal Exit, two lines joined with OR:
PNL >= Number(5000) * Multiplier
Get Runtime Number(repaired) == Number(2) AND PNL >= Number(2500) * Multiplier
This avoids comparing EntryTime and LastRepairedTime, which can mislead when the repair happened on another day. A Universal Exit clears all runtime variables, so the flag resets for the next run. Test in Live Offline.
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.