跳到正文

实验室

每个工作台都回到原点.

数据、研究、验证、组合、执行与风险——一间量化实验室的六个工作台,都从同一点度量。把其中任何一个拉开,它都会回到出发的地方。

实验室的工作台

拖动任意一个工作台——它都会回到原点。示意活动
  • 数据: 采集 tick 数据流, 对齐 as-of 时间戳, 审查幸存者偏差.
  • 研究: 撰写假设, 列明其条件, 设定终止标准.
  • 验证: 前向滚动窗口 6 / 8, 统计每一个变体, 计入真实成本.
  • 组合: 仓位低于 f*, 平衡各项敞口, 守住风险预算.
  • 执行: 拆分母订单, 衡量成交 vs. 到达价, 路由至各交易场所.
  • 风险: 盯住回撤限额, 比较实盘 vs. 回测, 相关性压力测试.

运作方式

一套有纪律的流程,从第一个 tick 到最后一笔成交。

示意数据

  1. 01数据

    采集与标准化

    交易所 tick、订单簿、基本面和另类数据经过清洗、对齐,并按时点存储——每个值都标记了它可被获知的时刻。

    • 时点数据
    • 无幸存者偏差
    • 公司行为
    采集 · 标准化4 路数据 → as-of t
    TICKSBOOKFUNDALTAS-OF t
  2. 02研究

    从假设到证据

    想法变成因子,因子变成回测。计入现实成本的前向滚动检验,把真实的优势与过拟合的优势区分开来——在任何资本承担风险之前。

    • 前向滚动检验
    • 成本与滑点
    • 样本外
    研究 · 验证前向滚动 · OOS
    IN-SAMPLEOUT-OF-SAMPLEWALK-FORWARD · TRAIN / TEST
  3. 03信号

    从 alpha 到组合

    经过验证的 alpha 在明确的约束——敞口、换手率、流动性——下进行合成与定量,形成可追溯至其原点的目标权重。

    • Alpha 合成
    • 风险模型
    • 约束
    信号 · 构建美元中性权重
    LONGSHORT
  4. 04执行

    从意图到成交

    目标权重变为子订单。调度器与智能路由在市场中执行订单,以最小化市场冲击,每笔成交都以到达价格为基准进行衡量。

    • VWAP / POV
    • 智能路由
    • TCA
    执行 · 路由成交 vs 到达价
    101.45101.40101.35101.30101.25101.20101.15101.10101.05101.00VWAP SCHEDULE
  5. 05风险

    度量、限制、学习

    交易前检查、实时限额和延迟监控持续运行。生产环境教给我们的东西直接回流到研究中——闭合循环。

    • 交易前检查
    • 实时限额
    • 反馈循环
    风险 · 监控延迟 · 限额
    0 ms5 msp50 0.8p99 2.4LIMITSGROSSNET βDDVAR99

I实验室规则

  1. 01每次运行都有记录——被否决的优先。
  2. 02门槛与终止标准在测试之前写下,而不是之后。
  3. 03报告结果时,同时报告找到它所用的试验次数。
  4. 04通过检验意味着重新检验,而不是部署。

II运行日志

更新于

一本账簿:登记了什么、如何检验、为何失败。

示例条目 ——用于展示账簿的格式。首批运行记录发布后,实时日志将取代它们。

运行记录以英文保存,作为实验室的工作账簿;此处仅翻译其周围的界面。

已登记
7
已否决
5
通过,待重新检验
1
进行中
1
已统计变体
140
预注册
100%
运行被否决的原因已结束的运行中 83% 被否决
  • 前视偏差1
  • 成本1
  • 伪相关1
  • 市场状态1
  • 低于门槛1

