By default, once a position is opened, it is considered open unless it has expired or has been explicitly closed by an accompanying order with matching
OrderID. This allows multiple positions to be managed and tracked separately, without worrying about one trade interfering / offsetting another trade unintentionally.
For example, the following example below has two separate trades that offset each other:
OrderId=”
SellPut1”
Sell Put @ Strike = 100
OrderID = “BuyPut1″
Buy Put @ Strike = 100
By default, since both positions (
SellPut1 and
BuyPut1) have different OrderIds, they are both considered open and tracked as two separate positions, even though one position effectively offsets / closes the other position.
But if you set the
consideredPositionsClosedIfOffsetByIndependentPositions setting, both positions will be considered closed, since they offset each other and result in a net zero position.
In the OptionWheel example, the short in-the-money puts are assigned into long stock. Covered calls are then sold against the long stock. When the covered calls are in-the-money, they are assigned into short stock. The short stock then effectively cancels out the assigned long stock.
But by default, each position (Short Put / CoveredCall) are still considered open, since they were closed by different OrderID's. Since each strategy also has a
MaxOpen = 1 by default, new trades will not be opened until the old positions are considered closed.
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory or other services by OptionStack. In addition, the content of the website offers no opinion with respect to the suitability of any security or any specific investment. There are no guarantees as to accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. Past performance is no indication or guarantee of future results. All investments involve risk – including loss of principal. You should consult with an investment professional before making any investment decisions.