explaingit

myhhub/stock

12,566PythonAudience · dataComplexity · 4/5Setup · moderate

TLDR

InStock is a Python system for analysing Chinese A-share stocks and ETFs that computes 30+ technical indicators, detects 61 candlestick patterns, and displays buy/sell signals in a web dashboard.

Mindmap

mindmap
  root((repo))
    What It Does
      Chinese A-share analysis
      Daily market data pull
      Buy and sell signals
    Analysis Features
      30 plus indicators
      61 candlestick patterns
      Chip distribution
    Strategies
      Backtest support
      Volume surge breakout
      Annual line pullback
    Tech
      Python backend
      MySQL storage
      Web dashboard
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Run daily analysis on Chinese A-share stocks to get automated buy and sell signals from 30+ technical indicators.

USE CASE 2

Backtest built-in stock-selection strategies like volume surge breakout or platform consolidation against historical data.

USE CASE 3

Browse and filter stock analysis results on a mobile-friendly web dashboard.

USE CASE 4

Set up automated trading based on the system's generated signals, with an awareness of financial risk.

Tech stack

PythonMySQLDocker

Getting it running

Difficulty · moderate Time to first run · 1h+

Requires a running MySQL database, processing a full day of data takes about 4 minutes on a standard laptop.

In plain English

This is a stock market analysis system called InStock, focused on Chinese A-share stocks and ETFs. It is written in Python and designed to run on Windows, Linux, or macOS. A Docker image is also provided for easier setup. The system pulls daily market data, then runs a series of calculations and pattern-detection steps on that data. It computes over 30 technical indicators, including common ones like MACD, RSI, KDJ, Bollinger Bands, and many others. These indicators are used to flag stocks that may be overbought or oversold, and to produce buy or sell signals based on specific numerical thresholds defined in the README. Beyond indicators, the system can recognize 61 candlestick chart patterns. Candlestick patterns are shapes formed by price movements over one or more trading sessions, and traders use them to guess future price direction. Users can also choose which patterns to watch for. A chip distribution feature shows how purchase costs are spread across investors over a given period, which is a technique used in Chinese technical analysis to understand where most buyers are sitting. The system includes several built-in stock-selection strategies with names like "volume surge breakout," "platform consolidation," and "annual line pullback." You can backtest these strategies against historical data to see how they would have performed. There is also support for automated trading, though the README notes that this involves real money and carries risk. All results are stored in a MySQL database, and the system serves a web interface so you can browse and filter the output visually on a PC, tablet, or phone. Processing one full day of data across all steps takes about four minutes on a regular laptop. Logs are written to separate files for data jobs, the web server, and the trading service, making it easier to track what happened.

Copy-paste prompts

Prompt 1
Set up InStock from myhhub/stock to pull daily Chinese A-share data and compute MACD and RSI signals for a watchlist of 10 stocks.
Prompt 2
How do I backtest the platform consolidation strategy in InStock against the last 6 months of historical data?
Prompt 3
Explain how the chip distribution feature in InStock works and how to read the output chart for a given stock.
Prompt 4
What MySQL schema does InStock use and how do I write a query to fetch all stocks with a current buy signal?
Open on GitHub → Explain another repo

← myhhub on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.