Hi @nijinwilson
For Credit Spread strategies, the Algo always places the Long (Buy) leg first. In the scenario you’ve described, the Buy order remains pending, while the Short (Sell) leg gets executed because your account has sufficient margin to take the naked short position.
In such a case:
-
The Algo will automatically generate the exit order for the executed Short leg when the exit signal is generated.
-
The pending Buy order can be left as it is. If it gets executed later, the Algo will also generate the corresponding exit order for that leg automatically.
-
If the Buy order is still pending when the exit signal is generated, the Algo will automatically cancel this pending order.
However, if you manually cancel the pending Buy order and place a fresh Buy order yourself, the Algo will not have a record of this manually placed order. In that case, you will need to manage the exit of that manually entered position on your own.
I hope this provides clarity.