Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsGPL-3.0In 1 marketplace
Coordinates small-cap, global ETF, and low-volatility strategies by market regime, with research backtests and attribution.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
基于 PandaData 点时证据,统一调度市场状态、小市值、境内上市 ETF 和低波白马策略的可复现研究 Agent。
本项目属于 QuantSkills 社区的 agent-* 类型仓库。它负责生成数据请求、执行确定性回测、记录交易与归因并输出报告;不连接券商,不执行实盘订单,也不承诺收益。原始策略材料中的收益和回撤数字仅作为待验证的研究假设,不是验收目标。
| 模块 | 作用 |
|---|---|
| 市场状态 Agent | 根据指数趋势、波动和偏离度识别冷/暖/过热状态,并提供组合调度信号 |
| 小市值 Agent | 点时市值、营收、ROE、ROA、净利润、审计与分红约束;支持固定、利润保护和 ATR 止损 |
| ETF Agent | 在黄金、纳指、创业板、上证、恒生、科创板、国债等境内上市 ETF 中执行跌幅、动量、均线和成交量过滤 |
| 白马 Agent | 低波、质量、PB、趋势和板块排除条件组合筛选白马股票 |
| 主编排 Agent | 固定 40%/40%/20% 大类预算,在子策略内部轮动,并记录风险缩放、持仓变化和策略贡献 |
ETF 参数在当前 JoinQuant 复刻配置中冻结;小市值和白马候选可独立研究优化。所有指标、仓位、成交、成本和状态切换均由 Python 确定性计算。
data-sync 生成 PandaData MCP 请求计划和数据契约。compare 计算组合及各子策略相对沪深 300 的年化超额和累计超额。report 输出最新持仓、每次调仓变化、止损/过滤/未成交记录、市场状态和策略贡献。模型只负责组织 MCP 调用、检查证据和解释结果;它不替代回测引擎的公式。四个策略文档位于 skills/,统一受 AGENTS.md 的 QuantSkills 元数据约束。
AGENTS.md QuantSkills 2.0 Agent 声明
skills/ 四个可复用策略 Skill
src/agent_market_style_adaptive/ Python 主实现、数据同步、回测和报告
agents/ OpenAI 与便携式加载入口
config/ 默认、复刻和研究配置
references/ 数据契约与研究边界
scripts/ 数据抓取、评估、报告和发布校验
tests/ 单元、回测可重复性和数据质量测试
.github/workflows/validate.yml 社区包校验工作流
py -3.11 -m venv .venv
.venv\\Scripts\\python -m pip install -e ".[test]"
命令行入口为 market-style-agent。需要 Python 3.11 或更高版本。
PandaData 是本 Agent 的唯一数据源。仓库中的 Parquet 仅是运行时物化和审计产物,不是可替代的数据源;发布包不包含本地缓存、历史报告或用户凭据。使用者必须自行提供 PandaData MCP bridge,并通过环境变量或宿主配置暴露命令:
$env:PANDADATA_MCP_COMMAND = '<your-pandadata-mcp-bridge>'
凭据只能由宿主在运行时注入,不能写入 README、配置、日志、报告或 Git。数据字段、点时规则、分块返回和哈希要求见 references/data-contract.md。
以下配置用于 2018-01-02 至缓存最新交易日的 PandaData 复刻;正式终点必须以 manifest 中的最后交易日为准:
market-style-agent --config config/pandadata_exact_20260918_adaptive_only.yaml data-sync --execute
market-style-agent --config config/pandadata_exact_20260918_adaptive_only.yaml backtest --mode adaptive
market-style-agent --config config/pandadata_exact_20260918_adaptive_only.yaml backtest --mode independent
market-style-agent --config config/pandadata_exact_20260918_adaptive_only.yaml compare
market-style-agent --config config/pandadata_exact_20260918_adaptive_only.yaml report
若仅需检查同步结果,可使用 data-sync --validate-only。没有有效的 PandaData 同步回执时,回测命令会拒绝使用旧缓存。
每次运行在配置指定的 outputs/<run>/ 下保存:
report.html:组合、三个独立子策略、沪深 300 对比、累计收益图和最新持仓holdings_history.csv:每次调仓的新增、减少、保留和清仓证券报告采用价格指数口径比较沪深 300;若没有完整审计证据,候选会被剔除,不能用代理字段补造审计意见。
000300.SH 价格指数,不将自然日当作交易日。references/research-boundary.md。python scripts/validate_package.py
pytest -q
python -m compileall -q src skills
发布前必须通过上述检查,并确认压缩包不含 data/、outputs/、.pytest_cache/、__pycache__/、本地构建目录或任何凭据。社区字段、目录命名和许可证要求见 COMMUNITY_RULES.md。当前状态为 runnable,未经完整数据和无未来函数审计不得宣称 verified、官方认证或 QuantSkills 背书。
本项目采用 GPL-3.0-only。
market-style-adaptive@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin market-style-adaptiveBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground