Some quick questions about deploying an algorithm live:
- If my self.SetCash is set to $10,000 and my account has $20,000... will the algorithm use my full amount of $20,000 or only $10,000? all my order sizes are set to be x1.0 the SetCash but I just want to make sure lol
- If for whatever reason, my account gets disconnected to the algorithm with open trades... can I deploy again the algorithm and it will take into consideration the open trades? (as long as they are symbols that get used in the algorithm)
- Anything to avoid when using Interactive Brokers as the brokerage where all trades will be taking place?
Please let me know if you need clarification on any of the questions.
Arthur Asenheimer
Hi AndrĂ©s,Â
I don't use live trading via QuantConnect myself, but I would like to tell you something about it anyway: I strongly advise you to test everything on your IB Paper account. In particular, you will be able to answer your questions on a paper account yourself and you will also feel better and more secure because you don't have to rely on the testimony of a stranger.Â
Just link it to your IB Paper Account and let it run. You can disconnect and reconnect from the Trader Workstation using Ctrl+Alt+F. The question regarding the selected cash balance and position size should appear immediately after the first order is executed.Â
I hope someone with experience in live trading via QuantConnect can tell you more.Â
Andrés M
Thank you Arthur Asenheimer for responding.
I will go ahead and do what you proposed.
If I may ask, do you do live trading? if so, why don't you use Quantconnect and what do you currently use?
Thank you again
Arthur Asenheimer
I do live trading but I am currently using the native IB Python API and the ib_insync package. I will shift to QuantConnect after I am familiar enough with the API.Â
Dahui
Sorry if this is unrelated to the original topic, but I am wondering Arthur Asenheimer if you could comment on the pros/cons of using the native IB Python API versus Quantconnect for live trading? I do not see any functionality to private message else I would have asked there.
Louis Szeto
Hey Dahui
I can share a bit my personal experience with you here.Â
Native IB API:Â
Â
QC:
I could think of these by now only lol, hope it helps.
Cheers
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.
Ton86
I've tried live on IB through QuantConnect (QC). Problem for me was that every time I logged into IB's app it wanted to kick my live algo running on QC.Â
QC is still useful for me because I want to program in Python and use QC's fundamental data.
I think you might need to run your algo on a standalone IB account you don't plan to log into while your QC algo is running.
Arthur Asenheimer
Hi Dahui,Â
Louis has already mentioned many good points that I can confirm.Â
Just two more points I'd like to add:Â
Pranava
Hi Ton86,
you can create 2 users to access the 1 account in IB. so can simultaneously login to TWS and also run the algo live.
Â
Cheers,
Pranava
Andrés M
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!