Coder Social home page Coder Social logo

qingxuantang / chinese_stock_picker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 150 KB

A streamlit app integrating web parser, debt ratio calculator and kelly criterion optimization for stock picking.

License: Apache License 2.0

Python 78.58% Jupyter Notebook 21.42%

chinese_stock_picker's Introduction

Chinese Stock Picker

This streamlit-based app is a dynamic and comprehensive tool designed to assist finance professionals in identifying promising Chinese stocks for short-term or long-term trading. Utilizing technologies like Streamlit and data from EastMoney, it provides an intuitive interface and data-driven insights.

屏幕截图 2023-12-11 123139

Features

User-Friendly Interface: Search and explore stocks with ease.

Data-Driven Insights: Analyze stocks using the Kelly Criterion, solvency ratios, and more.

Configurable: Tailor the application to your needs using the config.json file.

Data Scraping: Automated data retrieval from sources like EastMoney.

Open Source: Easily extendable and customizable to fit your specific requirements.

Quant Functionality

Markets

Support Chinese(A股) stock picking based on real-time collection of research reports on eastmoney.com.

Support stocks listed in the US and other markets which are visible on Yahoo! Finance research report page(UNDER CONSTRUCTION!).

Ratio Calculator

The goal of a ratio calculator is to calculate the short-term solvency ratio (or debt ratio), and then use it as a stock-picking filter. That is to say, the better the short-term debt payment capacity a company has, the more probable it may continue or start an upper trend in the short term. The bigger the value, the better.

Kelly Criterion

Money management strategy based on Kelly J. L.'s formula described in "A New Interpretation of Information Rate". The formula was adopted to gambling and stock market by Ed Thorp, et al., see: "The Kelly Criterion in Blackjack Sports Betting, and the Stock Market".

This program calculates the optimal capital allocation for the provided portfolio of securities with the formula:

`f_i = m_i / s_i^2`

where

f_i is the calculated leverage of the i-th security from the portfolio m_i is the mean of the return of the i-th security from the portfolio s_i is the standard deviation of the return of the i-th security from the portfolio

Quick Start

Clone the repository.

Configure the application using config.json.

Run streamlit run main.py to launch the Streamlit app.

Explore and analyze Chinese stocks like never before!

Contribution

Feel free to contribute, report issues, or request features. Let's build a smarter way to pick stocks together!

chinese_stock_picker's People

Contributors

qingxuantang avatar

Stargazers

Lucas avatar

Watchers

 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.