Attached is my project I am working on and as you can see in the log output. the rate of change percent is stored in a variable but it stores the first tickers ROCP as the variable and ignores the second ticker.
So the logs/output looks like this:
2017-11-01 13:30:00: -2.08548IBM
2017-11-01 13:30:00: -2.08548AAPL
but I need it to be:
2017-11-01 13:30:00: -2.08548IBM
2017-11-01 13:30:00: 1.45676AAPL
The numbers I used are not the actual ROCP.
I need this to work with 4-5 tickers, the variable is stored in the self.__change variable I made, It doesn't affect the algorithm because I need this logic to work first.
Garrison Whipple
I figured out how to store the unique variables but now I am stuck trying to implement a buy call option into my algo. see attached file. I have tried over 20 different ways to buy options with it but nothing works. please help
Louis Szeto
Hi Garrison
The algorithm is missing the Order method (e.g. self.MarketOrder()), as well as the specific underlying symbol self.symbol in your OptionFilter method. Please refer to this and this example algorithm in our repo for trading options, as well as this thread on AddOptionContract usage.
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.
Garrison Whipple
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!