Back

Trying out local charting with Lean engine throws an exception

Hi guys!

I am trying to use Lean engine in local mode to get charts on the desktop, but I get an exception when running the launcher.

This is what I have done:
1. in launcher/config.json: "environment": "backtesting-desktop",
2. in launcher/config.json: "algorithm-type-name": "BasicTemplateAlgorithm",
3. in launcher/config.json: "job-user-id": "api key found on my account page",
4. in launcher/config.json: "backtesting-desktop": { "api-access-token": "api key found on my account page",

When I run, I get the following exception on line 139 in Composer.cs:
An unhandled exception of type 'System.ComponentModel.Composition.Primitives.ComposablePartException' occurred in System.ComponentModel.Composition.dll
Additional information: An exception occurred while trying to create an instance of type 'QuantConnect.Queues.JobQueue'.


Is charting on the desktop via Quantconnect.Views not released yet, or am I doing something wrong here?

/Dough
Update Backtest








Don't know what your issue is, but I got this to work quite easily.
I had to run it a couple of times before it started working...

So the feature is there and is working. Maybe try another algorithm?
0

Hi Erik!

Great to here you got it working, so there is hope, even if it means I am probably doing something wrong!

I tested DailyAlgorithm, but still get the same exception.

The exception occurs during setup of lean engine system handlers on line 57 in Launcher.Program.Main()
This, i think, is before algorithm comes into the picture. So the problem seems to be on a lower, more basic level.

-> Erik, you have obviously done something I have missed. If you look at the 4 things I have changed in config.json, what have you done that I haven't?
0

" 3. in launcher/config.json: "job-user-id": "api key found on my account page","

User id is an int, you can find it by typing "uid" into the backtesting terminal.
1

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.


Thanks Jared,

It's working now!
0

Update Backtest





0

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.


Loading...

This discussion is closed