Hello Everyone,
We have an issue using the alpha stream framework. We want to access a proporty declare on the Algorithm using Algorithm.Property on the Update method however the algorithm is an QCAlgorithm object so we can't access our properties.
Please do you have any ideas how to deal with this issue ?
Thank you so much.
Shile Wen
Hi Nicholas,
According to this thread, the algorithm parameter inside the Framework components are not instances of the custom algorithm, rather they are of the base QCAlgorithm class. This means to access the fields, we need to pass our algorithm object on the initialization of our Alpha Model, which can be seen in the aforementioned thread or in the attached backtest.
Best,
Shile Wen
Nicolas ALLAIN
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!