When I run the following, I am getting a non descript error that I dont know how to troubleshoot.
I do not have a parameter “source” anywhere in my code. Can anyone please explain whats going on?
The error:
Runtime Error: Value cannot be null. (Parameter 'source') in Extensions.cs:line 2720 (Open Stacktrace)
Fred Painchaud
Hi Axist,
You are getting the error from C# code. So the error comes from your code using LEAN, where some “source” parameter in C# code is null. It can be because your own code has a value which is None but also because your code uses LEAN in a way which exacerbates a bug…
Your code is long and relatively complex. I searched a bit but did not find where in the code the error pops out. It would need to be debugged to see which Python line makes the error pop…
I might have time to do that tomorrow but you can also try to seek some help from support…
One thing you could do on your side is remove (comment out) parts of your algo, one by one, and re-execute it each time. In order to spot which part generates the error. Then, you can focus on which line… Try to remove “features” one by one…
Fred
Axist
I've still never got through this…
I know it likely has something to do with the FScore and universes blocks,
Attached another backtest that produces the same error.
Louis Szeto
Hi Axist
It is because the CoarseFilter filter didn't return anything. You'll need to call
at the end of that.
I didn't spot any tech_ROA variable in the Roboto class. You probably will also have to manage that in the Fine filter.
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.
Axist
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!