Hi,
I am new to QuantConnect and trying to implement a short QQQ call strategy. This strategy is designed to sell call options before every week end(most are Friday) and it monitors the profit/loss of the current contract. If the loss reaches 100%, then it should liquidate all short-selling positions. Now I consider that my error occurs due to the wrong way to get the current price of option. I am wondering if there is any smart way to deal with this problem. Thank you!
Frank
https://www.quantconnect.com/terminal/processCache?request=embedded_backtest_3efd2cd1e7514eb59a0ac44c6ac1cb4d.html
Runtime Error: Exception has been thrown by the target of an invocation. symbol must not contain the characters '|' or ' '. Parameter name: symbol
Derek Melchin
Hi Frank,
The core reason for the error in the backtest above is explained in this related thread.
See the attached backtest for a working algorithm. Note that much of the code has been removed for simplicity.
Best,
Derek Melchin
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.
Frank Teng
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!