Qmt Bridge Return Analysis logo

Qmt Bridge Return Analysis

Community
atorber
qmt-bridge-return-analysis

通过 QMT Bridge 分析 1/2/3/4/5/10/30 日累计涨幅、形态/量价涨跌概率, 并输出下一交易日操作策略与观察点。支持 --holdings 自动读持仓、缺 K 线则下载。 在用户提到持仓阶段强弱、N日涨幅、涨跌概率、量价、明日怎么观察时使用。只读。

Overview

Publisheratorber
Repositoryqmt-trading-skill
Skill nameqmt-bridge-return-analysis
Stars
27
Forks
7
Bundled files
1
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by atorber on GitHub. Read the source before you install it.

Installation

Install the Qmt Bridge Return Analysis AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/atorber/qmt-trading-skill/tree/main/skills/qmt-bridge-return-analysis
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/atorber/qmt-trading-skill.git /tmp/qmt-trading-skill
mkdir -p .claude/skills
cp -r /tmp/qmt-trading-skill/skills/qmt-bridge-return-analysis .claude/skills/qmt-bridge-return-analysis
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Qmt Bridge Return Analysis in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Qmt Bridge Return Analysis on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Qmt Bridge Return Analysis is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

QMT Trading Skill · 累计涨幅与涨跌概率

实现状态:✅ return_probability_analysis.py 可用

目标

回答:

  1. 指定股票在 1、2、3、4、5、10、30 个交易日上的收盘累计涨幅(%)
  2. 基于 近 10 个交易日日 K 涨跌形态 + 更长历史回测,给出 下一交易日收涨的条件概率;样本不足时自动 缩短形态 / 放宽 1 位 / 小样本收缩估计
  3. 结合 连续多日成交量(相对 5 日均量、3 日量增、量价状态)评估涨跌概率(统计描述,非投资建议)

脚本

脚本作用
scripts/return_probability_analysis.py--codes 或 --holdings;缺 K 自动下载
bash
# 当前持仓一键分析(需 API Key)
python skills/qmt-bridge-return-analysis/scripts/return_probability_analysis.py --holdings --host 127.0.0.1 --port 8080 --api-key YOUR_KEY

python skills/qmt-bridge-return-analysis/scripts/return_probability_analysis.py --codes 000001.SZ,600519.SH --host 127.0.0.1 --port 8080
python skills/qmt-bridge-return-analysis/scripts/return_probability_analysis.py \
  --codes 300394.SZ,688008.SH --json
参数说明
--codes逗号分隔股票代码(与 --holdings 二选一)
--holdings从账户持仓读取标的;缺日 K 时自动 download_batch
--download-start自动补 K 起始日(默认 20240101)
--skip-download不自动下载日 K
--count拉取日 K 根数(默认 150)
--dividend-type复权:front / none / back 等
--pattern-len形态匹配长度(默认 9 日)
--jsonJSON 输出
--no-detail不展示近 10 日逐日表
--no-strategy不输出下一交易日策略与观察点

提示词示例(可复制)

优先引导 Agent 执行 skills/qmt-bridge-return-analysis/scripts/return_probability_analysis.py(--holdings 或 --codes)。

场景提示词
持仓一键(推荐)评估当前持仓的 1/5/10/30 日累计涨幅、量价涨跌概率,并总结明日操作策略与观察点
用 return-analysis skill 跑 --holdings,缺 K 线自动下载
指定标的分析 300394.SZ、688008.SH 的阶段涨幅和近 10 日上涨概率
这几只股票 1 日、5 日、30 日涨幅各多少,谁更强
量价结合成交量看持仓明日收涨概率和放量确认度
哪些持仓近 3 日量价形态偏强,历史次日统计如何
形态用 9 日 K 线形态统计下一日收涨概率,样本不够就缩短形态
明日计划根据持仓报告,给每只写明日观察点和一日策略(不荐股)
组合层面:谁 30 日强、谁昨日回调大,明天优先盯什么
机器可读持仓涨幅概率分析,输出 JSON(加 --json)

Agent 执行要点:--holdings 需 --host 127.0.0.1 与 API Key;.env 里 QMT_BRIDGE_HOST=0.0.0.0 时客户端仍连 127.0.0.1。

主要 API

方法路径说明
GET/api/market/market_data_ex日 K(period=1d)
GET/api/utility/batch_stock_name中文名称

计算说明

  • N 日累计涨幅:close[-1] / close[-1-N] - 1(交易日收盘)
  • 近 10 日收涨占比:最近 10 个日收益率中收涨天数比例
  • 形态条件概率:取最近 pattern_len 日的涨跌方向序列匹配历史;样本不足时依次 缩短至 3 日 → 允许 1 位不匹配 → 向历史基准收缩(输出会标注 缩短形态/放宽1位/小样本收缩)
  • 量价状态概率:近 3 日「涨/跌 + 放量/缩量/平量」组合在历史中的下一日收涨比例
  • 收涨放量→次日:历史「收涨且量比≥1.15(相对5日均量)」后次日收涨比例
  • 连增3日量→次日:连续 3 日成交量递增后次日收涨比例
  • 近10收涨放量占比:近 10 日收涨日中,成交量高于 5 日均量的天数占比(量能确认度)

规程

  1. 确认 Bridge 可用;--holdings 需配置 QMT_BRIDGE_API_KEY
  2. 持仓模式:读 query_positions → market_data_ex;不足则 download_batch 后重试
  3. 输出汇总表 + 分标的累计涨幅表 + 概率指标 + 下一交易日策略与观察点(--no-strategy 可关闭)
  4. 只读,不下单;概率为历史统计,不构成预测或投资建议

安全

  • --codes 只读,默认无需 API Key;--holdings 需 API Key(读持仓)

参考

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Qmt Bridge Return Analysis AI skill do?

通过 QMT Bridge 分析 1/2/3/4/5/10/30 日累计涨幅、形态/量价涨跌概率, 并输出下一交易日操作策略与观察点。支持 --holdings 自动读持仓、缺 K 线则下载。 在用户提到持仓阶段强弱、N日涨幅、涨跌概率、量价、明日怎么观察时使用。只读。

Why use Qmt Bridge Return Analysis on TypingMind?

Because you install it once and use it with any model. Qmt Bridge Return Analysis is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Qmt Bridge Return Analysis in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/atorber/qmt-trading-skill/tree/main/skills/qmt-bridge-return-analysis. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Qmt Bridge Return Analysis?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Qmt Bridge Return Analysis?

As many as you like. As long as a model supports skills, you can use Qmt Bridge Return Analysis with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Qmt Bridge Return Analysis AI skill free?

Yes. It is published on GitHub by atorber under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