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
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
Hi Larry is there a way of using this meta trader 4 or 5 data?
Sir, how to add select all option in candlestick pattern in web.
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!
Glad you enjoyed the content, have a lot more in the works :)
I have just started to learn python.....Please don't stop...You are making remarkable videos.
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.
Awesome....build a crypto scanner using python.....you are a good teacher.
Hey Larry. These videos are gold for budding python programmers. Thanks and please keep them coming.
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.
one of the best tutorials I have ever seen!! Amazing. Congratulations.
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.
This is awesome. So much information packed under one hour. 10/10. Thanks for this. Keep it up!
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 !
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.
Incredible!! You are making magic things with the python. Thank you man!
You Are Such A Legend! Please Keep Posting
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)
Thank you so much. Everything you are doing is so appreciated
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
Really great video! Advance but direct to the points! Thank you so much.
Simply amazing! Thank you for sharing this knowledge with us!!!
thank you for the tutorials man, this is much easier to understand
Your videos make learning a pleasure. Thanks for your efforts and for sharing your knowledge!
Hey Larry, great work bud, that's everything I wanted to learn!!
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.
Thanks Larry, your channel is absolutely amazing. Helped me a lot. :)
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
Thanks, will add on to this series this weekend.
Once again , excellent content !
Congratulations ! Outstanding Video ! Thanks for sharing this.
This is so amazing video. Thank you very much Larry!!!
Thanks , you have picked a very good topic to teach about.
Thank you so much for the great content!
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
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!
@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🇮🇳
this was amazing. thank you for showing how to do this.
Thanks Larry, really enjoyed following this!
Thanks for watching, going to do some add-ons to this.
I really enjoyed this video.best YT channel ever seen I will start watching to you vids from scratch, cheers from italy
Wow! Honestly You deserve the credit nice course video! God bless you
Incredible! That's insane!
Nice tutorial... can't wait to start using this app and seeing your next videos.
Thanks!
I see that "Technical Analysis of The Financial Markets" copy ! hahaha.
Keep up the great content brother!
Excellent content bro. Keep it up.
Great content. You are a good teacher.
I liked this viode very much. Very clear teaching. Thanks so much
Great work mate 🎊, i encourage you to do more videos.
very useful. Thanks Larry.
I love it, one of the best. Thanks a lot.
amazing video. thanks a ton Larry.
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
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.
Hi, Thank you for your excellent teaching~
Its an amazing tutorial! Thank you!
Great video sir , really informative ... thanks a lot
Great Job! very helpful.
Best tuto. Thank you so much.
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
btw... thank you for the tutorial, I really enjoyed it!
you are terrific !!!! Thank you a lot fot this lesson!!
Thank you so much! This is amazing!
unbelievable, fantastic
Fantastic tutorial. Thanks for doing this.
Thanks for watching, glad you enjoyed it.
This guy is a legend
this is simply brilliant
thanks for this amazing video.
Your training is very awsome, I think it is not bad to combine your analysis with machine learning
awesome! can't thank you enough
Flask is my jam. Flask blueprints is powerful and a good framework to work with for larger projects.
Thank you so much 💓
great work mam. really impressive
Great video.
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
Very cool tutorial
Really good stuff, adapted this to crypto's from yahoo finance but working on adding support for other crypto market data!
Dope shit!
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
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.
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 :)
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
very cool!
Wonderful larry
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
Thanks for that, worked well for me. Did you manage to get the charts to work on the web app?
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❤️
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.
hey Larry, what video did you make candlestick charts in?? I wanna learn how to make them from scratch =)
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?
Swift is for iOS devices; Python is so much more useful IMO. The machine learning libraries alone make Python a winner.
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.
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.
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
Hi PTLarry, is there a way to import ASX? Cheers man. Great work.
goat
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.
Can you recommend a way to write historical stock data in Postgres or any other db instead of saving as CSV?
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....
pandas tails are so cute
Instead of patterns dropdown can we use stock list to see which stock has the exact pattern?
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.
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.
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.
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?
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!
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?
Larry is behind of 93% of population.
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.
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.
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
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.
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,
if i want to list another exchange, not the s&p. what should i add?
thanks in advance