I want to exit all my entered quantity, once exit condition meets.
For example the price is 100 rs for stock,I bought 100 qty. As price is going up, I have added 100 more. In this way I have added 400 qty of the stock.
Now once the condition meet, I want to exit all my entered qunatity.
What to be Fx in condition builder?
Or where should I put this?
Learn
Universal Exit may be the solution.
Rajnish
I have tried universal exit with pnl less than number formula. But it went into loop.
The reason for loop is as soon as I got the entry the exit condition was also satisfied.
Learn
Please check with online support. If you get the solution please do post back.
Bhavesh Savla
If its SET level… then your exit condition will exit all the qty - and ideally, this logic should be there.
If not, have you tried net quantity ?? in qty fx
Tradetron TeamTradetron team
Put the exit in the Exit condition of the same set. When a set’s exit fires, it squares off all open quantity in that set, including every add-on you bought. You do not need a quantity formula for this. To close everything in the strategy at once, use Universal Exit.
Why your Universal Exit looped: PNL < some number is often already true right after entry (PnL starts near zero, or slightly negative after costs). The strategy enters, exits at once, enters again, and so on. Fix it like this:
For a stop loss, compare against a negative number scaled by the multiplier: PNL <= Number(-2000) * Multiplier.
For a target, use PNL >= Number(...) * Multiplier.
If it should not re-enter after the exit, add a once-per-run gate with a runtime variable. Initialize s1entry = Number(1), add Get Runtime Number(s1entry) == Number(1) to the entry, and set it to Number(2) in the entry’s runtime.
Test in Live Offline and read the Notification Log to confirm one entry and one exit.
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.