Skip to content

RSI and histogram alerting based on stock ticker symbol

Notifications You must be signed in to change notification settings

RoundQube/ticker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ticker

RSI and histogram alerting based on stock ticker symbol

What is ticker?
A python script that loops through ticker symbols and generates RSI (14 day average) and histogram (MACD-based metrics) and emails a summary of thresholds met to an email address.

Caveat
EMA is extrapolated using averages initially, as is the MACD, signal and histogram. As more data is collected, it will get finer tuned and more accurate (over the 12-26 day period for any new ticker). Although, I haven't seen it off by enough to dismiss it's usefulness.

How do I use ticker?
These are basic instructions, ping me on Reddit (/u/roundqube) if you need further instructions specific to your situation...

Pre-requisite:

  1. Ability to run Python on your system
  2. Ability to schedule jobs (cron, etc...)
  3. Python yahoo-finance library

Configuration:

  1. Download all files (csvs, db and py) to your local directory
  2. Update the first line to point to your Python path i.e. on my system it is: #!/opt/local/bin/python
  3. Update the user, pwd and recipient variables within the generateNotification function. This should be your Gmail details so the email can be proxied through the Google servers to your inbox.
  4. Add all of the tickers you wish to track to the tickers.csv file (ONE TICKER PER LINE)
  5. Add tickers you wish to alert on to the alert_tickers.csv file (ONE TICKER PER LINE). The threshold for RSI is below 30 or above 70. The threshold for histogram is when it goes from positive to negative or negative to positive i.e. the MACD and signal lines converge.
  6. Schedule the script to run daily (sometime before midnight). The script can be run daily even through weekends and holidays because it uses some logic to determine that data is redudant and will skip the dataset based on date changes.

About

RSI and histogram alerting based on stock ticker symbol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages