Why are my entry/exit systems not producing exit signals when the exit rules are true?
The rules associated with an entry/exit system are checked in the following order: Enter Long Enter Short Exit Long Exit Short In other words, the exit rules will only be evaluated when the entry rules are not true. The order of rule evaluation cannot be changed. However, you can add logic to your entry rules to check for relevant exit conditions and not enter in those situations. So that you do not have to enter the same logic in the entry and exit rules, you can create a function definition with the logic for when to exit. Then, evaluate this function as part of both the entry and exit rules.