Skip to content

schaenzer/sp500notifyer

Repository files navigation

S&P 500 Notifyer

Simple script which generates a report with buy and sell signals for the 200D SMA strategy on the 2x leveraged S&P 500. Stock market data is retrieved from Yahoo Finance. The report is sent via Pushover. The script itself does not do any scheduling and must be executed via something like CRON.

screenshot of report

Usage

The simplest option is to run the script via docker.

Create a config.ini file with credentials (token, user) for pushover:

[reporting]
history_period = 1y
sma_windows = 100, 200
datapoints_for_graph = 45

[main_symbol]
name = S&P 500
symbol = ^GSPC

[aux_symbol:ndx]
name = NASDAQ 100
symbol = ^NDX

[aux_symbol:gdaxi]
name = DAX
symbol = ^GDAXI

[pushover]
token = ***
user = ***

Then execute the script in docker:

docker run --rm -v "$(pwd)"/config.ini:/config.ini:ro ghcr.io/schaenzer/sp500notifyer:main --config /config.ini

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors