trading-coach

🏆 AI交易复盘教练 — 把你的券商CSV变成可执行的改进洞察! 自动FIFO配对持仓,8维度质量评分(入场/出场/趋势/风险...),10维度AI洞察。 支持富途(中/英)、老虎、中信、华泰等主流券商。 触发条件: 用户提供交易CSV、要求分析交易表现、评估交易质量、生成复盘报告、 计算盈亏统计、识别交易模式问题、"帮我复盘"、"分析我的交易"。

3,891 stars

Best use case

trading-coach is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

🏆 AI交易复盘教练 — 把你的券商CSV变成可执行的改进洞察! 自动FIFO配对持仓,8维度质量评分(入场/出场/趋势/风险...),10维度AI洞察。 支持富途(中/英)、老虎、中信、华泰等主流券商。 触发条件: 用户提供交易CSV、要求分析交易表现、评估交易质量、生成复盘报告、 计算盈亏统计、识别交易模式问题、"帮我复盘"、"分析我的交易"。

Teams using trading-coach should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/trading-coach/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/benzema216/trading-coach/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/trading-coach/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How trading-coach Compares

Feature / Agenttrading-coachStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

🏆 AI交易复盘教练 — 把你的券商CSV变成可执行的改进洞察! 自动FIFO配对持仓,8维度质量评分(入场/出场/趋势/风险...),10维度AI洞察。 支持富途(中/英)、老虎、中信、华泰等主流券商。 触发条件: 用户提供交易CSV、要求分析交易表现、评估交易质量、生成复盘报告、 计算盈亏统计、识别交易模式问题、"帮我复盘"、"分析我的交易"。

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# 🏆 Trading Coach — AI交易复盘教练

> 别再凭感觉交易了。让数据告诉你哪里做对了,哪里需要改进。

将券商导出的CSV交易记录,转化为**专业级复盘报告**和**可执行的改进建议**。

## ✨ 核心能力

- 🔄 **智能导入** — 自动识别5种券商格式,一键导入
- 📊 **FIFO配对** — 自动把买卖配对成完整持仓周期
- 🎯 **8维度评分** — 入场、出场、趋势、风险、行为...全面诊断
- 💡 **AI洞察** — 10维度分析,找出你的交易盲点

## 🚀 快速开始

```bash
# 首次安装
git clone https://github.com/BENZEMA216/tradingcoach.git ~/tradingcoach
cd ~/tradingcoach
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt && cp config_template.py config.py

# 一键复盘
python scripts/import_trades.py /path/to/trades.csv  # 导入
python scripts/run_matching.py                        # 配对
python scripts/score_positions.py --all               # 评分
python scripts/analyze_scores.py                      # 报告
```

## 📈 支持券商

| 券商 | 编码 | 自动检测 |
|------|------|----------|
| 富途(中文) | UTF-8-BOM | ✅ 方向、代码、成交时间 |
| 富途(英文) | UTF-8 | ✅ Side、Symbol、Fill Time |
| 老虎证券 | UTF-8 | ✅ 交易方向、股票代码 |
| 中信证券 | GBK | ✅ 买卖标志、证券代码 |
| 华泰证券 | GBK | ✅ 操作、证券代码 |

详见 [references/csv_formats.md](references/csv_formats.md)

## 🎯 评分体系

8个维度,每个都有权重:

| 维度 | 权重 | 评估内容 |
|------|------|----------|
| 入场质量 | 18% | RSI/MACD/布林带配合度 |
| 出场质量 | 17% | 止盈止损执行 |
| 趋势把握 | 14% | 顺势/逆势、ADX强度 |
| 风险管理 | 12% | R:R比率、MAE/MFE |
| 市场环境 | 11% | 市场状态适配 |
| 交易行为 | 11% | 纪律性、冲动检测 |
| 新闻契合 | 7% | 新闻背景一致性 |
| 执行质量 | 5% | 滑点、成交效率 |

**等级**: A(90+) / B(80-89) / C(70-79) / D(60-69) / F(<60)

详见 [references/scoring_system.md](references/scoring_system.md)

