Hi QC Community,
What is the best way to implement multi-leg option strategies with limit orders? My understanding is the OptionStrategies method only supports market orders, which is less than ideal for options due to the wider spreads on multi-leg orders. In live trading, this has serious implications for slippage.
It seems like the catch-all would be to use the so-called Combo Leg Limit Order. If this is the case, will legs automatically be grouped and identified as a strategy, such as an iron condor, when LEAN sends the order to IB? Will margin be modelled correctly with this order type?
A source of additional confusion: in the Option Strategies section of the documentation, the methods to call are different for some strategies. For example, to create a bear call spread, it says to call the OptionStrategies.BearCallSpread() method, whereas an iron condor says to call self.ComboMarketOrder(). Combo Limit Orders are not the same as Combo Leg Limit Orders, so which is most appropriate for multi-leg strategies with a limit order?
This seems to be essential for exotic option strategies like iron condors, broken wing butterflies, diagonals.
Grateful for any help!
Louis Szeto
Hi Eli
OptionStrategies are helper class to abstract the whole ComboMarketOrder for easy management and order. Fundamentally, they're the same. For limit order, please stick with Combo Leg Limit Order.
As per margin model, using Combo Orders will automatically calculate the multi-leg margin instead of classical one, so LEAN's validation is not a problem before submitting the order to IB.
Best
Louis
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 services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Eli Laycock
Hi Louis,
Good to know they are fundamentally the same, that clears up some confusion, thanks! Are you able to point me towards any documentation that shows how to manage Combo Orders once they are open? All the posted tutorials for said OptionStrategies / Combo Orders demonstrate how to open them, but not how to check unrealized profits or close the same position.
Is there an attribute like UnrealizedProfitPercent that can be used to monitor stop losses on Combo Orders? If I want to create a closing order, can I call self.MarketOrder (or limit) with a negative position size on the variable I assigned to the original Combo Order object, or do I need to manually select each contract symbol from self.Securities and create a closing Combo Order? I'm using self.Liquidate in current tests which is not ideal and should instead use limit orders for live trading.
Steven
Hi team,Â
Do you have any update on Eli's second question? I also have similar question on how to monitor stop losses on Combo Orders since cannot find example in documentation.
Thanks
Eli Laycock
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 services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the 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. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!