If the algorithm closes a position that leaves a "naked" trailing stop or stop market, LEAN checks for margin requirements and sets it to invalid if there is no margin.
Checklist
[x] I have completely filled out this template
[x] I have confirmed that this issue exists on the current master branch
[x] I have confirmed that this is not a duplicate issue by searching issues
Expected Behavior
Document the following feature:
If the algorithm closes a position that leaves a "naked" trailing stop or stop market, LEAN checks for margin requirements and sets it to invalid if there is no margin.
Checklist
master
branch