Python Programming Tutorial – How to Make a Stock Screener

Home/Programming Video Tutorials/Python Video Tutorials/Python Programming Tutorial – How to Make a Stock Screener

Python Programming Tutorial – How to Make a Stock Screener

FavoriteLoadingAdd to favorites

This video teaches you how to create a stock screener based on any indicator you have built in Python. Don’t know how to build indicators in Python? No problem! I have tons of videos just for you: http://sentdex.com/sentiment-analysisbig-data-and-python-tutorials-algorithmic-trading/python-finance-indicators-stocks-forex-futures-options-indicators-built-python/

S&P 500 company list: http://sentdex.com/sentiment-analysisbig-data-and-python-tutorials-algorithmic-trading/how-to-chart-stocks-and-forex-doing-your-own-financial-charting/sp-500-company-list-array-list-programming-ease/

By | 2017-06-19T03:07:31+00:00 June 19th, 2017|Python Video Tutorials|33 Comments

33 Comments

  1. shoeb khan June 19, 2017 at 3:09 am - Reply

    Very good code thanks
    Will customize it and use for my own
    Share some more python code for market analysis in future

  2. Francis Lambert June 19, 2017 at 3:09 am - Reply

    Just when I thought I have everything, I find this site that shows me how to make a stock screener…I write Python, and so, now I am going to create what I do not have, but, that I do need. Thank you for this tutorial.. Peace 🙂

  3. Clover June 19, 2017 at 3:13 am - Reply

    have you ever tried mathematica for picking stock?Wolfram financial database is awesome.

  4. Lorenzo Moreno Muñoz June 19, 2017 at 3:21 am - Reply

    "S&P 500 company list" link is dead (404).

  5. SOUMYA DEEP CHATTERJEE June 19, 2017 at 3:24 am - Reply

    Hi , where can I get the sample codes for the tutorial? I am unable to find the link. Thanks

  6. g jr. June 19, 2017 at 3:24 am - Reply

    just kidding still that was a goodvideo

  7. g jr. June 19, 2017 at 3:24 am - Reply

    nice video im using python for robotics a little and made a game like call  of duty but less complicated didn’t publish it cause of copy right jk0

  8. Kayson Chan June 19, 2017 at 3:25 am - Reply

    Hi Sentdex. thanks for sharing. Is there any code that can screen for stock that have its RSI breakout above 50 for the first time in 1 year or so? ty

  9. Troy Van der June 19, 2017 at 3:26 am - Reply

    Can you do a video of using python to make Algos for dummies?

  10. dirte212 June 19, 2017 at 3:27 am - Reply

    Can you build a stock screener that incorporates price volatility or a price range over a period of time (say 1 month+)? I would like it to be able to identify stocks that have been moving pretty much sideways for a period of time.

  11. Terrence Mathews June 19, 2017 at 3:29 am - Reply

    Thank you.

  12. Sahib Singh June 19, 2017 at 3:32 am - Reply

    where do i get the s and p 500 list from ?

  13. Yoga Scientist June 19, 2017 at 3:36 am - Reply

    will like to see more of programming in stock market. nice video, information, thanks.

  14. chang liu June 19, 2017 at 3:37 am - Reply

    where can i find the code?

  15. Shem Am June 19, 2017 at 3:37 am - Reply

    the link for the s&p 500 list still doesn’t work (big fan btw!)

  16. Johnny Scott June 19, 2017 at 3:38 am - Reply

    Where can I obtain a copy of the code? The link in the description goes to a page with no scripts on it.

  17. Rick Johnson June 19, 2017 at 3:38 am - Reply

    This is what I’m getting when I run it on Python 2.7:

    Warning (from warnings module):
      File "C:Python27libsite-packagesmatplotlibcbook.py", line 136
        warnings.warn(message, mplDeprecation, stacklevel=1)
    MatplotlibDeprecationWarning: The finance module has been deprecated in mpl 2.0 and will be removed in mpl 2.2. Please use the module mpl_finance instead.Traceback (most recent call last):
      File "C:/Python27/Screener.py", line 9, in <module>
        from matplotlib.finance import candlestick
    ImportError: cannot import name candlestick

    I do not know how to fix it.

  18. Max Digilov June 19, 2017 at 3:38 am - Reply

    Hey man! Great teaching material! Out of curiosity, do you use any of your algos to for live trading?

  19. Jason Smith June 19, 2017 at 3:48 am - Reply

    hi, when i run the python codes, there is this error
    "from matplotlib.finance import candlestick
    ImportError:cannot import name candlestick"
    How do i solve this?
    thanks in advance!

  20. 김동환 June 19, 2017 at 3:49 am - Reply

    GGGGGGreat Man!!

  21. James Parrish June 19, 2017 at 3:50 am - Reply

    Do you know how to make trades based on certain parameters? If I am focusing on just one stock, I want to be able to have an algorithm that buys and sells instantly along say the 200 day MA. Please let me know if you can help!

  22. Stephen Verheul June 19, 2017 at 3:51 am - Reply

    For everybody having trouble parsing the Yahoo data because of the changed website. There is also a Yahoo module in Python. You can find all the information about it here: https://pypi.python.org/pypi/yahoo-finance/1.3.2. This will make life much more easy.

  23. Rob B June 19, 2017 at 3:54 am - Reply

    Great video! The link for S&P500 companies doesn’t seem to be working though 🙁

  24. Dino Mars June 19, 2017 at 3:54 am - Reply

    So how do I use this software????

  25. JFTrading June 19, 2017 at 3:54 am - Reply

    wheres the list dude?!

  26. Wenchong Hu June 19, 2017 at 3:56 am - Reply

    Happy New Year! The link does not seem to work

  27. Deo Moore June 19, 2017 at 3:56 am - Reply

    I’m having trouble getting the S&P company list. When I click on the link, it just takes me to a page that says "Unfortunately, we were unable to find that page for you (404)." Could you help me with this?

  28. Sagar Rane June 19, 2017 at 3:58 am - Reply

    +sentdex i went to the given link . copy paste the code. but not able to install the numpy module. tried to install it gives error tried to find the error in the stack overflow website not able to find the solution how should i proceed? Please help

  29. Zharfan Dhaifullah June 19, 2017 at 4:01 am - Reply

    i have problem like this :
    Traceback (most recent call last):
    File "C:Python27Stock Screener.py", line 9, in <module>
    from matplotlib.finance import candlestick
    ImportError: cannot import name candlestick
    >>>

    can you help me ?

  30. Michael Cerasoli June 19, 2017 at 4:01 am - Reply

    thank you im applying for a job with financial unix background currently using perl and java these tutorials are so helpful been programming for 25 years love the fresh perspective! 🙂 thank you again

  31. Luke Treloar June 19, 2017 at 4:02 am - Reply

    Appreciative watcher of many of your videos.  In this instance, the outcome of our stock screener is painfully linear.  Suggest going a video showing how to split the task across an MPI.   Merging our Raspberry Pi supercomputer and stock picker could be fun.  Keep them coming!  

  32. Mirko Sabljic June 19, 2017 at 4:02 am - Reply

    Really great tutorial, please do keep em coming!

    One question, would it be possible to somehow automate the process getting the list of the S&P 500 stocks and have it always updated in order to avoid getting it manually and risking it’s outdated? Perhaps scrape it from some website or something?

  33. 32saorise32 June 19, 2017 at 4:07 am - Reply

    Thank you for your awesome vids! Mad propz.

Leave A Comment

*