Python

Automatic Email Alerts | Python For Finance Episode 5



In this video I show you how to set up automatic price alerts that send you an email automatically. Its easy to use and can be modified for any technical signal. Enjoy!

-Richard

Python Playlist:
Google security:
————————————————————————————————————————–
Try…

Similar Posts

36 thoughts on “Automatic Email Alerts | Python For Finance Episode 5
  1. hi richard. thank for sharing this. but i have a question. i am really beginner at python so. when u write at the first import yfinance import pandas. when i write your code i have an error about that. because i have no file about these ithink. what can do for this situation? can u help me? thanks a lot!

  2. I think this is a great series and surely not worth a dislike. However, your coding style/syntax promote some terrible coding practices and the readability is pretty awful. Most of these videos and programs could be contained within def methods and your coding style really tells me that you don't know much about programming. "n" is a newline symbol and I am really not sure even you knew that trying to explain it. I am not saying these are bad videos since I see your page and audience is mostly finance related. But, the way you are teaching programming promotes bad practices and a bad fundamental understanding of software and design. Either way, I hate to dig on someone showing how Comp Sci can be used in every field imaginable so I love the series to your audience.

  3. Hey Richard, thanks for the tutorial, it was really helpful.
    my smtplib and mail.message modules come up with errors. Would you happen to why that is? I have tried using pip, but the installer can't find those modules.

  4. Hi Richard- First thanks for your video. Second the part about the attachments is not clear to me are you sending a random empty attachment to the email address or are you writing data info to the excel file (i.e. the stock price) to the excel csv format file prior to sending the attachment to the email? I didn't see from your video that you anything in your code to be written to the excel but rather that you specified an excel file that you wanted to have attached to the email. Can you please advise. Thanks

  5. Hey, excellent tutorial very nice to follow along.
    How would I code for watching multiple stocks? I tried putting them underneath each other, but then I only get a message for the last one listed.

    Thanks

  6. You have sent me down the rabbit hole of delving into learning all about data frames with Python via Pandas…. Thanks. Without your vids I would have never even been aware of all which is available.

  7. Hi Richard,

    This is very helpful. Can you please help modify this code to run for a set of stocks instead of just one. Also can you modify it to send a WhatsApp/telegram instead of email. Thank you very much and keep up the good work.

  8. once again–great video and good learning stuff for the interested… i think some have asked this question below…. could you also show how to read the tickers/target prices from an excel and generate alerts based on that please.. instead of in the program…would be a great help to track the changing target prices/tickers scenario

  9. Hey Richard, i am loving your video series, especially your Python and PGO indicator. I setup tradingview chart as per your video with PGO indicator. Wondering if a stock screener based on PGO indicator can be run on selected watchlist ?. As it is time consuming to put each symbol in chart and look for Purple arrow for Entry. Some screener which can list stocks with potential Purple dot/arrow for entry?.

  10. Thank you, Richard. Good videos so far and I look forward to continuing with your material.

    I got an error for EMAIL_ADRESS and PASSWORD but I eventually figured out that it should be in apostrophes. See my examples below for those who might encounter the same error.

    EMAIL_ADDRESS = "email@gmail.com"

    EMAIL_PASSWORD = "password"

    Also, is there a reason this doesn't work with a hotmail, outlook etc. account? I suspect is has something to do with the modules, please correct me if I'm wrong.

    All the best,

    Martia Karim

  11. This is great Richard, its super inspiring!
    Is it possible to implement the strategy you are using in video two (red white blue), so I get an email whenever it tells to sell or buy a stock?
    Or will it just be easier to run the code from episode two at the end of the day, to see whether it suggest me to sell or buy?

  12. Richard, love the videos. I would interested in seeing a video where you get an excel of all of the stocks that crossed the green line for the day and how to set that up! -Adam

  13. Hello Richard, thank you for your videos, I am really enjoying them
    In the email alert video I have followed same instruction as yours but it gives me an error as shown below and did not send the email due to this

    Traceback (most recent call last):
    File "C:/Users/ht910/Desktop/py4e/PlotPivots/emailAlert.py", line 57, in <module>
    with smtplib.SMTP_SSL('smtp.gmail.com', 465) as smtp:
    File "C:SOFTWAREEng_APPSAnaconda3libsmtplib.py", line 1029, in _init_
    source_address)
    File "C:SOFTWAREEng_APPSAnaconda3libsmtplib.py", line 251, in _init_
    (code, msg) = self.connect(host, port)
    File "C:SOFTWAREEng_APPSAnaconda3libsmtplib.py", line 335, in connect
    self.sock = self._get_socket(host, port, self.timeout)
    File "C:SOFTWAREEng_APPSAnaconda3libsmtplib.py", line 1037, in _get_socket
    server_hostname=self._host)
    File "C:SOFTWAREEng_APPSAnaconda3libssl.py", line 401, in wrap_socket
    _context=self, _session=session)
    File "C:SOFTWAREEng_APPSAnaconda3libssl.py", line 808, in _init_
    self.do_handshake()
    File "C:SOFTWAREEng_APPSAnaconda3libssl.py", line 1061, in do_handshake
    self._sslobj.do_handshake()
    File "C:SOFTWAREEng_APPSAnaconda3libssl.py", line 683, in do_handshake
    self._sslobj.do_handshake()
    TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond

Leave a Reply

Your email address will not be published. Required fields are marked *