AI Agent Hub
Back to skills
A-Share Candlestick Pattern Matcher icon

A-Share Candlestick Pattern Matcher

Professional Updated 2026.08.30

Paste the following prompt into your AI chat to install this skill:

Please install @user_2bda22ce/stockmatcher according to https://skillhub.cn/install/skillhub.md.

About this skill

Problem

In A-share technical analysis, the hard part is comparing a recent candlestick move against similar historical segments across the whole market. Manual screening is slow and hard to quantify, especially when estimating follow-through probability.

k线形态选股器 converts the target move into a daily return sequence, searches local data for similar historical windows, and outputs statistical references.

How it works

  • Manual return input: use --returns to provide daily percentage changes for flexible full-market pattern search.
  • Stock code input: read the last --window trading days for one stock, then match against the full market or its own history.
  • K-line screenshot extraction: extract the return sequence from a daily chart image to create a pattern query quickly.

Results include similarity, average return over the next --after days, and up-move probability, with visual comparison output. The main script uses East Money local data; the older script can use tushare, subject to API rate limits.

Boundaries

Pattern matching is probabilistic, not deterministic. Higher similarity gives stronger reference value, but a 70% up-move probability still leaves downside risk. Short windows have more noise, while 30-60 day windows are better for trend-level judgments. Suspended, recently listed, or data-thin stocks may be skipped; ST stocks may still appear in full-market searches.

Use Cases

  • Review a stock's last 20 daily moves and search the full A-share market for similar historical windows with follow-through odds.
  • Paste a target daily return sequence and scan the whole market for the most similar historical segments.
  • Extract the recent move from a K-line screenshot and estimate average returns and up-move probability after similar patterns.
  • Match a candidate stock's last 30-day trend against its own history to see how prior similar setups evolved.

Best For

  • Technical traders reviewing short-term A-share patterns and estimating follow-through odds for similar historical moves.
  • Research assistants organizing K-line screenshot candidates and needing quick similar historical segments.
  • Quant researchers building local A-share backtests and turning target moves into similar historical samples.
  • Stock analysts comparing a stock's recent 20-day trend against similar full-market setups.