macd-trend-resonance-stock-picker

macd-trend-resonance-stock-picker is a skill for Claude Code, Codex from shouldnotappearcalm/a-share-skill. It costs 93 tokens per session (1,894 once invoked), scanned A, original, MIT.

A stock-screening and trade-planning skill for Chinese A-shares that combines moving averages for trend direction with MACD for momentum and timing. MACD is an indicator comparing moving averages to estimate changes in price momentum.

In plain words
What is it for?
Use it to build A-share watchlists, assess trend and MACD alignment, classify candidates, define entry triggers and invalidation points, and note major events or risks.
Why use it?
It turns those technical indicators into stated screening, entry, exit, and risk rules. It also requires the analysis to show missing data instead of filling gaps with guesses.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to build A-share watchlists, assess trend and MACD alignment, classify candidates, define entry triggers and invalidation points, and note major events or risks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shouldnotappearcalm/a-share-skill/macd-trend-resonance-stock-picker
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add shouldnotappearcalm/a-share-skill --skill macd-trend-resonance-stock-picker
Clone the repo
git clone --depth 1 https://github.com/shouldnotappearcalm/a-share-skill

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for macd-trend-resonance-stock-picker

README.md
[![agentmods](https://agentmods.dev/badge/skills/shouldnotappearcalm/a-share-skill/macd-trend-resonance-stock-picker/github.svg)](https://agentmods.dev/skills/shouldnotappearcalm/a-share-skill/macd-trend-resonance-stock-picker)
Your own site
<a href="https://agentmods.dev/skills/shouldnotappearcalm/a-share-skill/macd-trend-resonance-stock-picker"><img src="https://agentmods.dev/badge/skills/shouldnotappearcalm/a-share-skill/macd-trend-resonance-stock-picker/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for macd-trend-resonance-stock-picker

Your own site · 80×15
<a href="https://agentmods.dev/skills/shouldnotappearcalm/a-share-skill/macd-trend-resonance-stock-picker"><img src="https://agentmods.dev/badge/skills/shouldnotappearcalm/a-share-skill/macd-trend-resonance-stock-picker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,894 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.01894
Opus 5 $0.00046 $0.00947
Sonnet 5 $0.00019 $0.00379
Haiku 4.5 $0.00009 $0.00189

Measured 13d ago against content hash dfd82b4b8638, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

macd-trend-resonance-stock-picker scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

macd-trend-resonance-stock-picker/SKILL.md · 190 lines

How it starts

The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MACD 趋势共振选股 Skill

输出目标

把“均线看趋势,MACD看节奏”落成一套可执行的选股流程,输出:

  1. 样本池与时间戳
  2. 趋势方向判断
  3. MACD 动能状态
  4. 候选股分级
  5. 入场触发与失效条件
  6. 风险提示与不做清单

数据与工具要求

  • A股数据必须优先通过 ../a-share-skill/scripts/ 获取,禁止换未验证数据源。
  • 默认使用:
    • fetch_realtime.py 获取实时快照
    • fetch_history.py 获取日线/60分钟K线
    • fetch_technical.py 获取 MACD、均线等技术指标
    • fetch_stock_events.py 获取重大事件与异动背景
  • 任一关键字段缺失时,必须显式写“缺失/低置信”,禁止补猜。

标准工作流

Step 1:定义样本池与分析口径

先明确:

  • 用户指定标的、板块、指数成分,还是全市场
  • 分析周期,默认 日线定方向 + 60分钟找触发
  • 时间戳与样本数量

若用户没给范围:

  • 默认口径为沪深A股可交易样本
  • 若任务是“板块内筛票”,先以所属板块成分为样本池

Step 2:先用均线定方向,不逆趋势筛票

核心规则:

  • 60日线向上 + 收盘价在60日线上方 → 趋势合格
  • 60日线走平或粘合 → 仅观察,不列强候选
  • 60日线向下 + 收盘价在60日线下方 → 直接剔除

可补充观察:

  • 20日线是否在60日线上方
  • 20日线、60日线是否同时向上
  • 最近 5 至 10 个交易日是否仍维持高低点抬升

方向是硬过滤条件。方向不对,后续 MACD 再漂亮也不能进强候选池。

Step 3:再用 MACD 定节奏,只在顺势中找时机

优先级从高到低:

  1. MACD 位于 0 轴上方金叉
  2. 红柱缩短后重新放大
  3. DIF/DEA 同步向上
  4. 60分钟 MACD 与日线同向

降级或剔除条件:

  • 日线 MACD 在 0 轴下方,仅可列观察,不列主买入候选
  • 明显顶背离,降级或移出候选池
  • 金叉发生在明显下跌趋势中,只视为反弹,不当主升起点

Step 4:构建四档候选分级

A级,趋势与节奏强共振

同时满足:

  • 60日线向上
  • 股价站上60日线
  • 日线 MACD 在 0 轴上方
  • 近期出现金叉或红柱二次放大
  • 60分钟至少不拖后腿,最好同步金叉

动作:

  • 进入重点观察/可执行池
  • 等回踩不破或盘中放量突破时执行

B级,趋势对,节奏刚转强

满足趋势条件,同时:

  • 日线 MACD 接近或刚回到 0 轴上方
  • 红柱开始修复,但确认度一般
  • 60分钟先于日线转强

动作:

  • 可轻仓试错
  • 等更明确触发,如突破前高、量能放大

C级,趋势尚可,但节奏矛盾

如:

  • 均线多头,但 MACD 顶背离或死叉
  • MACD 金叉,但仍在 0 轴下方

动作:

  • 仅观察
  • 不给主动追买建议

D级,直接回避

任一命中:

  • 60日线向下
  • 股价持续运行在60日线下方
  • MACD 死叉后继续走弱
  • 板块本身显著走弱且无独立逻辑

动作:

  • AVOID

Step 5:买点设计,只做可验证触发

默认只给“条件触发式”买点,不凭主观感觉提前下手。

优先触发:

  • 突破近 5 到 10 日平台高点
  • 回踩 20 日/60 日均线后企稳再上
  • 日线趋势向上,60分钟 MACD 金叉共振
  • 放量上破昨高/阶段高

每次都必须给:

  • 触发条件
  • 止损位
  • 失效条件

常用失效定义:

  • 跌回 60 日线下方
  • 跌破触发K低点
  • DIF 再次拐头下破 DEA 且量能转弱

Step 6:卖点与减仓规则

优先减仓信号:

  • 趋势未坏,但 MACD 顶背离
  • 红柱持续缩短,动能衰减
  • 60分钟先死叉,日线跟随转弱

直接离场信号:

  • 股价有效跌破 60 日线
  • 日线 MACD 下破 0 轴,且趋势同步转差
  • 突破失败并放量回落

Step 7:板块与大盘过滤,避免孤立看个股

个股结论前,至少补看:

  • 所属板块是否处于上行或轮动增强期
  • 大盘是否支持趋势票继续演绎
  • 是否存在财报、监管、减持、停牌等事件风险

若板块与指数明显逆风:

  • 候选评级至少下调一档
  • 不给重仓建议

推荐评分框架(100分)

  • 趋势方向,40分
    • 60日线方向,20分
    • 股价相对60日线位置,10分
    • 20/60日线多头结构,10分
  • MACD节奏,35分
    • 是否在0轴上方,15分
    • 是否金叉/红柱再放大,10分
    • 60分钟是否同步,10分
  • 板块与市场环境,15分
  • 风控与事件清洁度,10分

Read the full file on GitHub · 190 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 190 lines · 93 tokens per session scan A dfd82b4b8638

Subscribe to this mod's changes

macd-trend-resonance-stock-picker is a skill published in the GitHub repository shouldnotappearcalm/a-share-skill (238 stars, last pushed 2mo ago), licensed MIT. It adds 93 tokens to every session and 1,894 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

china-dcf-model

A documented discounted-cash-flow model for valuing non-financial A-share companies. A discounted-cash-flow model estimates today’s value from expected future cash flows and makes its assumptions, valuation date, and adjustments explicit.

cyijun/china-financial-services · 76 tokens

industry-etf-research

A research workflow for studying Chinese A-share industry ETFs and the indexes they track. It compares index rules, holdings, company fundamentals, industry conditions, valuations and market evidence.

cyijun/china-financial-services · 90 tokens

pptx-author

Produce a .pptx file on disk for headless Chinese A-share market research, using python-pptx with Chinese font support. Use when no controllable Office session is available.

cyijun/china-financial-services · 41 tokens

china-market-data

A routing and quality-check process for obtaining Chinese stock-market and company-financial data from sources such as Tushare Pro and AKShare.

cyijun/china-financial-services · 106 tokens

china-market-researcher

A research workflow for analysing Chinese-listed stocks by industry or investment theme, including companies, competitors, ETFs, and market data. A-share means shares listed on mainland Chinese stock exchanges.

cyijun/china-financial-services · 64 tokens

a-share-factor-validation

A research checklist and toolkit for testing stock-selection factors and backtests in China's A-share market, the mainland Chinese stock market. It checks whether results avoid future-data leakage and account for trading rules, costs, and statistical uncertainty.

cyijun/china-financial-services · 68 tokens