Hello everybody 😊
Â
I tried to backtest a bullish short spread strategy. So I added a way to control the 2 options strike offset specially to hedge downside risk to like 5% per 60 days or so. I am unable to figure out if my filtering of the strikes works as sometimes I get almost no difference in terms of cagr and max drawdown while changing the strikes offset like 0.95 for long put and 1.03 for short itm put. Here is my backtest. Can please anybody tell if the strikes filter is effective?
Â
Thanks a lot 😊
Mia Alissi
From the provided code, it seems like you are implementing a Bull Put Spread strategy on MSFT options. You are filtering the options based on their expiry and then selecting the ITM and OTM strikes based on a lower and upper bound calculated from the underlying price.
The code seems to be correctly implementing the Bull Put Spread strategy. However, the effectiveness of the strike filter would depend on the specific market conditions and the underlying asset's price movements. If the underlying asset's price doesn't move significantly within the range defined by your lower and upper bounds, changing the strike offset might not have a significant impact on the strategy's performance.
Here is the relevant part of your code where you implement the Bull Put Spread:
You might want to add some logging to your algorithm to track the selected strikes and see how they change over time. This could help you understand if your strike filter is working as expected.
Remember, backtesting is a way to simulate the strategy's performance based on historical data. It's important to also consider other factors such as market volatility, liquidity, and transaction costs when evaluating a strategy's effectiveness.
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
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!