a-share-strategy-allmarket-multi-swing-defensive SKILL.md skillA

a-share-strategy-allmarket-multi-swing-defensive from shouldnotappearcalm/a-share-skill is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add shouldnotappearcalm/a-share-skill/a-share-strategy-allmarket-multi-swing-defensive@git:20260928.4f3e948

Pins git:20260928.4f3e948 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
shouldnotappearcalm/a-share-skill
Path
a-share-strategy-allmarket-multi-swing-defensive/SKILL.md
Versions recorded
1
Latest version
git:20260928.4f3e948, committed Sep 28, 2026
Size
6,146 bytes
Repository stars
249
License
MIT

A 股全市场高流动性池内按趋势回踩(trend_pullback)产出买入候选与持仓卖出信号;另有 realtime_quotes 批量拉取现价快照。供下单前决策;不跑回测、不自动下单。Use when 用户要选股、看实时报价、判断买卖信号或检查持仓是否触发离场条件。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 全市场多波段防御型 · 决策信号

本 skill 核心做三件事:**选股范围**、**买入侧信号**、**卖出侧信号**;并可选使用 **`realtime_quotes.py`** 对指定代码批量拉取**现价类快照**(基于 `MarketDataProvider.get_quote`,腾讯报价 + 分钟 K 聚合)。
输出的是**决策参考**(结构化列表或 JSON),**不包含**历史回测撮合、**不包含**自动报单;真实下单请用券商或另接 `a-share-paper-trading` 等执行通道。
策略信号定位为**条件有效**:在市场结构与交易成本变化下,信号强度可能衰减,需持续复核。

## 能力边界

| 做 | 不做 |
|----|------|
| 从全市场高流动性股票(含创业板、科创板)中取前 N 只构成当日股票池 | 分钟级回测、混合回测、收益曲线 |
| 用日线 `trend_pullback` 标出入场/离场条件 | 保证收益或替代投顾 |
| 给出两类「买入参考」列表(见下) | 直接向交易所或模拟盘服务下单 |
| 可选:读取持仓列表文件,标出「策略离场」标的 | 替你保存实盘持仓(除非你自建文件) |
| 批量拉取多只股票现价、涨跌幅、涨跌停参考价等(`realtime_quotes.py`) | 替代 `a-share-data` 的全市场实时板块、资金流等重接口 |

## 策略逻辑(与参数)

默认参数见 `scripts/strategy_lab/strategy_params.py`(均线快慢、回踩幅度、RSI 区间与离场 RSI 等)。
信号计算在 `scripts/strategy_lab/strategies.py` 的 `trend_pullback`。
脚本会额外应用两层过滤:

- **成本过滤**:按 `--roundtrip-cost-bps` 估算往返成本,只有 `edge_after_cost > 0` 的候选才进入最终买入列表。
- **鲁棒性过滤**:在 `ROBUSTNESS_PARAM_GRID` 参数邻域内计算 `entry_consensus_ratio`,低于 `--entry-consensus-min` 的候选会被过滤。

**买入参考(两组,请区分语义):**

- **`from_previous_day_close`**:上一根已收盘日线满足 `entry`。与「前一日收盘后出信号、当日再执行」的习惯一致,**更贴近事前计划**。
- **`from_last_close`**:最新一根日线也满足 `entry`,偏**形态展示**;若与上一日重复,请避免重复计数。
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add shouldnotappearcalm/a-share-skill/a-share-strategy-allmarket-multi-swing-defensive@sha256:bc2f817cdada4c41

The line at the top of this page pins the label git:20260928.4f3e948, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ve2suaqyytoasocg.svg)](https://markdownregistry.com/a/art_ve2suaqyytoasocg)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Sep 28, 2026.

versioncommittedcommitsizeaudit
git:20260928.4f3e948 latest2026-09-28 4f3e948 6,146 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6146 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

shouldnotappearcalm/a-share-skill · 249 stars · license MIT · pushed 2026-10-11 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ve2suaqyytoasocg
GET https://markdownregistry.com/api/v1/resolve?ref=shouldnotappearcalm/a-share-skill/a-share-strategy-allmarket-multi-swing-defensive
GET https://markdownregistry.com/api/v1/blob/bc2f817cdada4c41de9b872af6fdc446601e8f4d1d9d689af67b32ee8c880b2d

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from shouldnotappearcalm/a-share-skill

a-share-data SKILL.md skill
shouldnotappearcalm/a-share-skill · a-share-data/SKILL.md · 查询A股行情、历史K线与复权、财务指标、公司新闻公告、概念及入选依据、行业分类与成分、解禁、回购、股东增减持、涨停炸板详情、龙虎榜席位、板块热力图、指数、宏观及A+H上市信息。用于股票数据查询、原始数据测试和数据源异常排查。
git:20261011.8874bd1 · audit A · 249 stars
a-share-paper-trading SKILL.md skill
shouldnotappearcalm/a-share-skill · a-share-paper-trading/SKILL.md · A股模拟盘交易与回测技能。Use when 用户要启动模拟仓服务、创建多账户、下限价单/市价单、撤单、查询持仓资金、验证涨跌停成交逻辑或运行A股回测。
git:20260516.34e5cb4 · audit B · 249 stars
a-share-strategy-mainboard-multi-swing-defensive SKILL.md skill
shouldnotappearcalm/a-share-skill · a-share-strategy-mainboard-multi-swing-defensive/SKILL.md · A 股主板流动性池内按趋势回踩(trend_pullback)产出买入候选与持仓卖出信号;另有 realtime_quotes 批量拉取现价快照。供下单前决策;不跑回测、不自动下单。Use when…
git:20260928.4f3e948 · audit A · 249 stars
macd-second-golden-cross SKILL.md skill
shouldnotappearcalm/a-share-skill · macd-second-golden-cross/SKILL.md · A股“MACD底背离 + 零轴下二次金叉”实战分析与交易执行技能。用于把用户的盘感描述转成可执行的三档决策(上观察名单/可试错出手/必须放弃)、盘中检查单、入场与风控规则。适用于用户提到“二次金叉”“水下二次金叉”“底背离”“第一脚第二脚”…
git:20260415.a0bd3aa · audit A · 249 stars
macd-trend-resonance-stock-picker SKILL.md skill
shouldnotappearcalm/a-share-skill · macd-trend-resonance-stock-picker/SKILL.md · 基于“均线定方向,MACD定节奏”的A股选股与交易计划技能。Use when 用户要求把均线与MACD结合做选股、筛票、盘前候选池、趋势跟随、回踩再上、金叉确认、顶背离减仓、或希望把技术判断沉淀成可执行规则与风控模板。
git:20260415.5dd22f3 · audit A · 249 stars
tuige-shortline-trading SKILL.md skill
shouldnotappearcalm/a-share-skill · tuige-shortline-trading/SKILL.md · 基于退哥短线交易规则的A股场景化决策技能。Use when 用户要按交易场景查看短线规则、做选股、判断趋势回踩、涨停回调、连板接力、洗盘结束、卖出失效或仓位纪律。
git:20260618.0a0582c · audit A · 249 stars

Every file in shouldnotappearcalm/a-share-skill

Browse by kind, by grade A, or by owner.