This project provides trading information to users based on the MACD indicator. The algorithm built provides value by matching the likely signals 'overbought' and 'oversold' to the appropriate MACD crossovers. A quick observation suggests that the results provided are actionable a few days of the week, better than the stock screeners which automated the tasks of having to filter through stock screeners one-by-one. The disadvantage of the application is that it is dependent on absolute values, so there may be false positive results.
What does the algorithm do? The algorithm aims to identify MACD and MACD signal line crossovers. The signals are then paired with Williams%r signals to confirm a trend reversal. The algorithm is applied to stock symbols with yfinance API (The stock tickers are obtained from the excel files stored in the folder /stock_symbols)
How to download and run the files locally:
- Download the files in .zip
- Pip3 install all modules listed in requirements.txt (pip3 install -r requirements.txt)
- Setup database with the credentials as stated in the connection string
- Setup models in the database by running the following commands -python3 manage.py db init -python3 manage.py db migrate -python3 manage.py db upgrade
- Before starting to run, a kind reminder that this flask app is run on port 8080. If you wish to make changes, please do so in the manage.py app (by editing the Server function).