It seems that there are some things I can only do in QC using C#, and I would like to use this feature in both my live algo as well as in my research book. Since I'm pretty green to C#, I'd like to know, can I use the method described here to run my C# code inside my research book?
http://mikejuniperhill.blogspot.com/2019/02/cpython-creating-python-wrapper-for-c_18.html
Robert Christian
Never mind. I didn't realize the research book supports C#.
Robert Christian
Actually, I am wondering again if this is possible, because it seems there's no way to plot charts in a C# research book.
Shile Wen
Hi Robert,
What is something that'd you'd like to do that can only be done in C# and not Python?
Furthermore, Plotting is currently not supported for C# notebooks, however, we have an Issue here to request plotting support, which means any plotting should be done in Python notebooks.
Best,
Shile Wen
Robert Christian
Hi Shile,
RollingWindow asks for a type param, but can only use C# classes as far as I can tell, it can't take a Python class, which makes sense. I don't know Python/C# well enough to know if there's a way to make it ignore this type param. If I want to use a RollingWindow of objects that I define (in Python), it seems I can't.
Shile Wen
Hi Robert,
Try using a deque for Python objects.
Best,
Shile Wen
Robert Christian
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!