QuantConnect LEAN Algorithmic Trading Engine - Getting Started

แชร์
ฝัง
  • เผยแพร่เมื่อ 10 ส.ค. 2022
  • Like the video? Support my content by signing up for Interactive Brokers using the link below:
    www.interactivebrokers.com/mk...
    Written Tutorial: hackingthemarkets.com/quantco...
    In this video, we get familiar with QuantConnect LEAN, an open source algorithmic trading engine. We do this by testing a simple buy-the-close sell-the-open strategy.
    This content is provided by a paid Influencer of Interactive Brokers. Influencer is not employed by, partnered with, or otherwise affiliated with Interactive Brokers in any additional fashion. This content represents the opinions of Influencer, which are not necessarily shared by Interactive Brokers. The experiences of the Influencer may not be representative of other customers, and nothing within this content is a guarantee of future performance or success.
    None of the information contained herein constitutes a recommendation, promotion, offer, or solicitation of an offer by Interactive Brokers to buy, sell or hold any security, financial product or instrument or to engage in any specific investment strategy. Investment involves risks. Investors should obtain their own independent financial advice and understand the risks associated with investment products and services before making investment decisions. Risk disclosure statements can be found on the Interactive Brokers website.
    Interactive Brokers is a FINRA registered broker and SIPC member, as well as a National Futures Association registered Futures Commission Merchant. Interactive Brokers provides execution and clearing services to its customers. For more information regarding Interactive Brokers or any Interactive Brokers products or services referred to in this video, please visit www.interactivebrokers.com.

