kinmeng / MACD_flask_project

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 accurate around 60% of the time, better than the stock screeners which does not match the appropriate signals to the right MACD crossovers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MACD_flask_project

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:

  1. Download the files in .zip
  2. Pip3 install all modules listed in requirements.txt (pip3 install -r requirements.txt)
  3. Setup database with the credentials as stated in the connection string
  4. 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
  5. 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).

About

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 accurate around 60% of the time, better than the stock screeners which does not match the appropriate signals to the right MACD crossovers


Languages

Language:Python 92.5%Language:C 5.6%Language:Roff 0.4%Language:XSLT 0.4%Language:Cython 0.3%Language:Makefile 0.3%Language:Shell 0.3%Language:JavaScript 0.0%Language:HTML 0.0%Language:Mako 0.0%Language:CSS 0.0%Language:Fortran 0.0%Language:Jupyter Notebook 0.0%Language:Java 0.0%Language:Smarty 0.0%Language:M4 0.0%