↑↓ to select, press enter to go, use esc to exit
  • Pricing
  • Strategy Explorer Strategies Strategies
  • Research
  • Data
  • Algorithm Lab Lab Lab
  • Documentation Docs Docs
  • Sign In
Forum
    Platform
  • Pricing
  • Datasets
  • Research
  • Datasets
  • Algorithm Lab
  • Documentation

    SIGN IN

  • Sign in
  • Don't have an account? Join QuantConnect Today

  • Sign up for Free
 

back arrow

QUANTCONNECT COMMUNITY

 
Research Announcements Lean League
COMMUNITY COMMUNITY FEED |

OPEN LEAGUE PRO LEAGUE
No Results
  • «
  • 1
  • »
LEAN Logo

Radically Open-Source Algorithmic Trading Engine

LEAN is the open-source algorithmic trading engine powering QuantConnect. Founded in 2012 LEAN has been built by a global community of 180+ engineers and powers more than 300+ hedge funds today.

Join Our Discord Channel

Join QuantConnect's Discord server for real-time support, where a vibrant community of traders and developers awaits to help you with any of your QuantConnect needs.

This research is under review. To publish this research attract three community upvotes.


Draft Discussions




Bookmarked Discussions


Loading...
  • «
  • »
 Share New Research

Refer to our Research Guidelines for high quality research posts.

 Start New Discussion Sign up

SEARCH DISCUSSIONS


TOP 5 Research Publications

-


398,700 Quants.
Become a Quant

Online Now

Code of Conduct

VOTE FOR UPCOMING FEATURES

Share your input and vote on our future direction.

LEAN Roadmap

Create an account on QuantConnect for the latest delivered to your inbox.

Sign Up Today
profile

Answers

Answers

  Backtests

Backtests

  Comments

Comments

  Live Traded

Live Traded

 

 

 

Research Announcements Lean League
COMMUNITY COMMUNITY FEED |

This research is under review. To publish this research attract three community upvotes.
This discussion is a draft. Click here to publish this discusison.

Documentation discussion key-concepts/developing-in-the-ide


Update Backtest





person upvoted this people upvoted this

QuantConnect Robot

 |  | accepted answerAccepted Answer
Permalink
Update Backtest





  • Notebook

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.

Twitter Facebook LinkedIn Copy Link

Rich Dev


12 Pro ,

I want to use my own Jupyter Notebook or Spyder IDE for all coding and backtesting.  How can I do that? 


Alexandre Catarino


107.9k Pro ,

Hi Rich,

Since Lean is written in C# using pythonnet as an interface to allow executing algorithms written in Python, it is not straightforward to develop algorithms using all the features of an IDE (namely debugging). The one setup we could figure out involves Visual Studio. We welcome suggestions on how to do it with other IDEs, namely Spyder and Visual Code.


Murali


23 Pro ,

Can you provide some REST endpoints for syncing the code at local to the server?That is, a REST API which can upload the code to my account.Some more endpoints for building and backtesting would be very helpful too. I am accustomed to writing code in Vim and tracking the changes with Git frequently.

As the code getting larger, my velocity of development is slowing down as I have to be worried about unconscious mistakes without any backups (and copy them to somewhere by hand is cumbersome).

 


Jared Broad


STAFF Pro ,
This feature will be published soon.

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.


Birinhos


9 Pro ,

Hello,

Before I start I would just like to know some pre-requirements : 

Can we upload files? Like keras pre-train models? 

Do you have S&P500 Futures (ES) Data with market depth (level II)  with 1-second refresh rate? 

Do you have any type of API so I can use in my own computer (do not develop inside the site)?

Cheers!  


Daniel Chen


17.8k Pro ,

Hi Birinhos,

Welcome to QuantConnect, and thank you for all these valuable questions.

For the first one, users are allowed to upload their custom data needed for their own algorithms. This page gives you the details. On the other hand, we are sorry to say that for now it is not possible to retrieve pre-train models. However, it is convenient and easy to train algorithms using ML libraries (Pytorch, TensorFlow, etc.) in QC. You can find all supported libraries in this whitelist.

For the second one, for now we don't have market depth data.

For the last one, you are welcome to work locally. We recommend you follow the installation instruction on this page to set up. After that, you can debug python in a very convenient way with the tutorial here. The API documentation is the same as the online one, and you will find many plugins very helpful in Visual Studio.

Hope these help!


Hi Bo


18 Pro ,

Hi

The link to the tutorial above is dead


Jared Broad


STAFF Pro ,

 Hi Bo 

https://www.quantconnect.com/tutorials/open-source/debugging-python

 

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.


Tony Wise


140 Pro ,

Hello, is it possible to completely override a class in the online IDE (for instance, the PortfolioStatistics class)? Thank you for your time!


Jared Broad


STAFF Pro ,
Yes its possible to extend anything within the bounds of the language :)
Its real C#/Py

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.


Tony Wise


140 Pro ,

Ok, so I figured out that I could "overwrite" classes in the IDE simply by copying and pasting the subject classes, but that I may need to "overwrite" a few extra classes in the IDE (literally a copy and paste) probably do to structural differences between the IDE and the local environment. Now that I know this, how can I access the final portfolio statistics?

I have attempted to use "using QuantConnect.Lean.Engine.Results" in an attempt to access the backtest result statistics; however, I get the error that "the namespace 'Lean' does not exist in the namespace 'QuantConnect.'" I'm not sure why this is since the documentation on github shows similar use of the namespace in other classes? I'd like to display my custom statistics in the IDE results and/or print to the console or csv. Any help here would be greatly appreciated, thank you!


Jared Broad


STAFF Pro ,

Hey Tony; please start a new discussion in the LEAN forum about this project. 

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.


QuantConnect Robot INVESTOR

 | 
Permalink
Update Backtest







  • Notebook

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.

Reply
person upvoted this people upvoted this
|
person upvoted this people upvoted this
Profile Image
Loading...
  • 1
Load More

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!


Allocate to this Strategy

Institutional clients can contact the author and allocate capital to this strategy.

Learn More
Organization

Organization Website

Team

Show More
Clone Strategy

Copy this strategy code to your QuantConnect account and deploy it live with your brokerage.

Clone
Previous Ranking

Browse strategies and organization entries from previous quarter's competitions.


Author:


IN THIS RESEARCH

PARTICIPANTS

Discussion Awards

SHARE RESEARCH
SHARE DISCUSSION
SHARE ARTICLE
SHARE


Actions
View in Strategy Explorer Award Discussion
Print Research
Comments
award-icon

What is an Award?

Research Announcements Lean League
COMMUNITY COMMUNITY FEED |

 
 

Join QuantConnect for Free

QuantConnect Logo

QuantConnect™ 2025. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Research
  • Build vs. Buy
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Settings
  • Discussions List

Company

  • About
  • Affiliates
  • Our Blog
  • Contact
  • Pricing
  • Integration Partners
  • Terms & Conditions
  • Privacy Policy

LEAN

  • Fork 4,000
  • Star 12,000
QuantConnect Logo

QuantConnect™ 2025. All Rights Reserved

Technology

  • Algorithm Lab
  • Documentation
  • Research
  • Build vs. Buy
  • Tutorials
  • Data Library
  • Learning Articles
  • System Status
  • Settings
  • Discussions List

Company

  • About
  • Affiliates
  • Our Blog
  • Contact
  • Pricing
  • Integration Partners
  • Terms & Conditions
  • Privacy Policy

LEAN

  • Fork 4,000
  • Star 12,000