Hey,
I'm currently investigating QuantConnect for use as a production platform. I have a research stack developed in R and want to know if any interfacing capability exists when using LEAN via the QuantConnect servers. (I know in "open-source" mode I can use R.NET - but then as I understand it I won't be able to access QuantConnect's tick data.)
In similar vein, what is the policy on generating data artifacts and/or data export? I have a two stage process where I generate a number of factors; these factors need to be stored somewhere and referenced in order to do actual trading. Is there space on the online servers that I can dump the factors, or if not, can I connect to an external SQL server to dump/pull these factors from within the online servers?
Regards,
Vince
Michael Handschuh
Jared Broad
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.
KyleHR
Hi Michael,
Did you get a chance to check out the stability of R?
If it proves to be unstable might it be possible instead to allow us to output to named files in our own "name space" that we can't download but can use as input to an R process we can interact with? They could run in processes that are separate to Live and Backtesting processes.
That would be pretty helpful for debugging. At the moment I log a very limited subset and import part of the log into R to visualise it. The process is tedious but I don't know a better way.
Cheers for the great work.
Regards,
Kyle
Alexandre Catarino
Hi , after this thread activity stopped in 2015, we have opted for RDotNet to enable R connectivity.
Please checkout this example: CallingRFromCSharp.cs.
KyleHR
Thank you for the example Alexandre. About this line...
engine.Evaluate("print('This is from R command.')");
Should I be able to see "This is from R command." in the plots or the log or somewhere?
Also is there some way to use the R plot function and view the output?
Thanks again.
Alexandre Catarino
Hi , for printing and plotting you will need to use Lean/QuantConnect API.
Basically, you will only be able to use R for calculations (which is the main reason to use it, right?).
Brad Hearne
Hi Alexandre, does the R engine also work when developing inside a Python instance?
Alexandre Catarino
Hi Brad,
Good question. At QuantConnect Cloud, it doesn't because we would need to add a specific library.
However, since python provides all the necessary mathematical tools for algorithm trading, what would be the usage case for R?
Brad Hearne
I'm not sure exactly the overlap between analytical packages for R and Python but there's some analyses that were performed in R that I'd like to test without having to recreate everything in Python. Not sure if it's simple or not to add it in but may be a nice addition.
Daniel Chen
Hi Brad,
Thank you for your feedback and we will take it into consideration. Please check out the libraries we currently support on this page for detail. We hope you enjoy using QC!
Vincent Chin
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!