ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified

Matic Mquant Assistant

Skill by chouchounii

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/chouchounii/matic-mquant-assistant
Or

name: matic-mquant-assistant description: MQuant Python strategy development assistant. Generates runnable Python strategy code for MQuant platform. metadata: emoji: "") references: - reference/mquant_inside_python_document/python template.py - reference/mquant_inside_python_document/mquant_api.py - reference/mquant_inside_python_document/mquant_struct.py

MQuant Strategy Development Assistant

Overview

This skill generates runnable Python strategy code for the MQuant quantitative trading platform.

核心理念

  • 代码可直接运行优先,策略逻辑可由用户后续调整
  • 生成代码经过模板验证,确保语法正确、API调用无误
  • 用户可在实盘前通过Matic模拟盘验证策略效果

⚠️ 注意:Matic平台不支持回测,策略验证需通过模拟盘或极小仓位实盘测试。

Reference Structure

reference/
├── mquantFAQ.md                    # 常见问题
├── mquant_inside_python_document/  # Python API文档
│   ├── python template.py          # Python策略模板
│   ├── mquant_api.py               # API接口定义
│   ├── mquant_struct.py            # 数据结构定义
│   ├── HTSACsvReader.py
│   └── HTSADbAccess.py
└── mquant_inside_python_strategy/  # Python策略示例
    ├── DualThrust/                 # DualThrust策略
    ├── 日频报单场景/               # 日频报单示例
    ├── 算法交易/                   # 算法交易示例
    ├── ETF轮动.py
    ├── Insight_Demo.py
    ├── R-Breaker.py
    ├── 两融接口调用示例.py
    ├── 交易数据下载.py
    ├── 增强网格策略.py
    ├── 定时撤单.py
    ├── 快捷参数多产品.py
    ├── 快捷参数示例.py
    ├── 横盘突破.py
    ├── 用户参数示例.py
    ├── 算法接口调用示例.py
    └── 调仓策略.py

Workflow

Step 0: User Environment Initialization (First Run)

首次使用时,自动创建用户个人文档:

检查以下文件是否存在,不存在则自动创建:

✓ COMMON_ERRORS.user.md (个人错误笔记) ✓ TRADING_RULES.user.md (个人交易规则) ✓ TRADING_PHILOSOPHY.user.md (个人交易理念)

每个文件包含模板:

  • My Coding Habits (编码习惯)
  • My Common Mistakes (常见错误)
  • My Debugging Tips (调试技巧)
  • Personal Notes (个人笔记)

说明:

  • .user.md 文件永远不会被Skill 更新覆盖
  • 用户可随时编辑,记录个人习惯和心得
  • Skill 文档更新时,.md 和 .user.md 各自独立维护

Step 1: Directory Detection (Auto Scan)

Automatically locate the M-quant strategy directory:

全盘扫描 maticupdate.exe
    |
找到Matic安装目录,例如 D:\Matic\maticupdate.exe 或者其他形式
    |
在同级目录找 M-quant\ 文件夹
    |
在 M-quant\ 下找类似用户名的文件夹,比如:
    ├── userA\
    ├── userB\
    └── trader001\
    |
询问用户将策略代码保存到哪个目录

Scan Rules:

  • 全盘搜索 maticupdate.exe
  • 在其所在目录下找 M-quant\ 子目录
  • M-quant\ 下识别用户名文件夹(排除系统文件夹如 .git, backup, log, template)

Failure Handling:

  • 未找到 maticupdate.exeM-quant -> 提示用户手动输入路径
  • 用户不提供路径 -> 直接输出代码到对话,不保存文件

Step 2: Language Selection

询问用户选择编程语言:

请选择要生成的策略代码类型:
1. Python (推荐,快速开发、易于调试)
2.

Metadata

Stars3683
Views0
Updated2026-04-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-chouchounii-matic-mquant-assistant": {
      "enabled": true,
      "auto_update": true
    }
  }
}
Safety NoteClawKit audits metadata but not runtime behavior. Use with caution.