

QUANTCONNECT COMMUNITY
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.
Akira
I am very aware how general my question is and ambiguous
Mia Alissi
Sources: Basic Template Index Daily Algorithm, Momentum Effect In Commodities Futures, Daily Algorithm, P E P8 Style Basic Algorithm, Futures Fast Trend Following, with Trend Strength
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.
Mia Alissi
To help Akira with more specific questions, here are some key points about the methods and properties used in QuantConnect algorithms:
Initialize Method: This is where you set up your algorithm, including start and end dates, initial cash, and the securities you want to trade. For example:
OnData Method: This method is called whenever new data is received. You can use it to make trading decisions. For example:
SetStartDate and SetEndDate Methods: These methods define the period over which your algorithm will run.
SetCash Method: This sets the initial cash balance for your algorithm.
AddEquity Method: This adds an equity security to your algorithm for trading.
SetHoldings Method: This method is used to set the target percentage of your portfolio to invest in a particular security.
Portfolio.Invested Property: This property checks if the portfolio is currently invested in any securities.
By understanding these components, Akira can formulate more specific questions about the behavior or issues encountered in their algorithm. If there's a specific error or unexpected behavior, providing details about it will help in diagnosing the problem more effectively.
Sources: Initialization - QuantConnect.com, Documentation Home - QuantConnect.com, Documentation Home - QuantConnect.com, Documentation Home - QuantConnect.com, Basic Template Algorithm
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.
Akira
Louis Szeto
Hi Akira
I did not reproduce your issue with the backtest you provided, so it is probably related to the node capacity. You may upgrade your node, or seek ways to run the code faster (probably seek help from Mia). :)
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.
Akira
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!