A share gap analysis

From aifinlab/FinClaw · View interactive version

A share gap analysis is an AI agent skill from the GitHub repository aifinlab/FinClaw. A股跳空缺口分析/缺口策略。当用户说"缺口"、"gap"、"跳空"、"缺口分析"、"缺口回补"、"跳空高开"、"跳空低开"时触发。量化分析跳空缺口特征和交易含义。支持formal和brief风格。

How to use this skill

Skill file

A股跳空缺口分析/缺口策略

数据源

SCRIPTS="$SKILLS_ROOT/cn-stock-data/scripts"
python "$SCRIPTS/cn_stock_data.py" kline --code [CODE] --freq daily --start [日期]
python "$SCRIPTS/cn_stock_data.py" quote --code [CODE]
python "$SCRIPTS/cn_stock_data.py" finance --code [CODE]

Workflow

Step 1: 获取K线数据

Step 2: 识别缺口

Step 3: 缺口分类

Step 4: 缺口回补分析

历史上同类缺口的回补概率和回补时间

Step 5: 输出

| 维度 | formal | brief |

|------|--------|-------|

| 缺口列表 | 历史缺口全表 | 近期缺口 |

| 分类 | 缺口类型判断 | 类型+含义 |

| 回补统计 | 回补概率+时间 | 是否回补 |

默认风格:brief。

关键规则

  1. A股缺口回补率较高(约70-80%最终回补)
  2. 突破缺口回补概率最低——最有交易价值
  3. 衰竭缺口是反转信号——需及时止盈/止损
  4. 连续多个缺口通常意味着极端行情
  5. 涨跌停造成的缺口需特殊处理

使用示例

示例 1: 基本使用

# 调用 skill
result = run_skill({
    "param1": "value1",
    "param2": "value2"
})

示例 2: 命令行使用

python scripts/run_skill.py --input data.json
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.