Hi All!
Thank you for taking the time to read this!
I am about to deploy an algorithm to live trading. I had questions on the following functions, if they actually do anything in live trading, or does QuantConnect ignore / use default values for the Live Brokerage selected in the deployment [in my case IBKR]:
- QCAlgorithm.SetStartDate
- QCAlgorithm.SetEndDate
- QCAlgorithm.SetCash
- QCAlgorithm.SetBrokerageModel
- Symbol.SetDataNormalizationMode
- Symbol.SetFeeModel
- Symbol.SetLeverage
Thank you for your feedback!
Corvin
Alexandre Catarino
Hi Corvin Codirla ,
In live mode, the following are not ignored:
- SetBrokerageModel: some of the rules are used to avoid placing orders that will be rejected by the brokerage;
- SetDataNormalizationMode: live data is “raw”, but if your algorithm needs historical data requests, they will returns values according to the data normalization mode;
- SetFeeModel: it will be used to calculate the order quantity if we use order helpers like SetHoldings. However, the algorithm receives the fee from the brokerage and updates the cash book with this value;
- SetLeverage: we can set different leverage, but it will create a mismatch between the buying power in the algorithm and given by the brokerage. If the value is greater than the leverage allowed by the brokerage, the orders will pass the validations in LEAN but can be rejected by the brokerage.
Corvin Codirla
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!