I am also need to understand an error.
when I am using this feature, once it is working ok, but when iam taking trade 2 times this condition is giving error, 1st time it is ok but 2nd time this is not working and trade is exiting only on universal exit, I am posting some screenshot for reference, pl help .
Leg TSL (and Leg Exit) has a few rules. Breaking any one of them makes it look like it “didn’t work”.
Checklist
Put it in a Repair Once block that points at the correct leg (set, condition and leg number).
Activate at must be more than zero.
Points are price points of the option, not rupees of P&L. Percentage is a % of the price.
Enter values at 1X. They scale with your deployment multiplier automatically.
The leg must enter only once per counter. Leg TSL does not trail re-entries. That explains the second issue above: the first trade trailed, the re-entry did not, so it exited only at the Universal Exit.
Fix for re-entries
Limit the entry to once per counter with a runtime variable: Initialize s1entry = Number(1), entry checks Get Runtime(s1entry) == Number(1), entry runtime sets Number(2). If you need trailing on every re-entry, build the trail with your own conditions or custom Python.