## 💡 AI洞察

10个维度深度分析你的交易模式:入场质量、出场时机、风险控制、持仓周期、费用侵蚀、历史对比、模式识别、根因分析、事件关联、改进建议

详见 [references/insight_dimensions.md](references/insight_dimensions.md)

## 📊 输出示例

```
总持仓: 150笔 | 胜率: 62.5% | 总盈亏: $12,500 | 平均评分: 72.3 (C)

⚠️ 在超买区域做多 — 入场时RSI=75.2,建议避免RSI>70时追涨
✅ 止损执行良好 — 平均亏损控制在2.3%,纪律性强
💡 持仓时间偏短 — 平均持仓2.3天,考虑延长持有优质标的
```

---

## ☕ 支持作者

如果这个工具帮到了你,请考虑请我喝杯咖啡!

- **GitHub Sponsors**: [@BENZEMA216](https://github.com/sponsors/BENZEMA216)
- **Buy Me a Coffee**: [buymeacoffee.com/benzema216](https://buymeacoffee.com/benzema216)
- **USDC (Base)**: `0x...` *(联系获取地址)*

你的支持是我持续改进的动力 🚀

Related Skills

Executive Coaching & Leadership Development Engine

3891
from openclaw/skills

Complete executive coaching system — leadership assessment, 360° feedback, coaching engagements, leadership development plans, team effectiveness, executive presence, and succession planning. Use for leadership coaching, executive development programs, team building, performance breakthroughs, and career transitions.

Executive Coaching

universal-trading

3891
from openclaw/skills

Execute cross-chain token trading on EVM and Solana with Particle Network Universal Account SDK. Use when users ask to set up universal-account-example, buy or sell tokens, run convert/swap flows, transfer assets, call custom transactions, query balances/history, or monitor transaction status via WebSocket.

Cryptocurrency & DeFi

paper-trading-plan

3891
from openclaw/skills

Generates structured paper trading plans with entry, stop loss, take profit, position size, and failure conditions for SPX, indices, and US equity options.

Trading

3891
from openclaw/skills

Trading analysis and education. Technical analysis, chart patterns, risk management, and position sizing for stocks, forex, and crypto.

convertible-bond-trading-bot

3891
from openclaw/skills

可转债自动交易机器人,止跌企稳智能选股,上涨趋势自动高抛低吸,自带回测功能,年化收益30%+。每次调用0.01USDT。

trading-analyzer

3891
from openclaw/skills

Multi-source trading analyzer (`/drunk-trading-analyzer`) combining crypto data (TradingView), stock data (Alpha Vantage), and market intelligence (Yahoo Finance) into unified analysis reports with price trends, technical indicators, and sentiment analysis.

trading-signal

3891
from openclaw/skills

Subscribe and retrieve on-chain Smart Money signals. Monitor trading activities of smart money addresses, including buy/sell signals, trigger price, current price, max gain, and exit rate. Use this skill when users are looking for investment opportunities — smart money signals can serve as valuable references for potential trades.

DEX Agent — Direct DeFi Trading Skill

3891
from openclaw/skills

**Zero-fee DeFi trading for OpenClaw agents. Bankr alternative.**

defi-trading-engine

3891
from openclaw/skills

DeFi Trading Engine - Autonomous DeFi trading bot with self-improving review system for OpenClaw agents. Use when setting up DeFi trading, crypto trading bot, automated trading, Base chain trading, Bankr integration, trading engine, self-improving bot, or trading strategy execution.

clawcoach-setup

3891
from openclaw/skills

One-time setup for ClawCoach AI health coaching. Configures your profile, goals, macro targets, dietary preferences, and coach personality.

clawcoach-food

3891
from openclaw/skills

Food photo analysis and meal logging for ClawCoach. Send a photo of your meal and get instant macro breakdown via Claude Vision.

clawcoach-core

3891
from openclaw/skills

AI health coach with dual personality modes (Supportive Mentor or Savage Roaster). Tracks nutrition from food photos, provides data-driven coaching, and holds you accountable.