hectorlee-momentum-position-advisor
动量持仓顾问 V1.3.8。纯量价动量评估,判断持仓该继续持有、减仓还是卖出。8持有+6预警+4卖出+4加仓+3反弹形态(含M12V形反转+M13双底+M0横盘兜底)。新增决策滞回防震荡+减仓比例建议+资金流向维度+市场自适应+今日放量反弹覆盖+M10反弹阳线豁免+B2回踩判定修复。108分制评分。 Skill: hectorlee-momentum-position-advisor Owner: xiyanjun Summary: 动量持仓顾问 V1.3.8。纯量价动量评估,判断持仓该继续持有、减仓还是卖出。8持有+6预警+4卖出+4加仓+3反弹形态(含M12V形反转+M13双底+M0横盘兜底)。新增决策滞回防震荡+减仓比例建议+资金流向维度+市场自适应+今日放量反弹覆盖+M10反弹阳线豁免+B2回踩判定修复。108分制评分。 Tags: latest:1.4.0 Version history: v1.4.0 | 2026-09-11T14:59:53.789Z | user V1.4.0 逻辑覆盖层:四层判断框架固化(逻辑证伪/量价破坏分级/资金承接/事件日历)。趋势型SELL在基本面完好+承接日/事件窗口时降级WATCH;20日无修复+逻辑非intact升级SELL;修复B4函数崩溃。 v1.3.8 | 2026-0
Rank
62
Safety
84
Downloads
1.1k
Updated
Oct 11, 2026
Version
1.4.0
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 11, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 11, 2026
- Adoption signal
- 1.1K downloadsadoption · observed Oct 11, 2026
- Latest release
- 1.4.0release · observed Sep 11, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s173pcnkdch0b7hjk02bzf29js8bs6gp:hectorlee-momentum-position-advisor- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-xiyanjun-hectorlee-momentum-position-advisor/snapshot"
Documentation
CLAWHUB
110,304 characters of source documentation, loaded on request.
Extracted files
5 files captured from the source.
SKILL.md
--- name: hectorlee-momentum-position-advisor slug: hectorlee-momentum-position-advisor version: 1.3.8 displayName: 动量持仓顾问 description: 动量持仓顾问 V1.3.8。纯量价动量评估,判断持仓该继续持有、减仓还是卖出。8持有+6预警+4卖出+4加仓+3反弹形态(含M12V形反转+M13双底+M0横盘兜底)。新增决策滞回防震荡+减仓比例建议+资金流向维度+市场自适应+今日放量反弹覆盖+M10反弹阳线豁免+B2回踩判定修复。108分制评分。 agent_created: true --- # 动量持仓顾问 V1.4.0 ## 概述 纯量价动量评估系统 + 逻辑覆盖层,回答两个核心问题: 1. **「从量价动量角度看,这只股票现在该持有、减仓还是卖出?」**(量价引擎) 2. **「这个卖出信号该不该执行?」**(V1.4.0 逻辑覆盖层:逻辑证伪/量价破坏分级/资金承接/事件日历四层裁决) 设计哲学:**模型告诉你"哪里疼",覆盖层判断"要不要截肢"**。外生冲击(宏观事件/板块情绪)造成的趋势型破位,在基本面逻辑完好时不应机械执行卖出;反之,结构性走弱(20日无修复)的票即使有单日反弹也不可豁免。 与 [volume-price-screener](../volume-price-screener/SKILL.md) 互补: - volume-price-screener:捕捉"放量→缩量→横盘→突破"的**收敛蓄力**形态 - 本 skill:捕捉"动量持续→衰竭识别"的**趋势跟踪**信号 ### 设计理念 **默认不轻易卖**。6种持有形态覆盖拉升途中的各种调整(缩量回踩/旗形整理/阶梯横盘),只有出现明确的衰竭/破位证据时才发出减仓/卖出信号。 --- ## 8+6+4+4+3 种形态(持有/预警/卖出/加仓/反弹) ### 🟢 持有类(8种 + M0兜底) | # | 形态 | 标签 | 强度 | 描述 | |:--|:-----|:----:|:----:|:-----| | M1 | 底部启动加速 | 🚀 | ★★★★★ | 长期低量→放量阳线+突破MA20,双路径(3连阳递增/5日4阳温和反转) | | M2 | 均线多头发散 | 📈 | ★★★★☆ | MA5>MA10>MA20>MA60,量能温和放大,沿MA5上行 | | M3 | 趋势中继加速 | 🔥 | ★★★★☆ | 上升通道中,短暂回调不破MA10后再次放量阳线 | | M4 | 缩量回踩支撑 | 🎯 | ★★★☆☆ | 拉升后缩量回踩MA20/MA60,触及即反弹收阳 | | M5 | 上升旗形整理 | 🏴 | ★★★☆☆ | 拉升后斜向下收敛震荡,缩量,整理幅度<拉升1/2 | | M6 | 阶梯横盘蓄力 | 🪜 | ★★☆☆☆ | 拉升后窄幅横盘(普通股<12%,科创板688<15%),缩量,≥60%收盘在上半部 | | M12 | V形反转 | ⚡ | ★★★☆☆ | 近15日回撤>15%后3日内收复>50%,反弹放量,站上MA20(V1.3.5新增) | | M13 | 双底反转 | 🔄 | ★★★★☆ | 两低点不破前低(<3%)+放量突破颈线(V1.3.5新增) | | **M0** | **横盘整理通用** 🪜 | ★★ | **V1.3.2新增**:站上MA10+MA20+VP确认时兜底,给8/15分 | ### 🟡 预警/减仓类(5种 + 1种前置预警) | # | 信号 | 触发条件 | 含义 | |:--|:-----|:-----|:-----| | M7 | 高位搏杀 | 累计涨幅>30% + 爆量/涨停 + 换手>20% + 量能峰值后衰减 | 鱼尾行情 | | W1 | 涨幅过热 | 20日涨幅>20%,或10日涨幅>15% | 风险累积 | | W2 | 乖离过大 | 收盘价偏离MA20>15% | 均值回归压力 | | W3 | 上影频现 | 近5日中≥3日上影线>3% | 抛压增大 | | W4 | 量能背离 | 价格新高但近5日均量<前5日80% | 动能衰竭 | | **Pre-M11** | **预破位预警** ⚠️ | 距MA20<3%+量缩至85%+3日2阴+MA20斜率趋平 | **V1.2新增:提前1-3天预警** | ### 🟢 加仓类(4种)— V1.2 新增 | # | 信号 | 触发条件 | 强度 | |:--|:-----|:-----|:--:| | B1 | 反包阳线 🔄 | 前日阴线 + 当日阳线实体吞没前日实体 + 放量>1.2x | ★★★ | | B2 | 回踩确认 🎯 | 回踩MA20/MA60不破缩量 + 当日放量阳线反弹 | ★★★★ | | B3 | 整理突破 🚩 | M5/M6整理末端 + 放量突破上轨 | ★★★★★ | | B4 | 缩尽首阳 🌅 | 连续3日+缩量阴线后放量阳线(量>1.5x + 涨>2%) | ★★ | **前置条件**:动量健康度 ≥ 60(非卖出区间) + 至少命中一种加仓形态 **评级**:⭐⭐⭐ 强烈建议(8分) | ⭐⭐ 建议(5分) | ⭐ 轻仓试探(3分) **VP共振**:VP≥80 升级 | VP≥60 +2分 | VP背离 否决加仓 ### 🎲 反弹博弈类(3种)— V1.2 新增(仅卖出区间触发) | # | 信号 | 触发条件 | 强度 | 策略 | |:--|:-----|:-----|:--:|:-----| | R1 | 恐慌抛售反弹 🩸 | 回撤>20% + 量>2x + 收阳 + 锤子线 | ★★★ | 恐慌盘出清,短线反弹确定性最高 | | R2 | 缩量衰竭反弹 🌑 | 回撤>25% + 量<60%均值 + 跌速放缓 + 连阴≥4力量耗尽 | ★★ | 卖盘枯竭,买方试探 | | R3 | 超跌均值回归 🎯 | 回撤>30% + 乖离>12% + 止跌信号 + 近3日有试探资金 | ★ | 极端超卖,统计规律驱动 | **前置条件**:已触发 M10/M11 卖出信号 **警告**:反弹博弈 ≠ 趋势反转,严格止损(入场价-5%),目标 MA10 ### 🔴 卖出类(4种) | # | 信号 | 触发条件 | 数据支撑 | |:--|:-----|:-----|:-----| | M8 | 高开诱多 | 高开(开>昨收+2%)但收盘涨幅<1%,量>昨量70% | AI股D+1模式 | | M9 | 缩量连阴 | 连续2日阴线 + 每日量<前5日均量70% | 55%顶部触发 | | M10 | 峰值回撤 | 从近20日高点回撤>8%,近3日无反弹阳线 | D+2升级版 | | M11 | 趋势破位 | 收盘跌破MA20且连续2日未收回 | 82%顶部确认 | --- ## 评分体系(108分制:基础五维100 + 加仓10 + 量价共振 +
README.md
# hectorlee-momentum-position-advisor 动量持仓顾问    纯量价动量持仓评估系统,回答一个核心问题:**「从量价动量角度看,这只股票现在该持有、减仓还是卖出?」** 输出 HOLD / WATCH / REDUCE / SELL 四级决策 + 108 分制多维评分 + 减仓比例建议。设计理念是**默认不轻易卖**——持有类形态覆盖拉升途中的各种调整,只有出现明确的衰竭/破位证据才发出减仓/卖出信号,并通过决策滞回机制防震荡误杀。 三段式量化流水线的第三层: ``` ┌─────────────────────┐ ┌─────────────────────┐ ┌─────────────────────┐ │ VPS 量价初筛 │ │ DPP 每日精选 │ │ MPA 持仓管理 │ │ 全A ~5,200 → ~159 │ ──▶ │ 4层漏斗 → 1-3 只 │ ──▶ │ HOLD/WATCH/ │ │ (姊妹仓库) │ │ (姊妹仓库) │ │ REDUCE/SELL │ │ │ │ │ │ (本仓库) │ └─────────────────────┘ └─────────────────────┘ └─────────────────────┘ ``` - 上游初筛:[hectorlee-volume-price-screener](https://github.com/xiyanjun/hectorlee-volume-price-screener) - 每日精选:[hectorlee-daily-precision-picker](https://github.com/xiyanjun/hectorlee-daily-precision-picker) ## 形态体系(8 持有 + 6 预警 + 4 卖出 + 4 加仓 + 3 反弹) | 类别 | 数量 | 代表形态 | |:-----|:----:|:-----| | 🟢 持有 | 8 + M0兜底 | M1 底部启动加速、M2 均线多头发散、M4 缩量回踩支撑、M12 V形反转、M13 双底反转 | | 🟡 预警 | 5 + 1前置 | M7 高位搏杀、W1 涨幅过热、W2 乖离过大、Pre-M11 预破位预警(提前1-3天) | | 🔴 卖出 | 4 | M8 高开诱多、M9 缩量连阴、M10 峰值回撤、M11 趋势破位 | | 🟢 加仓 | 4 | B1 反包阳线、B2 回踩确认、B3 整理突破、B4 缩尽首阳(需 VP 共振确认) | | 🎲 反弹博弈 | 3 | R1 恐慌抛售反弹、R2 缩量衰竭反弹、R3 超跌均值回归(仅卖出区间触发,严格止损) | ## 评分体系(108 分制) | 维度 | 分值 | |:-----|:--:| | 趋势强度(MA 结构) | 25 | | 量能健康度 | 20 | | 衰竭信号 | 25 | | 均线支撑 | 15 | | 形态匹配 | 15 | | 加仓信号 | +10 | | 量价共振(与 VPS 形态融合) | -10~+12 | | 持仓成本 | ±8 | | 资金流向 | +8 | 决策引擎综合分数、反弹形态、MA 结构、信号覆盖、底部反弹判定、**决策滞回**(防震荡来回打脸)和市场自适应(牛市/熊市阈值动态调整)输出最终评级,附减仓比例建议。 ## 快速开始 ```bash git clone https://github.com/xiyanjun/hectorlee-momentum-position-advisor.git cd hectorlee-momentum-position-advisor pip install requests # 准备持仓文件(参考 data/positions.example.json) cp data/positions.example.json data/positions.json cd scripts # 单股诊断(五维评分明细) python advisor.py 600406 --detail # 单股带成本价 python advisor.py 688981 --cost 55.0 # 持仓组合批量诊断 python advisor.py --portfolio --file ../data/positions.json # 全市场动量扫描 Top20 python advisor.py --scan --top 20 # 搜索股票名称 python advisor.py --search 中芯国际 ``` `portfolio.py` / `sector_resonance.py` / `momentum_detect.py` 等为 `advisor.py` 调用的内部模块。本仓库同时也是 WorkBuddy / Claude Code 的 Agent Skill(见 [SKILL.md](SKILL.md)),可由 AI 助手按其中的工作流自动执行持仓诊断。 ## 免责声明 本项目仅供技术研究和学习交流,所有信号基于历史量价数据的统计规律,**不构成任何投资建议**。股市有风险,入市需谨慎。 ## License [MIT-0](LICENSE)
_meta.json
{
"ownerId": "kn71y975j1zr9hcafzd1ybgs898br0jt",
"slug": "hectorlee-momentum-position-advisor",
"version": "1.4.0",
"publishedAt": 1789138793789
}references/pattern_rules.md
# 形态规则与参数详解 ## 通用参数 | 参数 | 默认值 | 说明 | |:-----|:------:|:-----| | window | 20 | K线回溯窗口(交易日) | | ma_short | 5 | 短期均线 | | ma_mid | 10 | 中期均线 | | ma_long | 20 | 长期均线 | | ma_trend | 60 | 趋势均线 | | bj_amplitude | 8% | 创业板/科创板涨幅阈值 | | main_amplitude | 5% | 主板涨幅阈值 | | vol_ratio_min | 1.5 | 放量日最低量比(vs 20日均量) | --- ## M1 底部启动加速 🚀 **前置条件**:放量前10日累计涨跌幅 < +5%(确认底部区域) **识别规则**: 1. 近3日均为阳线,收盘逐日抬高 2. 近3日成交量逐日放大(每根 > 前一根) 3. 最新收盘价突破 MA60 4. 放量日量比 >= 1.5x **强度加分**:突破时跳空高开 +2,突破当日收光头阳 +1 --- ## M2 均线多头发散 📈 **前置条件**:MA5 > MA10 > MA20 > MA60(严格多头排列) **识别规则**: 1. 四线多头排列,间距不收缩 2. 价格沿 MA5 上行(近5日中≥4日收于MA5之上) 3. 近5日均量 > 前20日均量(量能温和放大) **强度加分**:MA5-MA10 间距扩大 +2,MA10-MA20 间距扩大 +1 --- ## M3 趋势中继加速 🔥 **前置条件**:近20日累计涨幅 > 5%(确认上升趋势) **识别规则**: 1. 近5日中出现回调低点,不破 MA10 2. 回调后出现一根放量阳线(量 > 前5日均量1.3x) 3. 阳线收盘 > 回调前最高收盘价(突破确认) **强度加分**:回调缩量明显(<放量日50%)+2 --- ## M4 缩量回踩支撑 🎯 **识别规则**: 1. 此前10日内有过拉升(单日涨幅 > 3%) 2. 回踩至 MA20 或 MA60,收阳线反弹 3. 回踩日成交量 < 前5日均量70% **强度加分**:回踩不破均线(最低价 > 均线) +2 --- ## M5 上升旗形整理 🏴 **识别规则**: 1. 此前拉升幅度 > 10%(旗杆) 2. 整理期:高点和低点均逐日下移(斜向下) 3. 整理期成交量萎缩(< 拉升期均量50%) 4. 整理幅度 < 旗杆幅度的 1/2 **强度加分**:整理期最后一日出现地量 +2 --- ## M6 阶梯横盘蓄力 🪜 **识别规则**: 1. 此前有过放量拉升(单日涨幅 > 3% + 量比 > 1.5x) 2. 放量日后振幅 < 8% 3. ≥60% 交易日收盘价在放量日区间上半部 4. 成交量逐日萎缩(< 放量日量50%) **强度加分**:横盘低点逐日抬高 +2 --- ## 预警信号(W1-W4) ### W1 涨幅过热 🌡️ **触发**: - 20日涨幅 > 20%(数据支撑:AI股顶部均值24.2%) - 或 10日涨幅 > 15% ### W2 乖离过大 📏 **触发**:收盘价偏离 MA20 > 15% ### W3 上影频现 📌 **触发**:近5日中 ≥ 3日上影线 / 最高价 > 3% ### W4 量能背离 📉 **触发**:近5日均量 < 前5日均量 × 80%,但价格处于近20日高位 --- ## 卖出信号(M8-M11) ### M8 高开诱多 🪤 **触发**: 1. 当日开盘 > 昨收 × 1.02(高开 > 2%) 2. 当日收盘涨幅 < 1%(冲高回落) 3. 当日成交量 > 昨量 × 0.7 **数据支撑**:AI股顶部 D+1 高开低走模式(中科曙光、中际旭创) ### M9 缩量连阴 🌧️ **触发**: 1. 连续 2 日阴线(收盘 < 开盘) 2. 每日成交量 < 前 5 日均量 × 0.7 **数据支撑**:55% 的 AI 股顶部出现此信号 ### M10 峰值回撤 ⛔ **触发**: 1. 从近 20 日最高收盘价回撤 > 8% 2. 回撤过程中无反弹阳线(近 3 日至少 2 日阴线) **数据支撑**:D+2 跌破峰值 -5%+ 的升级版 ### M11 趋势破位 💀 **触发**: 1. 收盘价 < MA20 2. 连续 2 日未收回 MA20 **数据支撑**:82% 的 AI 股顶部最终由此确认 --- ## 信号优先级 1. M11(趋势破位)> M10(峰值回撤)> M9(缩量连阴)> M8(高开诱多) 2. 卖出信号覆盖所有持有和预警信号 3. 预警信号可与持有信号共存(输出时并列显示) 4. 无任何形态命中 → 🟡 减仓(趋势不明)
skill-card.md
## Description: Analyzes A-share price-volume momentum and portfolio positions to produce HOLD, WATCH, REDUCE, or SELL guidance with multi-factor scoring and a logic overlay for sell-signal review. This skill is for research and development only. ## Publisher: [xiyanjun](https://clawhub.ai/user/xiyanjun) ### License/Terms of Use: MIT-0 ## Use Case: External users and developers use this skill to diagnose stock positions, scan momentum setups, and review whether technical sell signals should be acted on. Outputs are advisory analysis for human review and are not a substitute for investment judgment. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: The skill imports executable code from a local volume-price-screener skill. Mitigation: Install and use it only when both this skill and the local volume-price-screener dependency are trusted and reviewed. Risk: Portfolio workflows can overwrite local portfolio-related JSON files. Mitigation: Use explicit .json portfolio filenames and keep backups before running portfolio update workflows. Risk: HOLD, WATCH, REDUCE, and SELL outputs may be mistaken for executable trading instructions. Mitigation: Treat all outputs as advisory analysis and review them before taking any investment action. Risk: Chinese-only output and fundamentals/events overlays may affect how recommendations are interpreted. Mitigation: Review the output language and overlay configuration so the basis for each recommendation is clear. ## Reference(s): - [Pattern Rules](references/pattern_rules.md) - [ClawHub Skill Page](https://clawhub.ai/xiyanjun/skills/hectorlee-momentum-position-advisor) ## Skill Output: **Output Type(s):** [Text, Markdown, Shell commands, Guidance] **Output Format:** [Terminal text and Markdown with HOLD, WATCH, REDUCE, and SELL signals, scores, summaries, and optional command examples] **Output Parameters:** [1D] **Other Properties Related to Output:** [May read or update local JSON portfolio files when portfolio workflows are used.] ## Skill Version(s): 1.4.0 (source: server release evidence) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/xiyanjun/skills/hectorlee-momentum-position-advisor",
"sourceUrl": "https://clawhub.ai/xiyanjun/skills/hectorlee-momentum-position-advisor",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T12:05:45.142Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-xiyanjun-hectorlee-momentum-position-advisor/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-xiyanjun-hectorlee-momentum-position-advisor/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-11T12:05:45.142Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.1K downloads",
"href": "https://clawhub.ai/xiyanjun/hectorlee-momentum-position-advisor",
"sourceUrl": "https://clawhub.ai/xiyanjun/hectorlee-momentum-position-advisor",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-11T12:05:45.142Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "1.4.0",
"href": "https://clawhub.ai/xiyanjun/hectorlee-momentum-position-advisor",
"sourceUrl": "https://clawhub.ai/xiyanjun/hectorlee-momentum-position-advisor",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-11T14:59:53.789Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-xiyanjun-hectorlee-momentum-position-advisor/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-xiyanjun-hectorlee-momentum-position-advisor/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 1.4.0",
"description": "V1.4.0 逻辑覆盖层:四层判断框架固化(逻辑证伪/量价破坏分级/资金承接/事件日历)。趋势型SELL在基本面完好+承接日/事件窗口时降级WATCH;20日无修复+逻辑非intact升级SELL;修复B4函数崩溃。",
"href": "https://clawhub.ai/xiyanjun/hectorlee-momentum-position-advisor",
"sourceUrl": "https://clawhub.ai/xiyanjun/hectorlee-momentum-position-advisor",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-09-11T14:59:53.789Z",
"isPublic": true
}
]
}Record generated Oct 11, 2026.
