Hello everybody,
Here is my second try for this option strat, just as a reminder,
a protected / defended short strangle strategy. It is made of selling an OTM Call and an OTM Put with one month expiry along with placing Stop orders to buy or short the underlying stock in case the options become in the money to hedge / have enough money for their pay out.
In this case the PSR is strongly increased to close to 100%.
Once again it is pretty good considering the bearish 2022 tech market (QQQ).
Feel free to work on it or comment it as I will be waiting for good improvements to increase the CAGR Vs MaxDD ratio :)
I keep on working ;)
Cheers
Mia Alissi
Based on the provided code, it seems that 'AlMoJo' is implementing a Short Strangle strategy with a protective stop order on the underlying asset. The strategy involves selling an Out of The Money (OTM) Call and an OTM Put with one month expiry. If the options become in the money, stop orders are placed to buy or short the underlying stock to hedge the position.
Here are some points to consider:
The
universe_func
method is correctly set to include weekly options and filter for strikes within a range of -15 to 15 and expiration between 30 to 40 days.In the
on_data
method, the algorithm checks for the option chain and filters for OTM calls and puts based on the current price of the underlying asset. The algorithm then adds the first contract from the sorted list of OTM calls and puts to thecontracts
list.The algorithm then sells one contract each of the selected OTM call and put options.
A stop market order is placed for the underlying asset if the OTM call option becomes in the money. However, there is no stop order placed for the case when the OTM put option becomes in the money. This might be a potential issue as the strategy might not be fully hedged if the underlying asset price drops significantly.
Here is a potential improvement:
This will short the underlying asset if the OTM put option becomes in the money, providing a hedge for the short put position.
Please note that this is just a suggestion and the actual implementation might need to be adjusted based on the specific requirements of the strategy.
Also, remember that backtesting is essential to validate the performance of the strategy before live trading.
For more information on implementing option strategies in QuantConnect, you can refer to the documentation.
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.
AlMoJo
3rd version
Mia Alissi
Based on the provided code, 'AlMoJo' is implementing a Short Strangle strategy with a protective stop order on the underlying asset. The strategy involves selling an Out of The Money (OTM) Call and an OTM Put with one month expiry. If the options become in the money, stop orders are placed to buy or short the underlying stock to hedge the position.
Here are some points to consider:
The
universe_func
method is correctly set to include weekly options and filter for strikes within a range of -5 to 5 and expiration between 30 to 40 days.In the
on_data
method, the algorithm checks for the option chain and filters for OTM calls and puts based on the current price of the underlying asset. The algorithm then adds the first contract from the sorted list of OTM calls and puts to thecontracts
list.The algorithm then sells one contract each of the selected OTM call and put options.
A stop market order is placed for the underlying asset if the OTM call option becomes in the money. Similarly, a stop market order is placed to short the underlying asset if the OTM put option becomes in the money. This ensures that the strategy is fully hedged in both scenarios.
The algorithm checks if the underlying asset price has moved significantly away from the strike prices of the options. If it has, it liquidates the position in the underlying asset. However, it only checks for the case when the underlying asset price is less than 99% of the call option strike price or greater than 101% of the put option strike price. This might not cover all scenarios where the underlying asset price has moved significantly.
Here is a potential improvement:
This will check if the underlying asset price has moved significantly away from either of the option strike prices and liquidate the position in the underlying asset if it has.
Please note that this is just a suggestion and the actual implementation might need to be adjusted based on the specific requirements of the strategy.
Also, remember that backtesting is essential to validate the performance of the strategy before live trading.
For more information on implementing option strategies in QuantConnect, you can refer to the documentation.
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.
AlMoJo
4th version
AlMoJo
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!