How to Build an AI Quant Research Team with Claude Code (Full Course) 用 Claude Code 搭建 AI 量化研究团队(完整教程)
Introduction引言
原文为图片,已转录 · Image text, transcribed
Article cover (dark geometric abstract with QuantGPT branding).
文章封面(深色几何抽象,带 QuantGPT 品牌元素)。
I will break down the exact setup I use to turn Claude Code into a quant research team: a lead that plans, agents that run the tests, a skeptic that tries to kill every result, and a ledger that remembers what failed.
我会拆开我实际在用的配置:把 Claude Code 变成一支量化研究团队——有规划的 lead、跑测试的 agents、专门试图打死每个结果的 skeptic,以及记住失败过什么的账本。
Let's get straight to it.
直接进入正题。
Bookmark This — The whole system runs on QuantGPT at quantgpt.co, a terminal that gives your AI trading agents hedge fund grade data, compute and trading through one connection.
先收藏——整套系统跑在 QuantGPT(quantgpt.co)上:一个终端,通过一条连接给你的 AI 交易 agents 提供对标对冲基金级别的数据、算力与交易能力。(产品推广,作者自述)
Follow me @hanakoxbt, I post agent setups like this every week.
关注 @hanakoxbt,我每周都会发这类 agent 配置。
原文为图片,已转录 · Image text, transcribed
FIG. 01 THE PROBLEM — One chat guesses. A team tests.
ONE CHAT WINDOW: user asks "should I trade the 200-day rule?"; AI answers yes from memory in 4s. data used: none; tests run: 0; checked by: nobody; saved to: nowhere.
WHAT IT HAS — One chat vs Team + QuantGPT desk:
• market data: whatever you paste vs prices from 1998, delisted incl.
• compute: one answer at a time vs backtests + sweeps on a cloud
• variations: the one you hoped for vs a full grid in one call
• review: the same model, agreeing vs a skeptic that tries to break it
• memory: a closed tab vs research.md ledger
Footer: same model, different desk · quantgpt.co
图 01 问题——一个聊天在猜,一支团队在测。
单聊天窗口:用户问「该不该做 200 日规则?」;AI 4 秒内凭记忆答「该」。用过的数据:无;跑过的测试:0;谁核查过:无人;存到哪:无处。
对比——单聊天 vs 团队 + QuantGPT 工作台:
• 市场数据:你粘贴什么 vs 1998 年起含退市的价格
• 算力:一次一个答案 vs 云上回测 + 参数扫描
• 变体:你希望的那一个 vs 一次调用整张网格
• 审查:同一模型自我认同 vs 专门试图打破结果的 skeptic
• 记忆:关掉的标签页 vs research.md 账本
页脚:同一模型,不同工作台 · quantgpt.co
Ask Claude whether a trading rule works and it answers in four seconds, with total confidence.
问 Claude 某条交易规则行不行,它四秒内自信满满地回答。
It has never seen the chart.
它从没看过那张图。
It has never run the test.
它从没跑过测试。
It is answering from memory.
它只是在凭记忆回答。
A smarter model with no data is just a more convincing guess.
没有数据的更聪明模型,只是更会骗人的猜测。
And the models keep getting smarter. Look at the last few weeks alone: Claude Opus 5.5, GPT-6 Sol, Fable 5.1, Jev for millisecond decisions. Every one of them is a better analyst than the last.
而且模型还在变强。光看最近几周:Claude Opus 5.5、GPT-6 Sol、Fable 5.1、面向毫秒决策的 Jev——每一个都比上一代更会分析。(型号与能力为作者列举,未经独立核实)
Not one of them ships with a desk.
但没有一个自带「交易台 / 研究工作台」。
That is the whole problem, and it is not a model problem. A hedge fund is not one genius in a chat window. It is a team working on top of a machine:
这才是整个问题,而且不是模型问题。对冲基金不是聊天窗里的一个天才,而是架在机器上的一支团队:
- a warehouse with decades of clean history有几十年干净历史的数据仓库
- a research cluster that tests ideas around the clock全天候测试想法的研究集群
- people whose only job is to break other people's results专职打碎别人结果的人
- a record of every idea that already failed每条已失败想法的记录
Claude Code can now play every role on that team. It just needs the desk.
Claude Code 现在能扮演这支团队里的每个角色,它只缺那张「台」。
By the end of this course you will know:
学完本教程你会明白:
- why one chat window can never do honest quant research为什么一个聊天窗口永远做不了诚实的量化研究
- how QuantGPT gives Claude Code hedge fund grade data, compute, and trading through one connectionQuantGPT 如何通过一条连接给 Claude Code 对标对冲基金级的数据、算力与交易
- how to connect it in about 10 minutes大约 10 分钟如何接上
- how to build a 5-agent research team on top of it, from one question to a rule that survives years it never saw如何在其上搭一支 5-agent 研究团队:从一个问题,到一条能挺过「从未见过的年份」的规则
Let's get into it.
开始。
Part 1: Why One Chat Window Cannot Do Quant Research第 1 部分:为什么一个聊天窗口做不了量化研究
A single chat does everything at once. It picks the idea, runs the test, grades its own work and forgets all of it when you close the tab.
单个聊天一次做完所有事:选想法、跑测试、给自己打分,关掉标签页就全忘了。
That is exactly how bad research happens. It is missing four things.
糟糕研究就是这样发生的。它缺四样东西。
1. Data.
1. 数据。
Your AI has never seen a price. And even when you paste one in, most retail data is broken in two quiet ways:
你的 AI 从没真正「见过」价格。就算你粘贴进去,多数零售数据也有两种安静的坏法:
Survivorship bias — the dataset only holds companies that are still alive. Every bankruptcy is missing, so every strategy looks better than it really was.
幸存者偏差——数据集只留还活着的公司,破产全缺,于是每条策略都显得比真实更好。
Look-ahead bias — earnings stamped with the quarter-end date instead of the day they were filed. Your backtest knows the news weeks before the market did.
前视偏差——财报按季末日期而不是申报日盖戳。回测比市场早好几周「知道」消息。
2. Compute.
2. 算力。
One honest question is never one backtest. It is five lookbacks, four exit rules and a held-out check on each. By hand that is a week. On a cloud it is one prompt.
一个诚实的问题从来不是一次回测:五个回看窗口、四条退出规则,每次还要留出样本外检验。手做要一周,上云是一条提示。
3. Separation of roles.
3. 角色分离。
The agent that came up with the idea should never be the one that grades it. In a single chat, it always is.
想出想法的 agent 绝不该自己打分。在单个聊天里,它永远既是出题人又是阅卷人。
4. Memory.
4. 记忆。
A fund remembers what it already tested and why it died. A chat forgets, so you test the same dead idea three times a year.
基金记得测过什么、为何死掉。聊天会忘,于是同一条死想法一年测三次。
What the gap actually looks like:
差距实际长这样:
ROLE A FUND HAS ONE CHAT WINDOW HAS
data point-in-time warehouse whatever you paste in
compute research cluster one answer at a time
review a risk team that says no the same model, agreeing
memory a research archive a closed tab角色 基金有什么 一个聊天窗口有什么
数据 时点正确的仓库 你粘贴进去的东西
算力 研究集群 一次一个答案
审查 会说不的风控团队 同一模型自我认同
记忆 研究档案库 关掉的标签页For years the last column was all we had.
很多年里,我们只有最后那一列。
Then two things arrived at the same time: agent teams in Claude Code, and MCP.
然后两样东西同时到了:Claude Code 里的 agent 团队,以及 MCP。
Part 2: The Desk Your Agents Have Been Missing第 2 部分:你的 agents 一直缺的那张「台」
MCP (Model Context Protocol) is the open standard that lets Claude call real tools instead of describing them. Not "here is how you would run a backtest". Actually run it.
MCP(Model Context Protocol)是开放标准,让 Claude 调用真正的工具,而不是描述工具。不是「你该这样回测」,而是真的跑起来。
But MCP is only a cable. What matters is what is on the other end of it.
但 MCP 只是一根线。关键是线另一头接了什么。
The tool is called QuantGPT.
这个工具叫 QuantGPT。
It grew out of the founders' own systematic investing work. The same data warehouse and cloud trading infrastructure they built for their hedge fund became the foundation of the product, then they plugged it into your AI.
它源于创始人自己的系统化投资工作。他们为对冲基金建的数据仓库与云交易基础设施成了产品底座,再接到你的 AI 上。(作者/产品方叙述,未经独立核实)
Their own one-liner says it best:
他们自己的一句话最到位:
"Your AI does the thinking, our cloud does the compute, your broker holds the money."
「你的 AI 负责想,我们的云负责算,你的券商保管钱。」
Here is what your agents get, layer by layer.
你的 agents 能拿到什么,一层层看。
DATASET WHAT IT FIXES
US daily prices, decades your AI finally sees real prices
delisted companies from 1998 survivorship bias in market-wide tests
fundamentals by filing date look-ahead bias on earnings
crypto and commodities more than one asset class in one place
FRED macro rates, inflation, the economy数据集 解决什么
美国日频价格,数十年 AI 终于见到真实价格
1998 年起含退市公司 全市场测试里的幸存者偏差
按申报日对齐的基本面 财报前视偏差
加密与大宗商品 多种资产同处一室
FRED 宏观 利率、通胀、经济The warehouse is refreshed every night. And you do not have to trust it blindly: there is a public verify page where you can check their prices against any independent source.
仓库每晚刷新。也不必盲目相信:有公开校验页,可对照任意独立来源核对价格。(作者自述)
Layer 2: Compute
第 2 层:算力
Backtests run on their cloud. Nothing to install.
回测跑在他们的云上,不用装东西。
The design choice that matters most: your AI never computes the numbers itself. It sends the rules, the server runs them on stored history, and the results come back into the chat.
最重要的设计选择:你的 AI 从不自己算数字。它发规则,服务器在存档历史上跑,结果再回到聊天里。
So no agent on your team can invent a Sharpe ratio it never calculated.
于是团队里没有任何 agent 能捏造一个从没算过的夏普比率。
Every study ends with one of three fixed verdicts:
每项研究以三种固定裁决之一收尾:
DATA VALIDATED beat the benchmark on BOTH growth (CAGR) and
risk-adjusted return (Sharpe), in the training
window AND the held-out window it never saw
TRADE-OFF beat it on one of the two, you decide
NO EDGE did no better than the benchmarkDATA VALIDATED 在训练窗与从未见过的留出窗上,增长(CAGR)与
风险调整收益(Sharpe)双双跑赢基准
TRADE-OFF 只在其中一项上跑赢,你自己决定
NO EDGE 不比基准更好Every study is split by time at an out-of-sample year, 2015 by default. Rules are formed on the earlier window, then replayed untouched on the later one. Random splits are refused by design, because shuffling time leaks the future into the past.
每项研究按时间在样本外年份切开,默认 2015。规则在更早窗口形成,再原样回放到更晚窗口。设计上拒绝随机切分,因为打乱时间会把未来泄漏进过去。
This is the single most important thing for an agent team. The verdict is the contract between your agents. Nobody argues with it.
对 agent 团队而言,这是最重要的一件事:裁决是 agents 之间的契约,没人跟它抬杠。
There is also a strategy library: 175 documented strategies from research papers, famous investors and their letters, with 53 runnable in one click.
还有策略库:175 条有文档的策略(来自论文、知名投资者及其信函),其中 53 条可一键跑。(作者自述数字,未经独立核实)
Layer 3: Execution (Pro)
第 3 层:执行(Pro)
QuantGPT Cloud hosts your own strategy code, runs it on your schedule and sends orders to your own Alpaca account, under your own keys.
QuantGPT Cloud 托管你自己的策略代码,按你的日程跑,用你自己的密钥把订单发到你自己的 Alpaca 账户。
Three rules make this sane:
三条规矩让这事靠谱:
- QuantGPT never decides, sizes or manages a trade. Your code does.
- QuantGPT 从不决定、定仓或管理交易。你的代码做。
- Your money never leaves your broker.
- 你的钱从不离开你的券商。
- No tool your AI can call places, changes or cancels an order.
- AI 能调用的任何工具都不能下单、改单或撤单。
The agents research. Your code trades.
agents 做研究。你的代码做交易。
Or plug in your own AI — Claude Code, Claude Desktop, claude.ai or any MCP client connects to one endpoint:
也可以接你自己的 AI——Claude Code、Claude Desktop、claude.ai 或任意 MCP 客户端,都连同一个端点:
When the next model drops, you do not rebuild anything. You swap the analyst, the desk stays.
下一款模型出来时你不用重建任何东西:换分析师,工作台留下。
原文为图片,已转录 · Image text, transcribed
FIG. 02 ONE MCP ENDPOINT, THREE LAYERS
Claude Code roles: lead Opus 5.5; scout/sweeper Sonnet 5.5; skeptic Opus 5.5; librarian Haiku 5.5 → MCP http → QuantGPT /mcp tools (query_warehouse, run_backtest, run_sweep, challenge_finding, search_library, fetch_job) → three layers: DATA / COMPUTE / EXECUTION-PRO.
Timeline: training window to 2015 split, then held-out to 2026; split by time, never at random.
Verdicts: DATA VALIDATED / TRADE-OFF / NO EDGE.
Footer: terminal.quantgpt.co/mcp · your AI thinks, their cloud computes
图 02:一个 MCP 端点,三层
Claude Code 角色:lead Opus 5.5;scout/sweeper Sonnet 5.5;skeptic Opus 5.5;librarian Haiku 5.5 → MCP http → QuantGPT /mcp 工具 → 三层:数据 / 算力 / 执行-Pro。
时间轴:训练窗到默认 2015 切开,再留出至 2026;按时间切,从不随机。
裁决:DATA VALIDATED / TRADE-OFF / NO EDGE。
页脚:terminal.quantgpt.co/mcp · AI 想,云端算
Part 3: Connect Claude Code in 10 Minutes第 3 部分:10 分钟接上 Claude Code
Follow this once. Every agent on your team inherits the connection.
跟做一次。团队里每个 agent 都会继承这条连接。
Step 1. Create your account.
步骤 1. 开账户。
Go to quantgpt.co.
打开 quantgpt.co。
Start free with no card (5 backtests, 5 AI calls) or start the 3-day trial on QuantGPT or QuantGPT Pro. The trial takes a card up front and you pay nothing if you cancel before the 3 days end.
可免绑卡免费开始(5 次回测、5 次 AI 调用),或开 QuantGPT / QuantGPT Pro 的 3 天试用。试用要先留卡,3 天内取消则不扣费。(价格与额度以官网为准,此处照录原文)
Step 2. Run your first backtest by hand.
步骤 2. 亲手跑第一次回测。
Sign in at terminal.quantgpt.co. Open the strategy library. Pick Magic Formula. Click Run it.
登录 terminal.quantgpt.co,打开策略库,选 Magic Formula,点 Run it。
Read the criteria. Then read the finding at the top of the result.
先读入选条件,再读结果页顶部的 finding。
Do this once yourself. It teaches you what a real result looks like before your agents start producing fifty of them.
自己先做一次。这样在 agents 开始产出五十条结果之前,你知道「真结果」长什么样。
Step 3. Issue a key for Claude Code.
步骤 3. 给 Claude Code 发卡。
Open ACCOUNT, then "Keys for your AI", and issue a key. Copy the qg_sk_ value right away, it is shown only once.
打开 ACCOUNT → "Keys for your AI",发卡。立刻复制 qg_sk_ 值,只显示一次。
Step 4. Add the desk to Claude Code:
步骤 4. 把工作台接到 Claude Code:
claude mcp add --transport http quantgpt https://terminal.quantgpt.co/mcp \
--header "Authorization: Bearer qg_sk_YOUR_KEY"Step 5. Let it explain itself.
步骤 5. 让它自述能力。
Open a new Claude Code session and run:
开一个新的 Claude Code 会话,运行:
Call describe_capabilities from QuantGPT. List every tool you can use,
what each one is for, and which categories are switched off.
Then call available_categories and switch on equity and macro.调用 QuantGPT 的 describe_capabilities。列出你能用的每个工具、
各自用途,以及哪些类别是关着的。
然后调用 available_categories,打开 equity 与 macro。After the first call, the AI light in the terminal nav turns green.
第一次调用后,终端导航里的 AI 灯会变绿。
These are the tools your team will live in:
团队会常驻这些工具:
query_warehouse read prices, fundamentals, macro
run_backtest test one rule on stored history
run_sweep test a grid of settings in one call
challenge_finding attack a finding and look for weak spots
search_library search the documented strategies
fetch_job collect long-running resultsquery_warehouse 读价格、基本面、宏观
run_backtest 在存档历史上测一条规则
run_sweep 一次调用测整张参数网格
challenge_finding 攻击一条 finding,找弱点
search_library 搜索有文档的策略
fetch_job 收取长时间任务的结果Two notes before you build:
动手前两条提醒:
- AI calls are capped per day per account, across every key and connection, and only tool calls count. A team of agents spends them fast, so give each agent one job.每个账户每天的 AI 调用有上限,跨所有密钥与连接,且只计工具调用。一支 agent 团队烧得很快,所以每个 agent 只给一件事。
- On Claude Desktop or claude.ai you do not need a key at all: add a custom connector with the same URL and sign in. If your plan has no connector option, QuantGPT has a paste-pack that gives your AI the context without MCP.在 Claude Desktop 或 claude.ai 上甚至不需要密钥:用同一 URL 加自定义 connector 并登录。若套餐没有 connector,QuantGPT 还有不经 MCP、靠粘贴包给 AI 上下文的方案。
Part 4: Hire the Team第 4 部分:招齐团队
Now the real thing. In Claude Code every role is a subagent: a markdown file in .claude/agents/ with its own instructions, tools and model.
现在才是正事。在 Claude Code 里,每个角色是一个 subagent:.claude/agents/ 下的 markdown,自带说明、工具与模型。
The team:
团队编制:
AGENT MODEL JOB
lead Opus 5.5 turns a question into a plan, decides what runs next
scout Sonnet 5.5 checks the data before anything is tested
sweeper Sonnet 5.5 runs every variation of a rule, never just one
skeptic Opus 5.5 tries to break every result before you see it
librarian Haiku 5.5 finds strategies with evidence behind themAGENT 模型 职责
lead Opus 5.5 把问题变成计划,决定下一步跑什么
scout Sonnet 5.5 任何测试前先查数据覆盖
sweeper Sonnet 5.5 跑一条规则的所有变体,从不只测一个点
skeptic Opus 5.5 在你看到结果前试图打破每一个结果
librarian Haiku 5.5 找有证据支撑的策略The lead is your main session. The other four are files.
lead 是你的主会话。其余四个是文件。
The scout:
scout:
---
name: scout
description: Checks data coverage before any study runs.
tools: mcp__quantgpt__query_warehouse
model: sonnet
---
Before any test, confirm the universe, the date range and the fields
the study needs. Flag gaps, delisted coverage before 1998, and any
fundamental that might not be point-in-time. Never run a backtest.---
name: scout
description: 任何研究开始前检查数据覆盖。
tools: mcp__quantgpt__query_warehouse
model: sonnet
---
任何测试前,确认股票池、日期范围与研究所需字段。
标出缺口、1998 年前退市覆盖,以及可能不是时点正确的基本面。
绝不跑回测。The sweeper:
sweeper:
---
name: sweeper
description: Runs parameter sweeps for one rule at a time.
tools: mcp__quantgpt__run_sweep, mcp__quantgpt__run_backtest, mcp__quantgpt__fetch_job
model: sonnet
---
Test one rule across a full grid of settings, never a single setting.
Return the grid, the verdict for every cell, and whether the
DATA VALIDATED cells form a plateau or a single isolated peak.
Never round, smooth or hide a failed cell.---
name: sweeper
description: 一次只对一条规则做参数扫描。
tools: mcp__quantgpt__run_sweep, mcp__quantgpt__run_backtest, mcp__quantgpt__fetch_job
model: sonnet
---
在完整参数网格上测一条规则,从不只测一个点。
返回网格、每个格子的裁决,以及 DATA VALIDATED 格子是高原还是孤立尖峰。
绝不四舍五入、平滑或隐藏失败格子。The skeptic:
skeptic:
---
name: skeptic
description: Attacks every finding before it is accepted.
tools: mcp__quantgpt__challenge_finding, mcp__quantgpt__run_backtest
model: opus
---
Your only job is to make results fail. For every finding check the
held-out years, nearby settings, other universes and the worst
drawdown. Report the weakest point you found. If you could not break
it, list everything you tried.---
name: skeptic
description: 在采纳前攻击每条 finding。
tools: mcp__quantgpt__challenge_finding, mcp__quantgpt__run_backtest
model: opus
---
你唯一的工作是让结果失败。对每条 finding 检查留出年份、
邻近参数、其他股票池与最差回撤。报告你找到的最弱点。
若打不破,列出你试过的一切。The librarian:
librarian:
---
name: librarian
description: Finds documented strategies that fit a research question.
tools: mcp__quantgpt__search_library
model: haiku
---
Search the library for strategies related to the question. Return
name, source, criteria and whether it runs in one click. Never test.---
name: librarian
description: 找契合研究问题的有文档策略。
tools: mcp__quantgpt__search_library
model: haiku
---
在库里搜与问题相关的策略。返回名称、来源、条件,以及能否一键跑。
绝不测试。The skeptic runs on the strongest model on purpose. Generating ideas is cheap. Killing bad ones is where the money is saved.
skeptic 故意跑在最强模型上。生成想法便宜,打死坏想法才省钱。
原文为图片,已转录 · Image text, transcribed
FIG. 03 THE TEAM — lead (Opus 5.5) plans/delegates/decides at center.
scout (Sonnet) query_warehouse; sweeper (Sonnet) run_sweep; skeptic (Opus) challenge_finding; librarian (Haiku) search_library.
research.md ledger: Q-012 dead, Q-013 trade-off, Q-014 validated; read first · written last.
Footer: .claude/agents/*.md · the agent with the idea never grades it
图 03 团队——中心 lead(Opus 5.5)规划/委派/决策。
scout 查仓;sweeper 扫描;skeptic 挑战;librarian 搜库。
research.md 账本:死/权衡/已验证;先读后写。
页脚:.claude/agents/*.md · 有想法的 agent 从不给自己打分
Now give the team a memory. One file that every agent reads first and writes last, research.md:
再给团队记忆。每个 agent 先读后写的同一个文件 research.md:
## Q-014 <the question, in one line>
status: open | accepted | dead
verdict: DATA VALIDATED | TRADE-OFF | NO EDGE
sweep: <grid size>, plateau or single peak
skeptic: <weakest point found, or everything tried>
next: <next step, or "do not retest without a new reason">## Q-014 <一行写清问题>
status: open | accepted | dead
verdict: DATA VALIDATED | TRADE-OFF | NO EDGE
sweep: <网格规模>,高原或单峰
skeptic: <找到的最弱点,或试过的一切>
next: <下一步,或「没有新理由不要重测」>And four rules in CLAUDE.md that the whole team obeys:
以及全队遵守的四条 CLAUDE.md 规则:
- Every test is logged in research.md with its verdict before any summary.任何摘要之前,每项测试都要带着裁决记进 research.md。
- Only DATA VALIDATED results move to the next stage.只有 DATA VALIDATED 结果能进入下一阶段。
- NO EDGE is a result, not a failure. Log it and never retest it without a new reason.NO EDGE 是结果,不是失败。记下来,没有新理由绝不重测。
- A finding is real only if the skeptic could not break it.只有 skeptic 打不破的 finding 才算真。
Now the team has memory. Next month it will not waste a day on the idea it killed today.
现在团队有记忆了。下个月不会再浪费一天在今天打死的想法上。
Part 5: From One Question to a Rule That Survives第 5 部分:从一个问题到一条能挺住的规则
One question, all the way through the team.
一个问题,走完整支团队。
QUESTION → SCOUT → BACKTEST → VERDICT → SWEEP → SKEPTIC → LEDGER → PAPER → RUNNER (PRO)问题 → SCOUT → 回测 → 裁决 → 扫描 → SKEPTIC → 账本 → 模拟盘 → 运行器(Pro)Step 1. Start with a question, not a strategy.
步骤 1. 从问题开始,不是从策略开始。
Give the lead the same question QuantGPT uses on its own homepage:
把 QuantGPT 主页用的同一个问题交给 lead:
Using QuantGPT, backtest the 200-day moving average rule on the
S&P 500 since 1999 against buy and hold. Plan the research first,
send the scout to check the data, then delegate.用 QuantGPT,把 1999 年以来标普 500 上的 200 日均线规则
对照买入持有做回测。先规划研究,派 scout 查数据,再委派。The answer, from their published run, 1999 to 2026:
答案来自他们发布的一次运行,1999–2026(作者/产品方公布,未经独立核实):
200-DAY RULE BUY AND HOLD
growth a year 6.8% 6.8%
worst fall -24.4% -56.8%
Sharpe 0.61 0.44
$10K became $61,526 $61,009 200 日规则 买入持有
年化增长 6.8% 6.8%
最差回撤 -24.4% -56.8%
夏普 0.61 0.44
1 万美元变成 $61,526 $61,009Same growth. Less than half the crash.
同样的增长,崩溃不到一半。
The rule: in the market when the close is 1% or more above the 200-day average, out when it is 3% or more below, earning the T-bill rate while out. 42 trades, gross of trading costs.
规则:收盘价比 200 日均线高 1% 及以上时在场;低 3% 及以上时离场;离场期间赚国债利率。42 笔交易,未扣交易成本。(作者自述)
That is a result computed on real data. Not a paragraph a model remembered.
这是在真实数据上算出来的结果,不是模型凭记忆写的一段话。
Step 2. Read the verdict before the curve.
步骤 2. 先读裁决,再看曲线。
DATA VALIDATED, TRADE-OFF or NO EDGE. A beautiful equity curve with NO EDGE is still NO EDGE.
DATA VALIDATED、TRADE-OFF 或 NO EDGE。漂亮的权益曲线若标着 NO EDGE,仍是 NO EDGE。
A finding of no edge saves you more money than any winning backtest ever made you.
「没有优势」这条 finding,往往比任何漂亮回测帮你省更多钱。
Step 3. Sweep, never guess.
步骤 3. 扫描,绝不瞎猜。
This is where the compute changes everything:
算力在这里改变一切:
Sweeper: rerun the study with the moving average at 50, 100, 150,
200 and 250 days, and the exit buffer at 0%, 1%, 3% and 5%.
Return the verdict for every cell and tell me if the DATA VALIDATED
cells form a plateau or a single lucky number.Sweeper:把均线设为 50/100/150/200/250 日,退出缓冲设为 0%/1%/3%/5%,
重跑研究。返回每个格子的裁决,并告诉我 DATA VALIDATED 格子
是高原还是单个幸运数字。Twenty configurations from one prompt. A real edge holds across nearby settings. A lucky one dies one step away.
一条提示,二十组配置。真优势在邻近参数上站得住;运气货一步之外就死。
原文为图片,已转录 · Image text, transcribed
FIG. 04 THE SWEEP AND THE PUBLISHED RUN
Left: illustrative 5×4 grid (lookback 50–250d × exit buffer 0–5%): validated plateau, trade-off, no edge.
Right: published run 200-day rule vs buy and hold — growth 6.8%/6.8%; worst fall -24.4%/-56.8%; Sharpe 0.61/0.44; $10K → $61,526/$61,009.
42 trades · gross of costs · same growth, less than half the crash.
(Author/product published figures; not independently verified.)
图 04:扫描与已发布运行
左:示意 5×4 网格(回看 50–250 日 × 退出缓冲 0–5%):已验证高原、权衡、无优势。
右:已发布运行——200 日规则 vs 买入持有:增长同为 6.8%;最差回撤 -24.4%/-56.8%;夏普 0.61/0.44;1 万→61526/61009。
42 笔交易·未扣成本·同样增长、崩溃不到一半。
(作者/产品方公布数字,未经独立核实。)
Step 4. Let the skeptic attack the survivors.
步骤 4. 让 skeptic 攻击幸存者。
Skeptic: take every DATA VALIDATED cell from the sweep and try to break it. Held-out years only, other universes, and the single worst drawdown year. Log what you tried in research.md.
Skeptic:拿扫描里每个 DATA VALIDATED 格子,试图打破它。只用留出年份、其他股票池,以及最差回撤那一年。把试过的记进 research.md。
Step 5. Borrow, do not invent.
步骤 5. 借用,不要发明。
Your next idea should come from evidence, not a feeling:
下一个想法应来自证据,不是感觉:
Librarian: find momentum and value strategies in the library.
Librarian:在库里找动量与价值策略。
Lead: run Piotroski F-Score and 52-Week High Momentum from 2000, compare them on the years after 2015 only, and log both verdicts.
Lead:从 2000 年起跑 Piotroski F-Score 与 52 周高点动量,只在 2015 之后的年份比较,并把两条裁决记下来。
Step 6. Repeat until the ledger does the thinking.
步骤 6. 重复,直到账本替你想。
Every finished branch leaves the next one a better starting point. That is the difference between a chat and a team: the team compounds.
每条做完的分支,都给下一条更好起点。这就是聊天和团队的差别:团队会复利。
Step 7. Paper first.
步骤 7. 先模拟盘。
Run the surviving rule on paper and compare it with the backtest. Backtests are gross of costs, so a thin edge can disappear after fees and slippage.
把幸存规则放到模拟盘,对照回测。回测未扣成本,薄优势在手续费与滑点后可能消失。
Step 8. Deploy on the runner (Pro).
步骤 8. 部署到运行器(Pro)。
Have the lead turn the validated rule into code. QuantGPT Cloud hosts that code, runs it on your schedule and sends orders to your own Alpaca account.
让 lead 把已验证规则写成代码。QuantGPT Cloud 托管代码,按日程运行,把订单发到你自己的 Alpaca 账户。
Your code decides. Your keys sign. Your money stays at your broker.
你的代码做决定。你的密钥签名。你的钱留在券商。
原文为图片,已转录 · Image text, transcribed
FIG. 05 FROM QUESTION TO RUNNER
Funnel: 01 question → 02 scout → 03 backtest → 04 verdict → 05 sweep → 06 skeptic → 07 ledger → |THE LINE| → 08 paper → 09 runner (Pro · Alpaca).
Left of the line: agents research. Right: your code trades.
Bullets: QuantGPT never decides or sizes; money never leaves broker; no AI tool places an order; results gross of costs — paper first.
Footer: the agents research, your code trades.
图 05:从问题到运行器
漏斗:01 问题 → 02 scout → 03 回测 → 04 裁决 → 05 扫描 → 06 skeptic → 07 账本 →|分界线|→ 08 模拟盘 → 09 运行器(Pro · Alpaca)。
线左:agents 研究。线右:你的代码交易。
要点:QuantGPT 从不决定或定仓;钱不离券商;AI 工具不能下单;结果未扣成本——先模拟。
页脚:agents 研究,你的代码交易。
The Honest Contract诚实契约
This setup CAN:
这套配置能:
- give every agent decades of real market data, delisted companies included from 1998给每个 agent 数十年真实市场数据,含 1998 年起退市公司
- run backtests and sweeps on a cloud instead of your laptop在云上而不是笔记本上跑回测与扫描
- grade every result against years it never saw用从未见过的年份给每个结果打分
- separate the agent that has the idea from the agent that judges it把有想法的 agent 和评判它的 agent 分开
- remember every dead idea so you never test it twice记住每条死想法,免得测第二次
- host your own code at your own broker (Pro)在你自己的券商侧托管你自己的代码(Pro)
This setup CANNOT:
这套配置不能:
- guarantee profit保证盈利
- model costs, taxes or slippage, every result is gross建模成本、税或滑点——所有结果都是毛结果
- trade for you, decide or size a position替你交易、做决定或定仓
- turn a weak idea into an edge把弱想法变成优势
Closing收尾
Everyone keeps upgrading the analyst. A new model every month, each one smarter than the last.
人人都在升级分析师。每月一款新模型,一个比一个聪明。
But an analyst without a desk is still guessing. And an analyst without a team is still grading their own homework.
但没有工作台的分析师仍在猜;没有团队的分析师仍在给自己作业打分。
Give your AI a desk.
给你的 AI 一张台。
Give the desk a team.
给这张台一支团队。
Give the team a memory.
给这支团队一份记忆。
Then let the verdicts decide.
然后让裁决说话。
QuantGPT gives your AI that infrastructure through one connection. Data. Compute. Trading.
QuantGPT 用一条连接把这套基础设施交给你的 AI:数据、算力、交易。(产品收束句)
So here is the question.
所以问题是:
Is your AI still guessing from memory in a chat box, or is a whole team running real backtests on decades of data before you risk a single dollar?
你的 AI 还在聊天框里凭记忆猜,还是整支团队在几十年真实数据上跑完回测,你才拿一美元去冒险?
There is no wrong answer. But there are very revealing ones.
没有标准对错答案,但有非常能暴露现状的答案。
Start at quantgpt.co.
从 quantgpt.co 开始。