显示 7 / 7 条运行

  1. R-0012Overnight gaps in index futures partially reverse during the first trading hour.Index futures · Intraday · 示例变体 6进行中

    预注册

    机制
    Liquidity providers widen quotes at the open; inventory is unwound once depth returns.
    门槛
    Deflated t ≥ 3.0 in at least 6 of 8 walk-forward windows
    终止标准
    Effect absent after costs in 3 consecutive windows

    方案

    数据
    E-mini index futures, 1-minute bars, point-in-time
    样本
    2016–2025
    验证
    Walk-forward, 8 windows, 2-day embargo
    成本
    Half-spread + impact model + exchange fees

    结果

    进行中

    Windows 1–5 complete. Decision at window 8.

    登记
    结束
    进行中
    • 预注册
    • 时点数据
    • 已计成本
    • 已统计变体
    链接到 R-0012
  2. R-0011Funding-rate extremes on perpetual swaps precede short-horizon mean reversion.Crypto perpetuals · Hours to days · 示例变体 18通过 · 重新检验

    预注册

    机制
    Crowded leveraged positioning is forced to unwind when funding becomes extreme.
    门槛
    Deflated t ≥ 3.0 across all 10 windows, net of costs
    终止标准
    Sign reverses in any 2 consecutive windows

    方案

    数据
    Top-10 perpetuals by open interest, hourly funding and prices, point-in-time
    样本
    2020–2026
    验证
    Walk-forward, 10 windows, 1-day embargo
    成本
    Taker fees + half-spread + funding paid

    结果

    通过 · 重新检验

    Cleared the pre-registered hurdle after deflating for 18 variants. Moved to paper trading for an independent re-test — not deployed.

    登记
    结束
    · 6 天
    • 预注册
    • 时点数据
    • 已计成本
    • 已统计变体
    链接到 R-0011
  3. R-0010Sentiment drift across consecutive earnings calls predicts the next 20 days of relative performance.US equities · 20 trading days · 示例变体 24已否决

    预注册

    机制
    Soft information in management language diffuses slowly among investors.
    门槛
    Deflated t ≥ 3.0, sector-neutral, net of costs
    终止标准
    Effect explained by post-earnings announcement drift

    方案

    数据
    Call transcripts aligned to publication time; survivorship-free universe
    样本
    2012–2025
    验证
    Walk-forward, 12 windows, 5-day embargo
    成本
    Spread + impact model at 1% of ADV

    结果

    已否决前视偏差

    The effect disappears once transcripts are aligned to their true publication time; the raw feed stamped them at the start of the call.

    使用了当时无法获得的信息。

    登记
    结束
    · 8 天
    • 预注册
    • 时点数据
    • 已计成本
    • 已统计变体
    链接到 R-0010
  4. R-0009Abnormal volume in small caps leads price by one day.US small caps · 1 day · 示例变体 12已否决

    预注册

    机制
    Informed traders accumulate before information becomes public.
    门槛
    Deflated t ≥ 3.0 net of costs at a tradable size
    终止标准
    Gross effect smaller than estimated round-trip cost

    方案

    数据
    Daily bars and volume, survivorship-free, point-in-time listings
    样本
    2010–2025
    验证
    Walk-forward, 10 windows
    成本
    Spread + impact model at 0.5–2% of ADV

    结果

    已否决成本

    A gross effect exists, but it is smaller than realistic transaction costs at every tradable size tested.

    未能扛住现实的交易成本。

    登记
    结束
    · 9 天
    • 预注册
    • 时点数据
    • 已计成本
    • 已统计变体
    链接到 R-0009
  5. R-0008Two refiners' equities co-move with the crack spread closely enough to be traded as a pair.Energy equities · Weeks · 示例变体 9已否决

    预注册

    机制
    Shared exposure to refining margins.
    门槛
    Cointegration in levels and a stable relationship in returns, out of sample
    终止标准
    No stable relationship in returns

    方案

    数据
    Daily prices and the 3-2-1 crack spread, point-in-time
    样本
    2011–2025
    验证
    Rolling estimation, out-of-sample half
    成本
    Spread + borrow on the short leg

    结果

    已否决伪相关

    The relationship holds in price levels only; in returns it is unstable from window to window.

    缺乏稳定机制的相关性。

    登记
    结束
    · 9 天
    • 预注册
    • 时点数据
    • 已计成本
    • 已统计变体
    链接到 R-0008
  6. R-0007Short-term momentum in currency pairs persists through central-bank meeting weeks.G10 FX · Days · 示例变体 30已否决

    预注册

    机制
    Policy uncertainty delays price discovery around meetings.
    门槛
    Deflated t ≥ 3.0 in every volatility regime
    终止标准
    Effect confined to a single regime

    方案

    数据
    Spot and forwards, meeting calendars as known at the time
    样本
    2010–2025
    验证
    Walk-forward, split by volatility regime
    成本
    Spread + forward points

    结果

    已否决市场状态

    Present in the 2016–2019 windows only and absent in every later window; it fails the impermanence re-test.

    只在一种市场状态下成立。

    登记
    结束
    · 11 天
    • 预注册
    • 时点数据
    • 已计成本
    • 已统计变体
    链接到 R-0007
  7. R-0006The breadth of analyst estimate revisions predicts next-month sector returns.Global sectors · 1 month · 示例变体 41已否决

    预注册

    机制
    Analysts update slowly and in herds, so revisions cluster.
    门槛
    Deflated t ≥ 3.0 net of costs
    终止标准
    Below hurdle after deflation

    方案

    数据
    Point-in-time consensus estimates, sector ETFs
    样本
    2008–2025
    验证
    Walk-forward, 14 windows
    成本
    ETF spread + commissions

    结果

    已否决低于门槛

    Promising before deflation; below the pre-registered hurdle once all 41 variants are counted.

    计入所有变体后不再显著。

    登记
    结束
    · 10 天
    • 预注册
    • 时点数据
    • 已计成本
    • 已统计变体
    链接到 R-0006

结论

已否决
未通过预注册的门槛或有效性检查。连同原因一起记录,绝不改头换面再次检验。
通过 · 重新检验
按每一个变体折减后仍越过门槛。进入独立的重新检验——通过不等于部署。
进行中
已登记,正在检验。门槛与终止标准在第一个窗口运行之前即已固定。

否决原因

前视偏差
使用了当时无法获得的信息。
成本
未能扛住现实的交易成本。
伪相关
缺乏稳定机制的相关性。
市场状态
只在一种市场状态下成立。
低于门槛
计入所有变体后不再显著。

“折减 t”是按尝试过的变体数量调整后的检验统计量。门槛在首次测试之前即已固定。账簿记录的是流程,而非投资结果。

底层架构

刻意保持小巧——只包含今天真正在运行的东西。

  • Go

    一个小巧的 Go API

    健康检查与候补名单,基于 Go 标准库编写,置于限流与边缘代理之后。

  • Postgres

    Postgres,版本化管理

    数据库迁移纳入版本控制;目前它只存储候补名单。

  • Next.js

    快速、无障碍的 Web 层

    Next.js 页面以五种语言预渲染,经由同一个边缘提供服务,每个交互都可通过键盘完成。

系统 · 实际部署简化
ClientbrowserEdgenginx · tunnelWebNext.js · SSRAPIGo · net/httpStorePostgres · pgx

关注实验室

从原点出发,用数据证明。

留下邮箱:有新的运行记录发布以及实验室开放早期访问时,我们会通知你。不发垃圾邮件,不做预测,不承诺收益。

你的邮箱仅用于就早期访问与你联系。不发垃圾邮件,可随时退订。

实验室发布的是研究流程,而非投资结果。此处任何内容均不构成推荐或要约。