Exit strategy on Max Loss and Re-enter the strategy again once
Strategy2,144 views
RATHI TAC
Hello.
I want to exit the strategy on Max Loss of say 2000 per lot and then re-enter the same entire set say maximum 2 times. How can I do this?
If I use “Universal Exit and the Reactivate after 2 mins”, it will not stop at 2 entries in total. Also, it takes 2 mins to reactivate whereas I want to execute it immediately.
Option1- Use 2 Sets - Set1 & Set2
Option2 - Set1 only. But exit condition use repair continuos. In the entry condition use Positional Details to find quantity and restrict for 2 time entry quantity
Use a re-entry counter and exit with a set exit, not a Universal Exit. A Universal Exit kills all runtime variables, which resets your count, and reactivation always waits for the set time.
Steps
Initialize Variables:rounds = Number(1).
Entry condition: your logic AND Get Runtime(rounds) <= Number(3) (first entry + 2 re-entries).
Entry → Runtime Variable:rounds = Get Runtime(rounds) + Number(1).
Set Exit (max loss): add up the pnl of each leg with Traded Instrument (field pnl) and exit when it is <= Number(-2000) per lot (multiply by your lots, and by Multiplier if you deploy above 1X).
Why not PNL? PNL is the whole strategy’s P&L for the run, including trades already closed. After the first loss it would stay below −2000 and keep the set exiting.
After a set exit, the set checks its entry again at the next condition check, so it can re-enter right away. Add a Universal Exit at day end. Test in Live Offline first.
Answer written with AI from Tradetron docs (Oct 2026). Original replies are kept above. Spot something wrong? Reply below.