Tutorial: Build a Technical Screener Webapp in 100 Lines of Code

Поделиться
HTML-код
  • Опубликовано: 2 авг 2020
  • Like the video? Support my content by signing up for Interactive Brokers using the link below:
    www.interactivebrokers.com/mk...
    In this tutorial, I show you how to build a technical screener using the Flask framework and Python's TA-Lib. We accomplish this using only 100 lines of Python and HTML.
    Buy Me a Coffee: buymeacoffee.com/parttimelarry
    Twitter: / parttimelarry
    Website: hackingthemarkets.com
    Source Code: github.com/hackingthemarkets
    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

Комментарии • 192

  • @parttimelarry
    @parttimelarry  3 года назад +17

    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
    Source Code: github.com/hackingthemarkets/candlestick-screener
    Buy Me a Coffee: buymeacoffee.com/parttimelarry
    Twitter: twitter.com/PartTimeLarry
    Website: hackingthemarkets.com
    Book: www.amazon.com/shop/parttimelarry

    • @nali2354
      @nali2354 3 года назад +1

      Hi Larry is there a way of using this meta trader 4 or 5 data?

    • @MANOJ-fz4ku
      @MANOJ-fz4ku 3 года назад

      Sir, how to add select all option in candlestick pattern in web.

  • @tkd2703
    @tkd2703 3 года назад +39

    Dude. I learned more from this vid than from my 8 weeks in the intensive Python course. Specially because it is EXACTLY, 1000%, what I wanted to learn. Thank you, from the bottom of my heart. Liked, subbed, saved and everything else. Keep up the awesome work!

    • @parttimelarry
      @parttimelarry  3 года назад +5

      Glad you enjoyed the content, have a lot more in the works :)

  • @vigisbigtm
    @vigisbigtm Год назад +4

    I have just started to learn python.....Please don't stop...You are making remarkable videos.

  • @99445deva
    @99445deva 10 месяцев назад +2

    This is such an exceptional video made on financial programming using python. I cant thank you enough for this. Thanks a TON from bottom of my heart.

  • @hamadacooking950
    @hamadacooking950 2 года назад +2

    Awesome....build a crypto scanner using python.....you are a good teacher.

  • @mailsidney
    @mailsidney Год назад +7

    Hey Larry. These videos are gold for budding python programmers. Thanks and please keep them coming.

  • @johbontha1550
    @johbontha1550 3 года назад +11

    Damn this scanner is a thing of beauty. Been watching a few from last week. INTC was engulfing pattern in your scan and it popped today. Truly not deserving of this free resource!!! Stumbled on gold here struggling with pyfi libs. You're the hero WSB needed.

  • @leandro.ferreira
    @leandro.ferreira 3 года назад +4

    one of the best tutorials I have ever seen!! Amazing. Congratulations.

  • @yingkitchow5160
    @yingkitchow5160 3 года назад +20

    this is 10/10. Thank you so much for sharing this! just found you couple days ago and im sure ill be learning a lot more from you this Christmas.

  • @pablocanovas9626
    @pablocanovas9626 Год назад +2

    This is awesome. So much information packed under one hour. 10/10. Thanks for this. Keep it up!

  • @chinaminer
    @chinaminer 2 года назад +2

    I already commented positively 2 months ago but now I implemented following your guidelines and I can now customize it as I like. Great work ! Congrats !

  • @JalilAsghar
    @JalilAsghar Год назад +2

    What can I say man!? Your vids are are just awesome, to the point, jam packed with real working code. You easily put other developers to shame! Definitely subbed.

  • @alekseyfirsin1839
    @alekseyfirsin1839 3 года назад +6

    Incredible!! You are making magic things with the python. Thank you man!

  • @IAfoke
    @IAfoke 3 года назад +7

    You Are Such A Legend! Please Keep Posting

  • @FranckePeixoto
    @FranckePeixoto 2 года назад +2

    very cool dude!
    To simplify the beginning of the video:
    patternRecognition ={}
    for cdl in dir(talib):
    if cdl.startswith('CDL'):
    description = getattr(talib,cdl).__doc__
    description = description.splitlines()[2]
    description = description[:description.find('(')].strip()
    patternRecognition[cdl] = description
    print(patternRecognition)

  • @Userforeverneverever
    @Userforeverneverever 3 года назад +5

    Thank you so much. Everything you are doing is so appreciated

  • @eugeniopolanski2390
    @eugeniopolanski2390 3 года назад +1

    so clear, so neat.. i was looking for a channel like this for ages... programming clearl, step by step, explaining the concepts, but at the same time going complex... i

  • @stansuen8072
    @stansuen8072 3 года назад +2

    Really great video! Advance but direct to the points! Thank you so much.

  • @RicardoDacostaRaghavendra
    @RicardoDacostaRaghavendra 3 года назад +3

    Simply amazing! Thank you for sharing this knowledge with us!!!

  • @teofilusevanmenosa3689
    @teofilusevanmenosa3689 2 года назад +2

    thank you for the tutorials man, this is much easier to understand

  • @nick1f
    @nick1f Год назад +2

    Your videos make learning a pleasure. Thanks for your efforts and for sharing your knowledge!

  • @himalyasahota2010
    @himalyasahota2010 2 года назад +2

    Hey Larry, great work bud, that's everything I wanted to learn!!

  • @seekingtruth9417
    @seekingtruth9417 3 года назад +19

    This is an awesome video. I learn so much from you everyday . You deserve more views and more subscribers. Please keep up the great work you have been doing.

  • @chiragmadan1693
    @chiragmadan1693 3 года назад +2

    Thanks Larry, your channel is absolutely amazing. Helped me a lot. :)

  • @tugrulhan
    @tugrulhan 3 года назад +4

    Another very helpful video. Much appreciated. It was my first experience with the Flask module, but your explanation and walkthrough were really simple and clear to follow. I learned so much from this video. Looking forward to the next one

    • @parttimelarry
      @parttimelarry  3 года назад

      Thanks, will add on to this series this weekend.

  • @ihebbibani7122
    @ihebbibani7122 2 года назад +1

    Once again , excellent content !

  • @chinaminer
    @chinaminer 3 года назад +1

    Congratulations ! Outstanding Video ! Thanks for sharing this.

  • @LongTu167
    @LongTu167 7 месяцев назад +1

    This is so amazing video. Thank you very much Larry!!!

  • @jaybhutada5174
    @jaybhutada5174 3 года назад +1

    Thanks , you have picked a very good topic to teach about.

  • @Asparuh.Emilov
    @Asparuh.Emilov 3 года назад +5

    Thank you so much for the great content!

  • @theonewhowas7709
    @theonewhowas7709 3 года назад

    i love following alon with these videos.. your videos are the only ones that actually make sense and make it to where we as beginners can actually follow along...
    id rather followe along rather than just copying code... unlike most people do..
    only as long as you dont be slamming the mouse button and the enter key ... lol

  • @ragecagegroves
    @ragecagegroves 3 года назад +2

    Thank you so much for these vids! You explain everything so well. I want to party with you :D Keep up the good work my dude!

  • @phadatarepravin5184
    @phadatarepravin5184 3 года назад +2

    @Part time Larry, Very nice and easy to understand...Looking forward to you to learn more on technical things using technology...Thank you..!! Lots of love from India🇮🇳

  • @sydneywayman4230
    @sydneywayman4230 2 года назад +2

    this was amazing. thank you for showing how to do this.

  • @oshotsealiu4321
    @oshotsealiu4321 3 года назад +1

    Thanks Larry, really enjoyed following this!

    • @parttimelarry
      @parttimelarry  3 года назад

      Thanks for watching, going to do some add-ons to this.

  • @corevil
    @corevil 2 месяца назад +1

    I really enjoyed this video.best YT channel ever seen I will start watching to you vids from scratch, cheers from italy

  • @Dynamics556
    @Dynamics556 3 года назад +2

    Wow! Honestly You deserve the credit nice course video! God bless you

  • @justtohost3431
    @justtohost3431 Год назад +1

    Incredible! That's insane!

  • @ErolAspromatis
    @ErolAspromatis 3 года назад +4

    Nice tutorial... can't wait to start using this app and seeing your next videos.

  • @carloss8473
    @carloss8473 3 года назад +3

    I see that "Technical Analysis of The Financial Markets" copy ! hahaha.
    Keep up the great content brother!

  • @nedir8314
    @nedir8314 3 года назад +1

    Excellent content bro. Keep it up.

  • @splwz
    @splwz 3 года назад +2

    Great content. You are a good teacher.

  •  2 года назад +1

    I liked this viode very much. Very clear teaching. Thanks so much

  • @tharunbharath8630
    @tharunbharath8630 Год назад +1

    Great work mate 🎊, i encourage you to do more videos.

  • @tomng7558
    @tomng7558 2 года назад +1

    very useful. Thanks Larry.

  • @rithirongk
    @rithirongk 2 года назад +1

    I love it, one of the best. Thanks a lot.

  • @oshanmodi
    @oshanmodi 6 месяцев назад +1

    amazing video. thanks a ton Larry.

  • @dtsu3732
    @dtsu3732 5 месяцев назад +1

    im a complete noob but these videos help me to create some kind of logic, Thanks bro!!!im trying to recreate the steps and it all makes more sense now

  • @1980steph
    @1980steph Год назад +2

    Hi Larry,
    thank you for the great video's. Learning so much. I used to program in pine script only. But now thanks to you, I am learning python, it is so much fun and well explained.

  • @aviva95
    @aviva95 2 года назад +1

    Hi, Thank you for your excellent teaching~

  • @DeepakKumar-cx5tr
    @DeepakKumar-cx5tr 3 года назад +1

    Its an amazing tutorial! Thank you!

  • @subinjosephsjv7992
    @subinjosephsjv7992 Год назад +2

    Great video sir , really informative ... thanks a lot

  • @luckyhithasri7860
    @luckyhithasri7860 3 года назад +1

    Great Job! very helpful.

  • @Magmatic91
    @Magmatic91 3 года назад +1

    Best tuto. Thank you so much.

  • @lukash7660
    @lukash7660 2 года назад

    for anyone who is having issues when trying to copy image address of the chart, just type in manually url from the video, it still works

  • @Aibiloye1
    @Aibiloye1 3 года назад +3

    btw... thank you for the tutorial, I really enjoyed it!

  • @rafaeltacconi2065
    @rafaeltacconi2065 3 года назад +1

    you are terrific !!!! Thank you a lot fot this lesson!!

  • @q360404838
    @q360404838 3 года назад +1

    Thank you so much! This is amazing!

  • @PavelSumik
    @PavelSumik 3 года назад +3

    unbelievable, fantastic

  • @dy6752
    @dy6752 3 года назад +1

    Fantastic tutorial. Thanks for doing this.

    • @parttimelarry
      @parttimelarry  3 года назад

      Thanks for watching, glad you enjoyed it.

  • @dervinnaidoo9810
    @dervinnaidoo9810 3 года назад +2

    This guy is a legend

  • @bhaveshvarshney222
    @bhaveshvarshney222 3 года назад +1

    this is simply brilliant

  • @jerrylin2790
    @jerrylin2790 11 месяцев назад +2

    thanks for this amazing video.

  • @saeedabdolnejad3202
    @saeedabdolnejad3202 3 года назад +2

    Your training is very awsome, I think it is not bad to combine your analysis with machine learning

  • @mrigendraverma9631
    @mrigendraverma9631 2 года назад +1

    awesome! can't thank you enough

  • @LatinDanceVideos
    @LatinDanceVideos 3 года назад +2

    Flask is my jam. Flask blueprints is powerful and a good framework to work with for larger projects.

  • @Nicegeee
    @Nicegeee 3 года назад +1

    Thank you so much 💓

  • @ClockDesignCo
    @ClockDesignCo 3 года назад +1

    great work mam. really impressive

  • @domorewithsage
    @domorewithsage Год назад +1

    Great video.

  • @SolidBuildersInc
    @SolidBuildersInc 2 года назад

    OK, When I saw how "Eloquently" you just turned a list of "Patterns" into a Dictionary and kept getting the code done with a Loop, lol , I KNOW you have been around the Block a few times.
    I just learned the coolest Hack for comprehensive coding with Loops, Thanks

  • @glepfingerman7731
    @glepfingerman7731 2 года назад +1

    Very cool tutorial

  • @Chadward_
    @Chadward_ 3 года назад +1

    Really good stuff, adapted this to crypto's from yahoo finance but working on adding support for other crypto market data!

  • @chubagarfieldmoganedi9681
    @chubagarfieldmoganedi9681 2 года назад +1

    Dope shit!

  • @rverm1000
    @rverm1000 3 года назад +3

    nice! you make learning python so easy. that is a nice app to. it would be nice if i could use that in real time on one minute candles

    • @dy6752
      @dy6752 3 года назад

      You can do this but youre going to be dealing with A LOT of data. You would need to use a database instead of csv files.

  • @vatsid
    @vatsid 3 года назад +3

    Great job!! I have found most TA and candlestick patterns work best when institutional supply demand forces are in play. That means the timeframe should be weekly or monthly. Easy to change code to weekly for instance ? Happy to DM and compare notes :)

    • @SolidBuildersInc
      @SolidBuildersInc 2 года назад +2

      Now that's interesting. We were just about to code this up with 1 minute candle sticks. Do you have some back-testing or test in general that compares the win rate of the different Timeframes. This is the first of me hearing about this "1 week" sitting as "Timeframe of choice". Thanks for sharing

  • @ktrades2898
    @ktrades2898 3 года назад +1

    very cool!

  • @prabhu_patil
    @prabhu_patil 3 года назад +3

    Wonderful larry

  • @typeer
    @typeer 3 года назад +1

    thanks for this! v much appreciated
    thought i'd comment this out in case anyone else runs into it:
    for TSX stocks up in north here, the tickers read as EXA.TO, so
    symbol = filename.split('.')[0]
    returns a key error
    my workaround was
    symbol = filename rsplit('.', 1)[0]
    i think this works as a globally applicable syntax for non-NYSE exchanges with dots in the tickers

    • @mitchaspinall6658
      @mitchaspinall6658 2 года назад

      Thanks for that, worked well for me. Did you manage to get the charts to work on the web app?

  • @sandipancoding7978
    @sandipancoding7978 Год назад +1

    Thanks you sir.. The video is really great and very accurate but sir can you also customise it a bit so it also gives alert with the web app whenever a pattern is taking place in the live market.. i.e if a specific pattern is occurring in the live market the app alerts us about it? And if it can be done can you please make a video on that as a follow up to this.. Thank you❤️

  • @bhattvd1
    @bhattvd1 3 года назад +2

    Hello Larry, I thoroughly enjoyed your video. You are so good at this.
    You should change your name to "Full Time Larry"!
    One Question: The "last" values returned by pattern recognition function are typically 0, 100 or -100. When we see 200 or -200 they are with 'confirmation'. I could not find any such pattern. Do we need to change .tail or something else in the code to accomplish this? I hope I am making my question clear to you.

  • @yaboiiprettyeyez
    @yaboiiprettyeyez 3 года назад +1

    hey Larry, what video did you make candlestick charts in?? I wanna learn how to make them from scratch =)

  • @arthurdavis762
    @arthurdavis762 3 года назад +1

    I’m so glad I found you. I’m very fascinated with automated trading and I use a MAC system like you. Would you recommend learning Swift or Python?

    • @brianobush
      @brianobush 3 года назад +2

      Swift is for iOS devices; Python is so much more useful IMO. The machine learning libraries alone make Python a winner.

    • @parttimelarry
      @parttimelarry  3 года назад +2

      Agreed, would focus on Python unless you are only focusing on native iOS/Mac apps. Python has the easiest to use libraries for finance and data analysis. Even if you are making an iPhone app, I would write the backend API's in Python.

  • @yunxingliu8177
    @yunxingliu8177 3 года назад +1

    how do you deploy it on a could like aws and let it runs forever in the background. Once it detects a desired pattern it sends out a notification.

  • @elmagico05
    @elmagico05 3 года назад +2

    hello, I recently stumbled with your channel and ive become an addict of your content. Would you consider making a video similar to this but with cryptocurrencies?
    that would be awwessome

  • @ml0k1
    @ml0k1 3 года назад +1

    Hi PTLarry, is there a way to import ASX? Cheers man. Great work.

  • @hernandiaz369
    @hernandiaz369 10 месяцев назад +2

    goat

  • @LatinoWebStudio
    @LatinoWebStudio Год назад

    Do you have videos on creating your own trading bots? Do you know if a trading bot can be used on a paper trading account?
    This question is based on the idea of what's the best way to use Python to become a better trader.

  • @mjjabarian8246
    @mjjabarian8246 2 года назад

    Can you recommend a way to write historical stock data in Postgres or any other db instead of saving as CSV?

  • @SolidBuildersInc
    @SolidBuildersInc 2 года назад +1

    Hey Larry, I was wanting to replicate this same ability using Streamlit instead of Flask. Do you think Streamlit can pull this off rather easily? I would like to see how you would approach this. Flask seems to have some built features that Streamlit does not have and it is making it a bit of a challenge. For ex. Is "import request" available for Streamlit ? Scratching my head...........Thanks for any examples to get me started....

  • @tak68tak
    @tak68tak 3 года назад +1

    pandas tails are so cute

  • @Feawar
    @Feawar 3 года назад

    Instead of patterns dropdown can we use stock list to see which stock has the exact pattern?

  • @biswajitsardar4260
    @biswajitsardar4260 3 года назад +1

    Hi Larry, I am too exited, It was quite useful the Candlestick Screener for US market, it works. But 1) for the Indian Market, NSE, BSE exchanges, is there a source of "O,H,L,C" data in the same way can be interfaced as I have not much idea on the coding. 2) If you can make a extra button for "Download Data" and necessary linking. I could create a button, but could not link to make it functional. If you have some time to look at these. Thanks.

    • @Chaitukr85
      @Chaitukr85 3 года назад

      Even I tried to check via yfinance and it didnt recognise the indian scrips.
      One way would be to download the eod data from yfinance itself as an excel sheet and then use it to load your data .
      Also there are other sites like Bhavcopy , or some sites which has historical data.
      Actually, even NSE has the historical data, but it will take some time to clean it up to the format that you need.

  • @LatinDanceVideos
    @LatinDanceVideos 3 года назад +1

    I was expecting importing to a spreadsheet, save as .csv and import .csv
    Or import tab delimited file.
    Or read line by line and strip|replace \t chars.
    Either way lots of ways to code. All are good.

  • @Helsiza
    @Helsiza 3 года назад

    This is oustanding. However, I wanted the candlestick screener to show currencies against currencies (eg; USD/EUR), and I also want it to show the current market trend and to determine candlestick patterns for about three or four candlesticks. How do I do that?

  • @rohitchadha3916
    @rohitchadha3916 2 года назад

    Quite Awesome ! Just one query, for any non S&P Stock when scan is run it says "failed on filename: NonSPCompany.csv", can you please advice what would be the issue, symbol list etc. all are updated. Thank you once again!

  • @nishadseeraj7034
    @nishadseeraj7034 Год назад +2

    Such an awesome channel Larry! I just started my first investment analyst job and your stuff is so invaluable. Question: Do you think its possible to make the same app using streamlit?

    • @jaderson-dsnaveia
      @jaderson-dsnaveia 9 месяцев назад

      Larry is behind of 93% of population.

    • @jaderson-dsnaveia
      @jaderson-dsnaveia 9 месяцев назад

      Yes It is. I already does a functional dashboard with Stream lit and live data, with and without training providing by third part.
      I'm raising a busi ness, with algo trading background. If you need something, I could help:
      jadersonBK
      Regards.

  • @eliotharreau7627
    @eliotharreau7627 Год назад

    This is an awesome project Bro. Now how to make the same app with multiple selections. Buy example Engulfing and Close Price above SMA50 ? Thnx.

  • @arvindkewat8742
    @arvindkewat8742 3 года назад +1

    Thank you for the great tutorial... One request can we draw channel using python as it is done in Finviz chart say for instance we can use Tradingview chart and draw channel lines
    One more thing can you please make a video on how to do backtesting based upon these patterns

    • @parttimelarry
      @parttimelarry  3 года назад +2

      I would probably build any drawing tools in JavaScript on the front end. For instance I use TradingView’s open source charting library in he Binance tutorial. I think they also provide drawing tools that you can integrate. In python we could programmatically draw some trendlines in the image.
      Good idea on the backtesting. There are videos on backtrader in the channel, could put these patterns in a strategy and test it. I think that would be a good tutorial.

  • @simonhong7772
    @simonhong7772 3 года назад +1

    Hi Larry, your fans here.
    I have followed and Github your resource code and playing it with no issue (except an error on app.py(line49) where the "Except" function keeps occurred an error but could ignore.
    However, if I converted to my country symbol.csv (all the format same and was successfully download and loaded) it keeps output failed on filename: my list where I have tried all the pattern scans.I really lost and dont know what to do as this is a superb tutorial.
    Many thank for your advice.
    Cheers,

  • @koz.b1741
    @koz.b1741 3 года назад

    if i want to list another exchange, not the s&p. what should i add?
    thanks in advance