Giter VIP home page Giter VIP logo

stock-vcpscreener's Introduction

Stock-vcpscreener

Stock-vcpscreener is a simple stock screener that calculates various market breadth indicators and selects US stocks on a daily basis based on multiple criteria. The criteria are applied to the simple moving averages and price performance of the stocks over the last year. The goal is to look for a volatility contraction pattern in the market, a specific chart pattern that suggests the stock may move into an uptrend in the near future.

This project started off as a code refactoring practice based on a command-line stock screener I saw on an online forum (ref: carlam.net), which in turn seems to be inspired from this medium article after a bit of googling. This project now forms the backbone of a Dash app, which visualizes the selected stocks and compiles a daily US stock market analysis report.

Usage

Everything is done through the StockVCPScreener class. To initate:

svs = StockVCPScreener(selected_date[datetime.date], stock_list[list])

To download the stock data to the directory (currently supports yahoo finance or stooq):

svs.check_stock_database('yfinance', create=True)

To check the output directory and update the directories containing the stock data

svs.check_directory()
svs.check_index_database()
svs.check_stock_database('yfinance')

To run the stock selection:

svs.select_stock()

To generate a report and the csv files necessary for the Dash app:

svs.generate_report()
svs.generate_dash_csv()

Visualization

The Dash app can be accessed at the link below:

https://jeffreyrdcs.pythonanywhere.com

To-do

  • Complete the test cases
  • Add a method to validate and fix the database directories

stock-vcpscreener's People

Contributors

jeffreyrdcs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.