A-Share Mainboard Multi-Swing Defensive Signals
Generates buy candidates and exit signals for China A-share mainboard stocks using a daily trend-pullback strategy, plus batch real-time price snapshots.
Data & AnalyticsIntermediate★ 242⑂ 46AI score 9/10Last updated: Sep 28, 2026
What it does
- Builds a daily universe from the top N most liquid mainboard stocks (default 120).
- Runs the
trend_pullbackstrategy on daily bars to produce two buy lists:from_previous_day_close(signal from the last completed session — closest to a real trading plan) andfrom_last_close(latest bar, for pattern viewing). - Applies two extra filters: round-trip cost (
edge_after_cost > 0) and parameter-neighborhood consensus (entry_consensus_ratio). - Reads a holdings file (
--holdings) and flags positions that meet exit rules (slow-MA break, overheated RSI, etc.). realtime_quotes.pyfetches concurrent price snapshots (last price, change %, limit-up/down reference) with optional last intraday bar.
Who it's for
- Retail traders active in China A-shares who want a short, filtered morning watchlist.
- Quant beginners wiring a Python signal pipeline into a Claude Code agent.
- Users who keep the signal layer separate from execution (e.g. pairing with
a-share-paper-trading).
Examples
- "Give me today's buy candidates" →
python3 scripts/daily_decisions.py --top-n 120 --json, then review the up-to-5 filtered names. - "Should I exit anything in my portfolio?" → run with
--holdings ~/my_holdings.txtto list positions triggering exit conditions. - "Quote 600519 and 000001" →
python3 scripts/realtime_quotes.py 600519 000001 --json --intraday.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/shouldnotappearcalm/a-share-skill/HEAD/a-share-strategy-mainboard-multi-swing-defensive/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the a-share-strategy-mainboard-multi-swing-defensive folder from the GitHub repo shouldnotappearcalm/a-share-skill into my ~/.claude/skills/a-share-strategy-mainboard-multi-swing-defensive/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/shouldnotappearcalm/a-share-skill.git && mkdir -p ~/.claude/skills && cp -r a-share-skill/a-share-strategy-mainboard-multi-swing-defensive ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and move to the folder where you keep projects.
- Clone the repo:
git clone https://github.com/shouldnotappearcalm/a-share-skill.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy this skill only:
cp -r a-share-skill/a-share-strategy-mainboard-multi-swing-defensive ~/.claude/skills/ - Install Python dependencies:
pip install akshare pandas numpy requests - Restart Claude Code and ask something like "pick A-share buy candidates for today" to confirm the skill triggers.
- For sell signals, create
~/my_holdings.txtwith one ticker per line (comments start with#) and pass it via--holdings.
View source on GitHub ↗License: MIT