AGENT SKILL

trading-coach

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

License 许可
AGPL-3.0
最近更新
2026-11-15
Stars
★ 81
Forks
17

01 前言 Front Matter

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

02 资源文件 7

03 SKILL.md 正文

? Trading Coach — AI交易复盘教练

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

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

✨ 核心能力

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

? 快速开始

# 首次安装
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

? 评分体系

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

? AI洞察

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

详见 references/insight_dimensions.md

? 输出示例

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

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

☕ 支持作者

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

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

04 同仓库更多 Skills

jiayaoqijia
jiayaoqijia/cryptoskill

troves

Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

trade

Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

staking

Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

send

Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

portfolio

View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

multi-swap

Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.

★ 81