ความคิดเห็น • 92

  • @parttimelarry
    @parttimelarry  ปีที่แล้ว +14

    Like the video? Support my content by signing up for Interactive Brokers using the link below:
    www.interactivebrokers.com/mkt/?src=ptlPY1&url=%2Fen%2Findex.php%3Ff%3D1338

    • @marcvanechtelt5273
      @marcvanechtelt5273 ปีที่แล้ว

      @part time larry, I have some questions about some coding (with Java and on Tradingview too).
      Is there a way I can contact you?

    • @beethere527
      @beethere527 ปีที่แล้ว

      Can LEAN be used to connect it to other exchanges or Brokers around the world. I am from India and want to know if I can create a trading algo system and connect it with Local Broker's API who are connected to the main exchange.

  • @oliverpolden
    @oliverpolden 8 หลายเดือนก่อน +5

    This is fantastic. Taking you through all the errors you'll come across rather than just breezing through as though everything "just works".

  • @Quantconnect
    @Quantconnect ปีที่แล้ว +23

    Love the post Larry! Thank you for your review!

  • @ControlTheGuh
    @ControlTheGuh ปีที่แล้ว +6

    Been waiting for this. Great job! Idk how many people of your subs want to trade crypto, but I came for the equity videos

  • @evanlightner
    @evanlightner ปีที่แล้ว +2

    Man. Happy Holidays dude.
    You are my favorite content creator right now.
    Seriously a blessing to the community.

  • @nicky_c_305
    @nicky_c_305 ปีที่แล้ว +3

    tame impala background...didn't know it was possible to like this channel more

  • @DeepFrydTurd
    @DeepFrydTurd 11 หลายเดือนก่อน +1

    Damn bro this video just by the first 4 minutes seems to be jammed packed with good info and knowledge , nice. thank you

  • @taj-haslani
    @taj-haslani ปีที่แล้ว +8

    you should have some form where viewers can pay for your time and expertise. I will be happy to pay for your content.

  • @clarkmcquiston9131
    @clarkmcquiston9131 ปีที่แล้ว +8

    Thank you for giving out your time for free to us! I understand how valuable your time is and am very grateful that you take the time to explain these really complex topics in a way that anyone can follow along with.

  • @jimlee7943
    @jimlee7943 ปีที่แล้ว +2

    Very nice, thank you for all of your education and showcasing of these tools!

  • @eduardopina7964
    @eduardopina7964 ปีที่แล้ว +1

    Your videos have a huge amount of valuable content... thank you por putting it all toghether :)

  • @amitkehat1964
    @amitkehat1964 ปีที่แล้ว +1

    The internet blog is amazing upgrade. So neat!

  • @citec_solutions
    @citec_solutions ปีที่แล้ว +1

    Wow! Thanks for sharing this amazing video! Very insightful Larry!

  • @petrzurek5713
    @petrzurek5713 ปีที่แล้ว +4

    Finished watching, fantastic video mate 💣

  • @jeffreylabranche3437
    @jeffreylabranche3437 ปีที่แล้ว +2

    Love it! Thanks again Larry for this nice Video. Can’t wait for the next videos on live trading with IB!

  • @brendensong8000
    @brendensong8000 ปีที่แล้ว +1

    Great analysis and explanations! Thank you for sharing!!!!

  • @chentecorreo
    @chentecorreo ปีที่แล้ว +5

    Always use the fees, great work

  • @micmik
    @micmik ปีที่แล้ว +2

    Thanks for this very interesting tutorial ! 🙏🏻

  • @YuqingChan
    @YuqingChan ปีที่แล้ว +1

    really educational; this channel deserves more

    • @YuqingChan
      @YuqingChan ปีที่แล้ว

      part time larry, the bots are onto you!

  • @petrzurek5713
    @petrzurek5713 ปีที่แล้ว +7

    QuantConnect can also do crypto (spot for now, but perp futures coming soon), so you can throw some kind of BTC DCA in the mix ;-)

    • @buffaloBean
      @buffaloBean ปีที่แล้ว

      I'd be interested in learning about the futures trading. Will have to look into that

  • @venkatg5285
    @venkatg5285 ปีที่แล้ว +2

    Great video, buddy.

  • @tudatostrader
    @tudatostrader ปีที่แล้ว +3

    Really really great video Larry! Please do more :) Even a course on QC Lean! I'd be happy to pay for you to learn. Maybe in the future one options strategy or connection custom data source for local environment would be great! Awesome work! Thanks man!

  • @TransformationApplied
    @TransformationApplied ปีที่แล้ว +1

    Long time not commented on videos. As always great content! Sincerely hope you reach your goals quicker than you expect. Learning new tools is good. Would you consider doing some videos about proven techniques/strategies? For instance taking a strategy and sticking with one tool set, teach how it would be coded from A-Z (like a web app), then keep adding on that web app. Once having one viable product, maybe enhance it utilizing different tools. So whoever visits the channel would be able to see different versions of the proven strategies. I guess the key here is proven strategy. So the channel would have timeless content around these strategies as they will be around for a long time, plus audience will see different versions developed by different tools. Maybe I am asking too much. But as a long time follower I sincerely want this channel to excel further! You deserve it!

  • @Personify.solutions
    @Personify.solutions ปีที่แล้ว +3

    great stuff! much appreciated! still would suggest you to add indexing to the video. Difficult to find something back wen using this as a guide. Idk how much work this would be for you, but im sure it will boost the engagement you get like crazy.

  • @The-KP
    @The-KP ปีที่แล้ว +2

    Great video, this and the they recent one on QC. I've been building my own python backtesting backend with Alpaca market data and Apache eCharts to visualize results. Now I need to compare mine vs QC, see whether I can switch over, or combine, or what learnings to take from QC

  • @lucrativetea7029
    @lucrativetea7029 11 หลายเดือนก่อน +1

    Thanks,love this

  • @LeveragedFinance
    @LeveragedFinance ปีที่แล้ว +4

    Nice new vid!

  • @taj-haslani
    @taj-haslani ปีที่แล้ว +2

    Awesome!

  • @gloomyfolks
    @gloomyfolks ปีที่แล้ว +1

    One like ain't enough

  • @johanekh3201
    @johanekh3201 ปีที่แล้ว

    Thank you for super quality content! This series on QC Lean seem to be 6 videos, but 5 of them are labelled as private videos that cannot be seen. Is that on purpose or is there any mistake on my side? Thus, how can I watch them?

  • @ricardopineda2074
    @ricardopineda2074 ปีที่แล้ว +1

    wow congrants

  • @kannansingaravelu
    @kannansingaravelu 10 หลายเดือนก่อน +1

    Hi Larry. Great video as always. A quick query - while the backtest runs on lean cloud, locally I am getting Error: Please make sure Docker is installed and running. Docker is already installed and running. How can I get the CLI backtest work locally on Mac? Are there any docker config to be done in the latest version?

  • @TradersTradingEdge
    @TradersTradingEdge 4 หลายเดือนก่อน

    Thanks so much for all your videos.
    Can LEAN also run on FreerBSD?

  • @dealaxim
    @dealaxim ปีที่แล้ว +1

    I have a question.
    I've been super interested in intraday algo-trading for the past year and a half, but I've become pretty overwhelmed with all the options out there (especially as far as back-testing is concerned).
    What is the most straightforward way (whether that be an engine/library, platform, book, etc.) to get more involved in building a robust trading strategy?

  • @ahgh6934
    @ahgh6934 ปีที่แล้ว +4

    😊

  • @jessefleming8537
    @jessefleming8537 ปีที่แล้ว +1

    but how do you increase docker storage ! Great video btw

  • @SafwatGabrplus
    @SafwatGabrplus ปีที่แล้ว

    Hello, You showed before the "React StockCharts" library but you didn't make a tutorial about it. Can you please make a video about how to use this library and how to link it to our python projects? It will be great.... Thanks for the tutorials you make, I really learned a lot from them.

  • @Dallas4090
    @Dallas4090 8 หลายเดือนก่อน

    Tame Impala Currents is definitely an album of all time

  • @DeepFrydTurd
    @DeepFrydTurd 11 หลายเดือนก่อน +1

    o wait got it. i got my user id and api key nice.. its downloading some stuff

  • @ZachMarion
    @ZachMarion ปีที่แล้ว +2

    This was very helpful. Can you describe how you got autocomplete working?

    • @abhilashpatimidi8854
      @abhilashpatimidi8854 ปีที่แล้ว

      Request the same please. On M1 Mac. Having real trouble to make it work.

  • @movrew
    @movrew ปีที่แล้ว +1

    When will you consider doing a tutorial on deriv please 🥺

  • @eddyv524
    @eddyv524 หลายเดือนก่อน

    I ran the exact same test (last one) from your article and are getting a different result: $2,796,070.34. I copied and pasted your algo. I would expect to get the very same results...

  • @mikesara7032
    @mikesara7032 ปีที่แล้ว +1

    Due to Quantconnect charting limitations, is there a way to run live charts off API's for crypto to visually test the custom indicators build using CLI?? Thank you for the amazing work!

    • @parttimelarry
      @parttimelarry  ปีที่แล้ว +2

      Can you describe a bit more what you are trying to do? I have done videos on building your own live charts from binance websockets. What do you want to plot? What timeframe? Does it need to interact with QuantConnect?

  • @TheDjarEl
    @TheDjarEl ปีที่แล้ว +1

    Does SPY auto compound the dividends ?

  • @Anirudhlohia1
    @Anirudhlohia1 3 หลายเดือนก่อน

    thank you for the video. Is there no way that i can run testing algorithm without pushing the code to the cloud?
    my client is happy to pay quant-connect for data but not necessarily push their code into quant-connect. any alternative solutions?

  • @movrew
    @movrew ปีที่แล้ว +2

    😌

  • @user-tb3dj3km2p
    @user-tb3dj3km2p 2 หลายเดือนก่อน

    Can I use price action trading with institutional trading strategies

  • @letsgobrandon2044
    @letsgobrandon2044 ปีที่แล้ว +1

    Can you teach us reinforcement learning with trading?? You have a way of teaching so that one can learn without being completely confused lol. That would be awesome.

  • @ArunSharma-bd8fw
    @ArunSharma-bd8fw ปีที่แล้ว

    Can this take a webhook from trading view as part of a strat

  • @Cavz001
    @Cavz001 8 หลายเดือนก่อน +1

    Hi Larry. Is it possible for someone to export a strategy from Quantconnect to deploy on another platform?

  • @3rdtwirl494
    @3rdtwirl494 ปีที่แล้ว

    Can you help. Will any of this like git or lean have some thing for meta trader ?

  • @DeepFrydTurd
    @DeepFrydTurd 11 หลายเดือนก่อน

    i got this error underneath the announcements
    "please log in to your lean account" do i need an account with lean?

  • @otmanalami6621
    @otmanalami6621 2 หลายเดือนก่อน

    Please can QuantConnect LEAN use FIX API of IBKR, because QuantConnect platform implement just TWS API. Thanks for all your videos.

  • @Zyvses
    @Zyvses 21 วันที่ผ่านมา

    Im trying to run backtest but says make sure docker is installed and running error. The application is up and running on my desktop and ive installed it on visual studio. Is there something else im missing in regards to allowing it to backtest?

  • @DeepFrydTurd
    @DeepFrydTurd 11 หลายเดือนก่อน

    where can i buy an existing algorithm? i asked chatpgt and i cant find the marketplace on my quantconnect account. there are free algorithms but i want to see a marketplace

  • @mesuterylmaz236
    @mesuterylmaz236 ปีที่แล้ว +1

    hi Larry,
    if the algo fires a buy order at the end of the day’s close, it will not be executed since market is closed already. ????

    • @parttimelarry
      @parttimelarry  ปีที่แล้ว +1

      I used Market On Close orders as described here: www.investopedia.com/terms/m/marketonclose.asp

  • @DeepFrydTurd
    @DeepFrydTurd 11 หลายเดือนก่อน

    do they sell only data set for the ML model?

  • @pragneshmistry6845
    @pragneshmistry6845 10 หลายเดือนก่อน

    Can be quantconnect use in google colab environment?

  • @anselumana2504
    @anselumana2504 หลายเดือนก่อน

    now 'lean init' is asking for login... isn't it open source and free to use even without a quantconnect cloud account?

  • @ajax0116
    @ajax0116 ปีที่แล้ว

    how did you download the tutorial to your IDE?

  • @TheDjarEl
    @TheDjarEl ปีที่แล้ว +2

    In C/C++ (compiled code) this backtest would take probably less than a second. It is just a loop over ~10,000 values...

    • @parttimelarry
      @parttimelarry  ปีที่แล้ว +2

      I knew someone would say this, that's why I mentioned it in the overview of the series right here: th-cam.com/video/Jb8l989IzTE/w-d-xo.html

    • @TheDjarEl
      @TheDjarEl ปีที่แล้ว +2

      @@parttimelarry thanks ! But keep on the good work ! It was a very interesting video

    • @petrzurek5713
      @petrzurek5713 ปีที่แล้ว +3

      The LEAN engine is written in C# (compiled) and bridged to Python via Pythonnet, it has some overhead before it actually starts backtesting (spinning up the VPS on-demand, delays because Larry was using a free tier) and since it is event driven and behaves the same as in Live mode, you cannot compare it with just "looping over 10,000 values" (every order sent is also an object with its lifecycle). Yeah we could do vectorized backtesting and measure in miliseconds, but that is not how things happen in real-time live trading (and in QC you just make a switch to LIVE mode without changing your bakctesting code). Anyway, my point being the engine is plenty fast but people seems to like to build their own solutions in their spare time to kill few years here and there :)

  • @LeveragedFinance
    @LeveragedFinance ปีที่แล้ว +1

    what mic do you use?

    • @parttimelarry
      @parttimelarry  ปีที่แล้ว +2

      Using an Elgato Wave 3 now, early videos used a Blue Yeti

  • @zaher6924
    @zaher6924 ปีที่แล้ว +2

    Programming master, I wish you would make a video for a binary options bot and choose some conditions for candles to trade.You are the best at explaining it. I hope to apply the video on the QUOTEX platform 👍😘😘

    • @redsoxfan9046
      @redsoxfan9046 ปีที่แล้ว +2

      US don't trade much binary options. I am more excited to see what algos Larry chooses for live trading on Quantconnect.

    • @zaher6924
      @zaher6924 ปีที่แล้ว

      @@redsoxfan9046 My friend, through Quantconnect, we can also operate binary options trading robots. I am eager to explore binary options as well. I think this is a new and interesting topic.

    • @machdragon
      @machdragon ปีที่แล้ว +3

      This seems like an awfully specific way to ask someone to do your homework😅Dive into the codebase and the documentation to learn it for yourself if you're actually trying to apply your knowledge

  • @DeepFrydTurd
    @DeepFrydTurd 11 หลายเดือนก่อน

    What about using a CNN Model to watch the Candle sticks and Data Charts and train in to only buy when its in a Bearish Market and Sell in a Bullish Market on loop basis within certain parameter prices and indicators. buying only when the asset hits a certain amount,Holds it, and sells when it when it rises, then buys only when it goes back down, Holds it unitl it reaches a certain parameter price and sells again when it rises and doing it all on a loop 24/7/365 all restricted with in certain parameters you put depending on the market

  • @todo667
    @todo667 ปีที่แล้ว +1

    No Hummingbot then? Or is that coming later?

    • @parttimelarry
      @parttimelarry  ปีที่แล้ว +2

      I did a lot of crypto last month so wanted to do something with equities before going back to hummingbot

    • @todo667
      @todo667 ปีที่แล้ว

      @@parttimelarry Cool, not complaining. Was more curious if you found something that you didn't like about it and decided not to cover it after all.

  • @caiusKeys
    @caiusKeys ปีที่แล้ว

    Just bought a 3AC hat...

  • @ThinAirElon
    @ThinAirElon ปีที่แล้ว

    why is it free on cloud ? do they want to steel your algo ?

    • @ricomajestic
      @ricomajestic ปีที่แล้ว

      Yes! Most algos are worthless though!

  • @C00ltronix
    @C00ltronix 5 หลายเดือนก่อน +1

    Note that the Nightshares ETF closed down mid 2023 with losses. So much to the buy at close strategy ;-)

    • @parttimelarry
      @parttimelarry  5 หลายเดือนก่อน

      Yes, the code and test in this video showed that it would not work in practice, so this makes sense.

  • @DeepFrydTurd
    @DeepFrydTurd 11 หลายเดือนก่อน

    all i see is data sets for sale for alot of organizations like the US SEC lol

  • @ramilali6190
    @ramilali6190 26 วันที่ผ่านมา

    Your background is tripping me out

  • @DeepFrydTurd
    @DeepFrydTurd 11 หลายเดือนก่อน +1

    run lean cloud backtest trade-spy , the buy-close-sell-open gave me back an error. by the way your awesome Larry my dude i subcribed to your hacking markets page

  • @ihsanpro9406
    @ihsanpro9406 ปีที่แล้ว

    I have a special requirement, can I use lean engine to send automated trade signals based on specific parameters such as mace rsi ? I want to receive webhook alert soon it finds a signal