Research notes研究笔记

Quant Notes量化学习笔记

Learning in public: what a low-frequency quant research program on China A-shares actually teaches you — factor by factor, backtest by backtest. Updated as the research continues.公开学习:一个针对中国A股的低频量化研究项目到底教会了我们什么——一个因子一个因子、一轮回测一轮回测地记录。研究继续,笔记持续更新。

21 lessons so far已完成 21 课 Market: China A-shares市场:中国A股 Style: low-frequency only风格:只做低频
LESSON 22

Drawdown Discipline: When to Pause a Strategy — and When to Hold On回撤期纪律

NEW最新2026-10-25
Core idea核心思想The hardest question in a drawdown is not "how much have we lost" but "is this normal volatility or a dead edge" — and short-term performance almost cannot answer it. So the trigger lines must be written before the drawdown arrives: downgrade first, diagnose second, decide last — never decide by feel inside the drawdown.回撤期最难的判断不是"亏了多少",而是"亏的是正常波动还是逻辑已死"——短期业绩本身几乎回答不了这个问题。所以触发线必须在回撤到来之前写好:先降权、查原因、再决定停不停,而不是在回撤里凭感觉拍板。
  • Two numbers, and duration hurts more. Depth = the fall from the high-water mark; underwater duration = the time from breaking the old high to printing a new one. Most people can quote their worst depth but not their longest underwater stretch — yet strategies are usually abandoned after months without a new high, not on the worst day. Recovery is asymmetric: lose 10% → need +11.1%; lose 20% → +25%; lose 30% → +42.9%; lose 50% → +100%. Controlling depth beats chasing recovery.两个数,时长更折磨人。深度是从前期高点到随后低点的跌幅;水下期是从跌破前高到重新创新高的时间。多数人能说出最深亏多少,却说不出最长水下多久——而放弃策略往往发生在"几个月不见新高"之后,不是最深的那一天。恢复是非对称的:亏 10% 需涨 11.1%,亏 20% 需涨 25%,亏 30% 需涨 42.9%,亏 50% 需涨 100%。控制深度比事后追回重要得多。
  • Depth is chosen, not given: position size decides drawdown. 60,000 simulations (CalculatorAI; 45% win rate, 1.5 payoff): same strategy, only per-trade risk changed — typical worst drawdown rises from 5.9% at 0.5% risk per trade to 11.7% at 1%, 22.5% at 2%, 32.2% at 3%, 49.2% at 5% 🟡 (simulated, not A-share evidence — the direction transfers). Corollary: complaining about drawdown afterwards is usually complaining about the size chosen beforehand; averaging down in drawdown looks good at the median and is fatal in the tail — halving risk underwater costs ~5pp of median return but cuts the 1%-tail worst drawdown from 26.6% to 18.8%.深度是你选的,不是市场给的:仓位决定回撤。6 万次模拟(CalculatorAI,胜率 45%、盈亏比 1.5):同一策略只改每笔风险,典型最差回撤从每笔 0.5% 时的 5.9%、1% 时的 11.7%、2% 时的 22.5%,一路升到 3% 时的 32.2%、5% 时的 49.2% 🟡(模拟数非 A 股实证,方向性结论可迁移)。推论:事后抱怨"回撤太大"往往是在抱怨事前定的仓位;回撤期加仓摊平在中位数上好看、在尾部上致命——"水下减半风险"规则以约 5 个百分点的中位数收益为代价,把 1% 概率的最差回撤从 26.6% 压到 18.8%。
  • Why short-term results cannot judge "dead or alive": the signal-to-noise ratio is too low. A true 10%-annual / 20%-vol strategy drifts 0.04%/day against 1.26% daily noise — signal is ~1/30 of noise (Robot Wealth via IBKR Campus). If its true edge drops to zero, a Welch t-test of 5 years vs 1 month gives p = 0.12; doubling the sample to 2 months still gives p ≈ 0.06. Worse: the "dead" strategy printed +7.5% in its death month (+1.3σ, nothing unusual) — in 3,000 simulations, 16% of dead months beat 80% of historical months. The right question is not binary ("is the edge dead?") but probabilistic ("given recent evidence, how much do I still believe it?") — Bayesian downgrading, not binary panic.为什么短期业绩判不了"逻辑死没死":信噪比太低。一个真实年化 10%、波动 20% 的策略,日均漂移仅 0.04%,日噪声约 1.26%——信号是噪声的约 1/30(Robot Wealth,经 IBKR Campus 转载)。假设某个月起真实期望收益归零,用 5 年历史 vs 1 个月做 Welch t 检验,p 值 0.12、不显著;样本翻倍到 2 个月,p 值仍约 0.06。更反直觉:那个"已死"的策略在归零的那个月里录得 +7.5%(+1.3σ,并不罕见),3000 次模拟中 16% 的归零月份跑赢历史 80% 以上的月份。正确的提问不是二元的"逻辑死了吗?",而是概率的"给定最近证据,我现在还信它几分?"——贝叶斯式降权,而非二元式恐慌。
  • Four signals, three steps, and the sample-size iron rule. Normal drawdown vs decay (SignalDeck): rolling win rate near baseline vs 2+ windows sliding 10–15pp below it; SQN in the healthy zone (above ~2.0) vs persistently below ~1.6 🟡; average loss near design (−1.0R) vs ballooning (−1.5R); average win holding its R-multiple vs shrinking (+2.2R → +1.4R). One signal = watch; two or more deteriorating together = downgrade. Under 30 trades no "dead" verdict is a guess — at monthly frequency we translate trade counts into rolling 12M/24M windows and watch relative drawdown vs the benchmark, not absolute alone. What enters our system: S020 filed (tool file, not an engine): a three-band discipline — green hold / yellow halve-and-track / red pause-new-signals — sitting in front of the F2/F7 red lines, with conditional return (paper-track, SQN recovery, minimum-weight validation). Post-lesson calibration (2026-10-26/27): yellow lines set at relative drawdown > 15% / relative underwater > 18 months 🟡, and the Monte Carlo P95 is reported as an interval across reshuffle methods (block-12 reshuffling discarded — too few blocks collapse the distribution). Cross-family completion (2026-11-01/02): the same yellow lines re-run on S009 and S010-B — yellow-month share 28.0% / 22.6% vs ~16% for the S005 family; relative-drawdown P95 intervals 40.74%–42.21% / 38.86%–40.66%, reported per family, not pooled; R24 (3 consecutive months) remains the preferred candidate; thresholds still 🟡, red-line text unchanged. Hard-red evidence scan (2026-11-03, 11 families, monthly sampling): only F7 episodes fired; first closed reinstatement evidence (S016, reinstated 2024-05) and one refusal (S006); Davey never fired at daily or monthly frequency 🟡. Forward hookup dry-run at the October month-end: insufficient sample, no tier judgement. Davey-leg headroom scan (2026-11-05, 11 families): closest approach 1.296× monthly (S010-A, 2024-01) / 1.071× daily (S004, 2022-04-25) — the 1.5× line was never reached; denominators were mostly set in the 2018 crash and are 92–95 months old at sample end 🟡; forward frozen trigger depths tabulated per line (monthly −17.88% to −41.43%); design question still open, no value proposed. Split-line yellow-line calibration (2026-11-06): per-family candidates 🟡 — S005 family unchanged (15%/18 months), S009 17.5%/24 months (17.0%), S010-B 17.5%/18 months (20.0%); min-spread combination (S009 20%/24 months, S010-B 20%/18 months) compresses the alarm-rate spread to ~1.0pp (archive 12.5pp), at the cost of S009's duration leg nearly switching off and S010-B episode fragmentation; single-vs-split choice still for monthly review. Wide-grid yellow-line calibration (2026-11-07): depth grid widened to 25% — nearest per-family solutions unchanged on all four lines 🟡; min-spread combination improves to 0.48pp (from ~1.0pp) but entirely from new boundary cells (depth-interior min spread stays 0.99pp, same combination as 11-06; only 4 in-band combinations reach ≤0.6pp, all using a 22.5%/25% cell; 0.48pp is smaller than one month of sampling noise) and mixes three pure-depth lines with one pure-duration line (S005b 25%/12 months, 83.3% duration-only) — alarm rates match but yellow months mean different things; no further widening; a third question added for monthly review (are leg compositions comparable?). Leg-comparable calibration (2026-11-08): forcing all four lines' yellow months to mean the same thing costs 2.42pp of spread in-band (duration-only share capped at ≤25%, same answer for caps 10%–25%); the 11-06 (~1.0pp) and 11-07 (0.48pp) optima are both void under any cap — the 11-06 combo's duration-only shares span 6.2%–63.2%; a spread-only constraint flips to an all-duration regime (1.47pp) and a floor-only constraint cannot buy comparability (0.95pp, legs still incomparable); the nearest solution holds for only two of four lines under cap 20%; a fourth question added for monthly review: does the yellow line mean 'deep drawdown' or 'long underwater'? Which-leg decision support (2026-11-09): the two legs' median forward-12M relative returns are close (depth +10.9% vs duration +10.5%) but 12M recovery rates differ sharply (33% vs 100%) 🟡 — and the legs live in different eras (83% of depth months in 2025–2026, all duration months in 2018–2022), so leg and era cannot be separated; 88.5% of yellow months fall in benchmark bull markets (the yellow line is a 'lagging a rising benchmark' alarm); a two-tier blend rule (deep alone, or moderate depth plus long underwater) yields the first combination with both legs alive and in-band spread 0.74pp 🟡, but 0.74pp is below one month of sampling noise and the assisted clause is a compound leg, not the pure duration leg — a fifth question for monthly review (whether to list the blend rule as a candidate). Blend-rule assisted-discount sensitivity (2026-11-10): discount 1/3 has no solution (the assisted clause fires too easily, all four lines exceed the 20% ceiling, S010-B has zero usable cells), 1/2 survives unchanged at 0.74pp (the same combination as 11-09, independently reproduced), 2/3 works but S009 sits on the 20% boundary cell (0.97pp) 🟡; under the blend rule the two legs' median forward-12M relative returns stay close (deep +11.4% vs assisted +10.3%) but bear-market coverage drops to 1 month (from 4 under the archive line); episode review: 9 of 10 closed episodes later reached a new relative high, the one miss is a cut artefact (S005b 2025-09–2025-10) — the fragment migrated from S010-B to S005b, Fine discount sweep (2026-11-11): 11 discount points 0.30–0.70 — the feasible region is two islands with a hole (island one [0.45, 0.55], min spread 0.74pp at 1/2; no solution at 0.60; island two [0.65, 0.70], min spread 0.97pp at 2/3) 🟡; 1/2 is the only discount meeting all three (feasible, no 20% boundary leg, the 11-09 combination is itself the min-spread combination), but the spread gaps are within one month of sampling noise; the S005-family legs are discount-invariant; bear-market coverage falls monotonically with the discount, 4 → 0 months, and no discount gets both 'in-band' and 'full bear coverage'; Ulcer-index cross-check (descriptive): S009 deepest pain (12.77pp) vs S010-B longest pain (81.7% of months underwater). Narrow-band calibration (2026-11-12): under the 15–18% band island one is entirely dead (no feasible combination at f ≤ 0.60); only island two survives (f ∈ [0.65, 0.70], same combination, spreads 1.50/0.97/1.82pp) and only via a 20% boundary leg on S009 with all four legs on the 12-month duration edge, bear coverage 0; the f=1/2 valley inverts (band-only closest miss 0.74pp → 1.86pp, worst of the 11 points), so '1/2 is cleanest' is a wide-band-only conclusion; the 11-09 combination survives under the narrow band at no discount; absolute Ulcer ranking flips — S009 is the least painful in absolute terms (3.52pp, absolute max drawdown only −11.92%) while S010-B stays most painful (8.91pp) 🟡. Narrow-band island-two forward review (2026-11-13): the deep leg is identical across all three discounts (median forward-12M relative return +11.9%, 46% recovered within 12M — the same months as the 11-10 wide-band combination), the assisted leg recovers 100% but on only 10–12 months, all in 2018–2022; bear-market coverage is 0; episode review: 6 of 7 closed episodes later reached a new relative high, the one miss is still the S005b 2025-09–2025-10 cut artefact; and the OR-rule leg mix at the same cells shows duration-only shares of 28.6%–59.0% while the blend rule's assisted leg is only 11.1%–17.6% 🟡. Duration-grid extension downward to 6/9 months (2026-11-14): island one revives under the narrow band at f=1/2 only (1.47pp, via S010-B's 9-month interior cell — not a boundary artefact); island two migrates to 6/9-month cells (same 0.97pp at f=2/3, 1.82pp → 0.97pp at f=0.70 via three 6-month edge legs); the wide-band feasible optimum is still the 11-09 combination at 0.74pp, all other improvements are sub-noise and edge-driven; assisted shares reach 37.5% (S010-B's 9-month cell is 73.3% duration-only under OR, but the blend assisted leg is only 36.8%) — duration flavour is thicker, the depth condition still eats about half; bear coverage is still 0 and S009 is still the bottleneck (at most one narrow+assisted cell per discount, zero at 6/9 months) 🟡. OR-rule duration-grid extension downward to 6/9 months (2026-11-15): the nearest solutions are unchanged on all four lines, the in-band min spread is still 0.48pp with the identical 11-07 combination, and every leg-comparability answer is preserved (cap cost 2.42pp, spread-flip 1.47pp, floor 0.48pp/0.95pp, band 2.42pp); the new unconstrained low of 0.43pp sits outside the band (all four shares near 29%) and buys nothing; the duration coordinate's grip extends to 6 months — at 15% depth the duration-only share is 48.8%–73.3% at 6 months vs 0.0%–9.1% at 24 months 🟡; S020 revived f=1/2 and migrated island-two forward review (2026-11-16): the deep leg is identical across the four island-two combinations (median forward-12M relative return +11.9%, 46% recovered within 12M), the revived combination's deep leg has only 8 months of forward data (S005 has none, all its deep months are in 2025–2026) so its +7.5%/37.5% is a sample-composition shadow; assisted-leg recovery is 83.3%–100% and the gaps between combinations are just 1–3 months changing hands (S010-B 2018-01, 2017-10, S005b 2021-01, the thinnest edge 0.003pp), and the unrecovered assisted months still earned positive forward returns (+3.2% to +8.5%); bear coverage is 0 in all five combinations; episode review 8/10, 7/8, 8/9, 6/7, 7/8, with a second cut artefact on S010-B in the revived combination; under OR the 6-month cells explode (S010-B 15%/6 months: 52.2% yellow, 73.3% duration-only) while the blend assisted leg is only 20% 🟡.四组信号、三步流程、样本量铁律。正常回撤 vs 逻辑衰减(SignalDeck 框架):滚动胜率在基线附近噪声波动 vs 连续 2 个窗口下行偏离 10–15 个百分点;SQN 在健康区间(约 2.0 以上)vs 持续跌破 1.6 一带 🟡;平均亏损干净接近设计值(−1.0R)vs 变大(−1.5R);平均盈利与历史 R 倍数一致 vs 缩水(+2.2R → +1.4R)。单信号报警、双信号降权。30 笔以下任何"死了"的结论都是猜——月度低频下换算为滚动 12 个月/24 个月窗口,且相对基准的回撤比绝对回撤更重要。进我们系统的:S020 已立项(工具类档案,不是发动机):三档纪律——绿坚持/黄减半跟踪/红暂停采纳——挂在 F2/F7 红线之前,复岗有条件(纸上跟踪 + 滚动指标回升 + 最小权重验证)。课后校准(2026-10-26/27):黄线定为相对回撤 > 15% / 相对水下 > 18 个月 🟡;蒙特卡洛 P95 改报整段与分块重排的区间(block12 重排法废弃——块数太少导致分布塌缩)。三家族复算完成(2026-11-01/02):同一黄线在 S009 与 S010-B 上重算,黄档月占比 28.0% / 22.6%,高于 S005 家族的约 16%;相对回撤 P95 区间分别为 40.74%–42.21% / 38.86%–40.66%,按家族分报、不混报;R24(持续 3 个月)仍为首选候选;阈值仍标 🟡,红线原文未改。硬红线全家族扫描(2026-11-03,11 个家族,月度口径):仅 F7 触发,首条闭合复岗证据(S016,2024-05 复岗)与一条拒绝复岗对照(S006);Davey 在日频与月频下均未触发 🟡。前瞻挂接 10 月末干跑:样本不足、不判三档。Davey 腿接近度扫描(2026-11-05,11 个家族):月度最接近 1.296 倍(S010-A,2024-01)/ 日频 1.071 倍(S004,2022-04-25),1.5 倍线从未触及;多数家族的分母定于 2018 年暴跌、样本末已 92–95 个月 🟡;前瞻冻结触发深度已按线列表(月度 −17.88% 至 −41.43%),设计问题仍未决、不提议改值。分线制黄线建议值校准(2026-11-06):各家族候选值 🟡——S005 家族不动(15%/18 个月)、S009 17.5%/24 个月(17.0%)、S010-B 17.5%/18 个月(20.0%);最小极差组合(S009 20%/24 个月、S010-B 20%/18 个月)把报警率极差压到约 1.0pp(档案值 12.5pp),代价是 S009 时长腿名存实亡、S010-B 段被切碎;单线/分线选择仍待月度复盘。宽网格黄线校准(2026-11-07):深度网格扩至 25%,最近解四线全不动 🟡;最小极差从约 1.0pp 压到 0.48pp,但改善全来自新边界格(深度内格最小极差仍是 0.99pp 且组合与 11-06 相同;带内且极差 ≤0.6pp 的组合仅 4 个且全用 22.5%/25% 格;0.48pp 小于一个月采样噪声),新最优组合是三条纯深度线配一条纯时长线(S005b 25%/12 个月时长-only 占 83.3%),报警率压齐了、黄档含义却不可比;扩网格到此为止,月度复盘选边新增第三个问题(腿构成是否可比)。腿构成可比约束校准(2026-11-08):强制四条线的黄档指同一类事件,带内最小极差要付出 2.42pp(时长-only 占比上限 ≤25%,cap 10%~25% 同解);11-06 的约 1.0pp 与 11-07 的 0.48pp 两组最优组合在任何 cap 下同时作废——11-06 组合的时长-only 占比跨度 6.2%~63.2%;只约束离散会滑向全时长腿(1.47pp),只设下限买不到可比(0.95pp,腿仍不可比);最近解在 cap 20% 下只稳一半;月度复盘新增第四个问题:黄线到底指"跌得深"还是"趴得久"?两条腿决策支撑校准(2026-11-09):前瞻12个月相对收益中位数两条腿相近(深度腿 +10.9% vs 时长腿 +10.5%),但12个月内复岗率差得远(33% vs 100%)🟡——且两条腿分处不同时代(深度腿 83% 在 2025–2026 年、时长腿全在 2018–2022 年),腿与时代分不开;黄档月 88.5% 在基准牛市(黄线是"跑输上涨基准"的警报);两档混合规则下首次出现两条腿同时活着且带内极差 0.74pp 的组合 🟡,但 0.74pp 小于一个月采样噪声、辅助条款是复合腿而非纯时长腿;月度复盘新增第五个问题(是否把混合规则列为候选)。混合规则辅助折扣敏感性校准(2026-11-10):折扣 1/3 无解(辅助条款太容易触发、四线份额全超 20% 上限,S010-B 零可用格)、1/2 原样存活 0.74pp(与 11-09 同一组数、独立复现)、2/3 有解但 S009 一腿踩 20% 边界格(0.97pp)🟡;混合规则下两条腿前瞻 12 个月相对收益中位数仍相近(深跌腿 +11.4% vs 辅助腿 +10.3%),熊市覆盖从档案线的 4 个月丢到 1 个月;段结局闭合 10 段、9 段随后创相对新高,唯一未创为切碎 artifact(S005b 2025-09~2025-10)——碎片从 S010-B 迁到 S005b,折扣细扫(2026-11-11):11 个折扣点 0.30~0.70,可行域为两岛一洞(岛一 [0.45, 0.55]、最小极差 0.74pp 在 1/2 处;0.60 无解;岛二 [0.65, 0.70]、最小极差 0.97pp 在 2/3 处)🟡;1/2 是唯一同时满足三条的折扣(可行、不踩 20% 边界格、11-09 组合即最小极差组合),但极差之差在一个月采样噪声之内;S005 家族两腿对折扣不敏感;熊市覆盖随折扣单调递减 4→0 个月,没有折扣能同时拿到"带内"与"熊市全覆盖";Ulcer 指数对照(描述性):S009 深痛(12.77pp)vs S010-B 久痛(水下占比 81.7%)。窄带校准(2026-11-12):窄带(15–18%)下岛一全灭(f ≤ 0.60 无可行组合),仅岛二 f ∈ [0.65, 0.70] 存活且三点共用同一组合(极差 1.50/0.97/1.82pp),S009 一腿踩 20% 深度边界格、四腿全在 12 个月时长边格、熊市覆盖 0;1/2 的谷底在窄带下翻转(仅带内最接近错失 0.74pp→1.86pp,11 点最差),"1/2 最干净"只是宽带下的结论;11-09 组合在窄带下任何折扣都不存活;绝对 Ulcer 排名翻转——S009 绝对最不痛(3.52pp,绝对最大回撤仅 −11.92%),S010-B 绝对仍最痛(8.91pp)🟡。窄带岛二组合前瞻/段结局复核(2026-11-13):深跌腿三折扣逐数相同(前瞻 12 个月相对收益中位数 +11.9%、12M 内复岗 46%,与 11-10 宽带组合同一组数),辅助腿复岗 100% 但仅 10–12 个月且全在 2018–2022 年;熊市覆盖 0;段结局 7 段闭合、6 段随后创相对新高,唯一未创仍是 S005b 切碎段;OR 腿构成对照:同格 OR 时长-only 占黄档 28.6%~59.0%,混合规则辅助腿只占 11.1%~17.6%🟡。时长网格下探(6/9 个月)校准(2026-11-14):岛一仅在 f=1/2 处以 1.47pp 在窄带下复活(S010-B 17.5%/9 个月内格、不是边界 artifact),岛二向 6/9 个月迁移(f=2/3 同极差 0.97pp、f=0.70 从 1.82pp 压到 0.97pp 全靠三条 6 个月边格);宽带可行最优仍是 11-09 组合 0.74pp,其余改善全在 6/9 个月格且全部小于一个月采样噪声;辅助占比最高 37.5%(S010-B 的 9 个月格 OR 时长-only 73.3%,混合规则辅助腿只 36.8%)——时长味回来了一些,深度条件仍吃掉约一半;熊市覆盖仍是 0,S009 仍是瓶颈(窄带+辅助合规格子每折扣至多 1 个、6/9 个月格 0 个)🟡。OR 规则时长网格下探(6/9 个月)校准(2026-11-15):最近解四线全不动,带内最小极差仍是 0.48pp、组合与 11-07 逐格相同,可比约束答案全数原样保留(cap 代价 2.42pp、离散翻面 1.47pp、下限 0.48pp/0.95pp、带约束 2.42pp);无约束新低 0.43pp 是带外数字(四线份额全在 29% 附近);时长坐标的单手决定权延伸到 6 个月——档案深度 15% 下时长-only 占比 6 个月时 48.8%~73.3%、24 个月时 0.0%~9.1% 🟡;S020 f=1/2 复活组合与岛二迁移组合前瞻/段结局复核(2026-11-16):深跌腿四组逐数相同(前瞻 12 个月相对收益中位数 +11.9%、12M 内复岗 46%),复活组合的深跌腿只有 8 个月有前瞻数据(S005 全在 2025–2026 年,0 个)、中位数 +7.5%/复岗 37.5% 是样本构成的影子;辅助腿复岗 83.3%~100%,组间差异即 1–3 个月份归属(S010-B 2018-01、2017-10、S005b 2021-01,刀锋薄至 0.003pp),未复岗的辅助月前瞻收益仍为正(+3.2%~+8.5%);熊市覆盖五组全是 0;段结局 A 8/10、B 7/8、C 8/9、D 6/7、E 7/8,A 多一处 S010-B 切碎段;OR 对照下 6 个月格份额爆炸(S010-B 15%/6 个月 52.2%、时长-only 73.3%),混合规则辅助腿只剩 20% 🟡。
LESSON 21

Attribution Analysis: Brinson Decomposition — Where Did the Excess Return Come From?归因分析

2026-10-24
Core idea核心思想Excess return should never be reported as a single number. Brinson splits one period's excess into exactly three pieces — whether the industry bets were right (allocation), whether the stocks picked inside industries were right (selection), and the overlap of the two (interaction) — and the three pieces sum exactly to the excess.超额收益不能只看赚了多少,要拆开看赚在哪里——Brinson 把单期超额收益精确拆成三块:配对了行业没有(配置效应)、行业内选对了股票没有(选股效应)、以及两者叠加的交叉部分(交互效应),三块加起来正好等于超额收益。
  • The BF formulas, and why the identity check comes first. Allocation = Σ (wp,j − wB,j) × (RB,j − RB): overweighting an industry that beat the benchmark (or underweighting one that lagged) scores positive — "same sign scores". Selection = Σ wB,j × (Rp,j − RB,j), deliberately on benchmark weights so selection is cleanly separated from allocation. Interaction = Σ (wp,j − wB,j) × (Rp,j − RB,j): the joint effect of betting and picking together. Rp − RB = allocation + selection + interaction, exactly — if the identity does not reconcile, the weights, classification, or convention are wrong; do not interpret hard.BF 三效应公式,先验恒等式。配置效应 = Σ (wp,j − wB,j) × (RB,j − RB):超配跑赢基准的行业、低配跑输基准的行业为正,口诀"同号为正"。选股效应 = Σ wB,j × (Rp,j − RB,j),刻意用基准权重,把选股与配置干净分开。交互效应 = Σ (wp,j − wB,j) × (Rp,j − RB,j):配置与选股同时作用的交叉部分。恒等式:Rp − RB = 配置 + 选股 + 交互,三块加起来不多不少正好等于超额收益——算完先验恒等式,对不上就是权重、分类或口径错了,不要硬解释。
  • BHB vs BF: only one of them calls a win a win. The 1986 BHB allocation term uses the industry's absolute benchmark return, so overweighting an industry that "rose but lagged the market" still prints a positive allocation effect — rising is not the same as being right. BF (1985) uses the industry's return relative to the benchmark, so only overweighting winners / underweighting losers counts. Practitioners (FactSet, Bloomberg PORT, Morningstar Direct) mostly use BF. The two models share selection and interaction formulas and the same total excess — but never put a BHB allocation number and a BF allocation number in the same table.BHB 与 BF:只差配置效应的基准线。BHB(1986)配置效应 = Σ (wp,j − wB,j) × RB,j,用行业基准收益的绝对值做基准——超配一个"涨了但没跑赢大盘"的行业也会算出正配置效应,涨了≠配对了,这是误导性读数。BF(1985)用行业相对基准的超额收益做基准,只有"超配跑赢者/低配跑输者"才算正,解读直观,实务主流(FactSet、Bloomberg PORT、Morningstar Direct)以 BF 为主。两模型选股、交互公式相同,总超额相同——绝不要把 A 系统的 BHB 配置数与 B 系统的 BF 配置数放在一张表里比。
  • Interaction, arithmetic vs geometric, and the linking trap. Three schools for the interaction term: list it separately (this lesson and S019 — least information loss), fold it into selection (common at institutions — interaction is not an independent decision), or split it pro-rata (complex, and the split rule is itself an assumption — not recommended first). Pick one and stay consistent for the whole report. Arithmetic attribution (Rp − RB) is intuitive but cannot be added across periods; geometric attribution ((1+Rp)/(1+RB) − 1) links across periods but reads less intuitively. Monthly effects must be linked (Carino, Menchero, GRAP) before they are summed into quarters — adding three monthly allocation effects directly is the most common error this lesson names.交互效应三派、算术与几何、多期链接陷阱。交互效应三派做法:单列(本课与 S019 采用,信息损失最小)、并入选股(不少机构做法,交互不是独立决策)、按比例分摊(实现复杂且分摊规则本身就是假设,不推荐第一版)。选一种并全程一致。算术归因(Rp − RB)直观但多期不能直接相加;几何归因((1+Rp)/(1+RB) − 1)考虑复利、多期可链接,但单期解读不如算术直观。月度效应拼成季度/年度必须用链接方法(Carino、Menchero、GRAP)缩放后再加总——直接把 3 个月配置效应相加,是本课点名最常见的错误之一。
  • A-share fit, and what enters our system: S019 filed. Monthly rebalancing matches Brinson's single-period assumption almost exactly; limit-up/down failed fills enlarge the trading/cash-flow residual, which must be disclosed separately, never folded into selection. The biggest subjective input is the industry classification — Tonghuashun vs Shenwan can assign the same stock differently, so S019 freezes the Tonghuashun classification (same as Lesson 12) and labels it in every report. With only 4 holdings in the real portfolio, Brinson degenerates (selection ≈ single-stock effect) — its home is 30–50-stock strategy books and the forward paper portfolios. S019 filed (tool file, like S003): strategy checkups ("is this self-declared stock-picker actually making industry bets?"), cross-validation with S003 factor attribution, a monthly Brinson page attached to forward-portfolio reviews, and an industry version of the F5 single-dependency check.A 股适配与进系统:S019 已立项。月度调仓与 Brinson 单期假设天然贴合;涨跌停调仓失败放大残差,必须单独列示、按第 18 课成本建模口径解释,不能悄悄并入选股效应。行业分类口径是最大主观项(同花顺与申万对同一只股票归属可能不同),S019 第一版冻结为同花顺行业口径(与第 12 课同一口径)并在报告中标注来源。老板真实持仓仅 4 只时 Brinson 会退化(选股效应 ≈ 个股效应),主战场是 30–50 只的策略组合与纸组合。进我们系统的:S019 工具类档案(与 S003 同类:镜子不是发动机):策略体检、与 S003 双归因交叉验证、前瞻纸组合月度复盘附件、F5 的行业版单依赖度检查;不用于 4 只持仓的月度归因汇报,不作调仓依据。
LESSON 20

Overfitting & Out-of-Sample Testing: PBO, DSR & Walk-Forward — Making "Trustworthy" Computable过拟合与样本外检验

2026-10-23
Core idea核心思想A beautiful backtest curve proves nothing — overfitting is a property of the research process (how many times you tried, how often the test set was reused), not of strategy complexity. Bailey, Borwein, López de Prado & Zhu (2017) turned it into a computable probability: PBO, the probability that the in-sample champion falls below the median out of sample.回测曲线再漂亮也不证明策略有效——过拟合是个"研究过程"问题(你试了多少次、测试集被复用了多少次),而不是策略复杂度问题;Bailey, Borwein, López de Prado & Zhu(2017)的 PBO(Probability of Backtest Overfitting)把这个问题变成了一个可计算的概率。
  • Four measures, four jobs. PSR (Probabilistic Sharpe Ratio): is one strategy's Sharpe statistically significant (PSR > 0.95 = 95% confidence) — for when you tested exactly one. DSR (Deflated Sharpe Ratio): after testing N strategies and picking the best, is the best real or luck — it discounts the reported Sharpe by trial count, variance, skewness, and kurtosis; DSR < 0.95 flags overfitting suspicion and is our F9 review trigger (a review trigger since 2026-10-26, not a veto). PBO: the probability the in-sample champion lands below the out-of-sample median, computed by CSCV (Combinatorially Symmetric Cross-Validation) — PBO > 0.5 means the backtest is mostly curve-fitting; practitioners treat > 0.2–0.3 as fragile 🟡. WFE (Walk-Forward Efficiency): average out-of-sample return ÷ average in-sample return — > 70% strong generalization, 50–70% acceptable with monitoring, < 50% probably overfit.四个度量、四种分工。PSR(Probabilistic Sharpe Ratio):单个策略的 Sharpe 是否统计显著(> 0.95 = 95% 置信)——只测过一个策略时用。DSR(Deflated Sharpe Ratio):测过 N 个策略挑出最优者后,最优者的 Sharpe 是真显著还是运气——按试验次数、方差、偏度、峰度打折;DSR < 0.95 判过拟合嫌疑,是我们的 F9 复核触发线(2026-10-26 起降格为复核触发线,不再一票否决)。PBO:样本内最优者在样本外排到中位数以下的概率,用 CSCV(Combinatorially Symmetric Cross-Validation,时间切 S 块、所有等半组合划分样本内/外)计算——PBO > 0.5 基本是曲线拟合,实务上 > 0.2–0.3 即判脆弱 🟡。WFE(Walk-Forward Efficiency):平均样本外收益 ÷ 平均样本内收益——> 70% 强泛化、50–70% 可接受+监控、< 50% 大概率过拟合。
  • The famous numbers. Zero-skill strategies, 45 parameter tries: a phantom in-sample Sharpe of 2.0 is almost guaranteed (Bailey et al. 2014) — the mathematical reason the trial register must count N. On a pure random walk, a seasonal search prints in-sample Sharpe ratios of 1.0–2.2 yet CSCV judges PBO = 55% with 53% of out-of-sample Sharpe ratios negative; plant a real 0.25σ monthly effect and PBO collapses to single digits. And the McLean–Pontiff decay (Lesson 19's echo): 97 published patterns fall from 0.582%/month in-sample to 0.402% pre-publication (−26%, pure overfitting) and 0.264% after publication (−58%, crowding).名场面数字。零真技能的策略试 45 个参数组合,就能找到一个样本内 Sharpe = 2.0 的幻影(Bailey 等,2014)——这是试验登记簿必须计数的数学理由。随机游走价格序列上搜季节策略,样本内 Sharpe 全在 1.0–2.2 之间漂亮至极,但 CSCV 判 PBO = 55%、53% 的样本外 Sharpe 为负;真的植入季度 0.25σ 月度效应后,PBO 掉到个位数。McLean-Pontiff 衰减(第 19 课呼应):97 个已发表模式研究期内月收益 0.582% → 发表前 0.402%(掉 26%,纯过拟合)→ 发表后 0.264%(再掉 58%,拥挤效应)。
  • The five most common overfitting paths. (1) Searching too many parameter combinations — a strong strategy shows a parameter plateau, not an isolated peak: 49/201 beautiful while 48/201, 50/201, 49/200 all collapse means the 49/201 is noise. (2) Reusing the test set — train → test → tweak → retest the same stretch: no single tweak feels like cheating, but the test set has quietly become part of the research process ("gradual contamination"). (3) Shuffling financial time series — ML-style k-fold assumes shuffleable samples; financial data has time order, serial correlation, regime shifts, and overlapping labels. Random k-fold is banned; cut by time only. (4) Ignoring trading frictions — a signal that vanishes after real costs was never real; deliberately worsen the assumptions (double the slippage, delay fills, drop the best trade) and see if the strategy still stands. (5) Tuning on a single market regime — a bull-market discovery may be long-beta in disguise.五种最常见的过拟合路径。(1)搜太多参数组合:强策略的特征是参数平原而非孤立峰值——49/201 漂亮而 48/201、50/201、49/200 全塌,这个 49/201 就是噪音。(2)复用测试集:训练→测试不满意→改策略→再测同一段,没有一次改动感觉像作弊,但测试集早已成为研究过程的一部分("逐渐污染")。(3)随机打乱金融时间序列:ML 式 k-fold 假设样本可洗牌,金融数据有时间顺序、序列相关、机制切换、重叠标签——禁止随机 k-fold,只能按时间切。(4)忽略交易摩擦:加真实成本后信号消失;好的稳健性测试是故意把假设调坏一点(滑点加倍、成交延迟、去掉最好的一笔交易)再看策略还能不能站住。(5)只调一种市场状态:牛市发现的策略可能只是穿了马甲的 long-beta。
  • What enters our system: a production-process discipline, not a signal. No standalone S-file (same as Lesson 19: a ruler, not an engine). Absorbed as the anti-overfitting workflow: pre-register the hypothesis before running anything (the trial register gains pre-run hypothesis, training/test windows, and whether the untouched holdout was used — DSR's N is counted from this book); every S-strategy test report carries the mandatory three-piece set — WFE (50%/70% bands, feeding F6) + DSR (N from the register, feeding F9) + a parameter-plateau chart (a report missing any piece is flagged 🟡 incomplete); a genuinely untouched holdout segment (the most recent 1–2 years) is run once after all optimization, then retired on the spot. Low-frequency adaptation: CSCV's textbook 16 blocks are too thin for ~120 monthly signals in 10 years — use 4–6 time blocks with WFE + DSR as the dual test instead 🟡.进我们系统的:研究过程纪律,不是信号。不建独立 S 策略档案(与第 19 课同理:本课是"生产纪律"不是"信号",不产生 alpha)。吸收为防过拟合规范清单:预注册(动手前先写假设、样本空间、成本、指标,DSR 的 N 从试验登记簿里数);每个 S 策略测试报告强制三件套——WFE(50%/70% 两档判读,对接 F6)+ DSR(N 取自登记簿,对接 F9)+ 参数平原图(三件套缺一,测试结论标 🟡 不完整);最终保留段制度(最近 1–2 年数据绝不参与优化,一次性跑完就地退役)。低频适配:CSCV 原版 16 块对月调仓 10 年约 120 个独立信号太碎,改用 4–6 个时间块、WFE + DSR 双判据 🟡。
LESSON 19

Backtest Statistics: How to Read Sharpe, Max Drawdown & Win Rate — Fear Forecasts Better Than Return回测统计学

2026-10-22
Core idea核心思想Backtests forecast fear (volatility, drawdown) far better than they forecast return. Across 888 Quantopian strategies, in-sample Sharpe explained under 2.5% (R²) of out-of-sample performance, while volatility explained 67% and maximum drawdown 34%. Read a backtest report as a portfolio plus a discount — never as one pretty number.回测能预报"恐惧"(波动、回撤),但几乎预报不了"收益"——Quantopian 888 个策略实测,回测夏普对样本外表现的解释力 < 2.5%(R²),而波动率 R² = 0.67、最大回撤 R² = 0.34。读回测报告要看的是"组合 + 折扣",而不是盯着某一个漂亮数字。
  • The reading thresholds. Sharpe (daily, annualized × √252): > 1.0 acceptable, > 2.0 strong — but in-sample > 3.0 is an overfitting alarm, not a bonus. Max drawdown: read three dimensions — depth, duration, recovery time; a deep-and-fast drawdown (two-week recovery) and a shallow-and-long one (8 months of grinding down) are two entirely different kinds of pain. Calmar / CAGR-to-MaxDD punishes only the worst cut, matching a long-only holder's real experience better than Sharpe's symmetric punishment of upside volatility. Profit factor > 1.5 before a strategy is even worth considering live; win rate is meaningless without the average win/loss ratio (80% wins with losses 10× the wins still bleeds to zero); 50–100 trades is the minimum sample — and the sign of expectancy per trade (win rate × avg win − loss rate × avg loss) is the life-or-death line, not the win rate.指标定义与读数门槛。Sharpe(日频年化 ×√252):> 1.0 可接受、> 2.0 强;但样本内 > 3.0 是过拟合警报,不是加分项。最大回撤看三维:幅度、持续时间、修复时间——深而快(两周修复)和浅而长(8 个月阴跌)是两种完全不同的痛苦。Calmar / CAGR-MaxDD 只盯最坏的那一刀,对"只关心资本保全"的多头更贴近真实体验(Sharpe 对上行波动也对称惩罚)。Profit factor > 1.5 才值得考虑实盘;胜率必须和平均盈/亏比一起读(80% 胜率但单笔亏损是盈利的 10 倍,照样稳定亏光);50–100 笔是最低门槛;每笔期望值的正负号才是策略生死的分水岭,与胜率高低无关。
  • The three discount mechanisms. (a) Selection bias: on 5 years of data, trying 45 parameter sets almost guarantees finding an in-sample Sharpe of 1.0 with zero expected out-of-sample Sharpe; Xtin Capital's zero-edge experiment: best-of-10 → 0.68, best-of-45 → 0.98, best-of-1,000 → 1.46, best-of-10,000 → 1.72. On 200 coin-flip markets with 911 moving-average variants each, the champions averaged in-sample Sharpe 0.75 but −0.08 out of sample. (b) Deflated Sharpe: the same Sharpe of 2.0 deflates to ~0.6 after 50 trials — the number is unchanged, the business is completely different; our precise tool is F9 (DSR) plus the trial register's count N. (c) Academic decay: McLean & Pontiff's 97 published patterns fell 26% before publication and another 58% after — the first drop measures overfitting purity, the second measures crowding; Hou, Xue & Zhang's replication audit failed 65% at t = 1.96 🟡, though a family-level re-test put replication back at 82.4% — the size of "decay" itself is a contested methodological question.三大折扣机制。(a)挑选偏差:5 年数据上试 45 个参数,几乎必然能找到一个样本内 Sharpe = 1、但期望样本外 Sharpe = 0 的策略;Xtin Capital 零 edge 自测:最佳 of 10 → 0.68、of 45 → 0.98、of 1000 → 1.46、of 10000 → 1.72。200 个"抛硬币市场"各测 911 个均线交叉变体,冠军样本内平均 Sharpe 0.75,样本外平均 −0.08。(b)Deflated Sharpe:同一个 Sharpe = 2.0,经过 50 次试错后打折到约 0.6——数字没变,生意完全不同;我们的精确工具是 F9(DSR)+ 试验登记簿计数 N。(c)学术衰减:McLean & Pontiff 97 个已发表模式研究期内月收益 0.582% → 发表前 0.402%(掉 26%,纯过拟合)→ 发表后 0.264%(再掉 58%,拥挤效应);Hou, Xue & Zhang 复现审计 65% 过不了 t = 1.96 🟡,但家族视角复测复现率回升到 82.4%——"衰减"本身也是有争议的方法论问题。
  • A-share specifics: limits flatter Sharpe, low frequency widens the error band. Price limits truncate extreme moves, shrinking the σ denominator and inflating Sharpe — cross-check with CAGR/MaxDD for honesty. Monthly rebalancing over 10 years gives ~120 independent signals, so a Sharpe of 1.0 carries a standard error of ~0.1–0.2: the true value may sit anywhere from 0.6 to 1.4 — one reason F9 (DSR) matters more for low-frequency systems than for high-frequency ones. And T+1 plus price limits stretch drawdown recovery times, so the "recovery time" dimension of MaxDD deserves more weight in A-shares than in the US; for a long-only holder, pain-side metrics (MaxDD, CAGR/MaxDD) track the real holding experience better than Sharpe.A 股适用性:涨跌停虚增 Sharpe,低频放大误差带。涨跌停截断了极端波动,分母 σ 被人为压小,Sharpe 虚高——多头策略用 CAGR/MaxDD 辅助校准更老实。低频月调仓 10 年约 120 个独立信号,Sharpe 标准误约 0.1–0.2 量级——Sharpe = 1.0 的低频策略,真实值可能落在 0.6–1.4 之间,这就是 F9(DSR)对低频比对高频更重要的原因。T+1 + 涨跌停拉长回撤修复时间,maxDD 三维里的"修复时间"在 A 股比美股更值得看;只做多头的持仓,痛苦侧指标(maxDD / CAGR-maxDD)比 Sharpe 更贴近真实持有体验。
  • What enters our system: a reading manual, not a signal. No standalone S-file (the Lesson 14/18 precedent: a ruler, not a signal — it produces no alpha but decides whether every S-strategy's net-return figure is trustworthy). Absorbed as the backtest-report reading checklist every S-strategy test report must carry: (1) deflated Sharpe (N from the trial register) + out-of-sample/in-sample Sharpe ratio (the F6 test); (2) CAGR/MaxDD alongside Sharpe, with the pain side winning when they disagree; (3) the sign of per-trade expectancy + trade count (under 50 trades flagged 🟡 insufficient sample); (4) MaxDD in three dimensions + longest underwater period (the F7 test). One counterintuitive decomposition to keep in mind: high-Sharpe groups win not by winning more, but by controlling drawdowns ruthlessly — small drawdowns buy high ratios.进我们系统的:判读规范清单,不是信号。不建独立 S 策略档案(第 14/18 课先例:本课是"量尺"不是"信号",不产生 alpha)。吸收为回测报告判读规范清单——每个 S 策略的测试报告必须带齐:(1)deflate 后 Sharpe(N 取自试验登记簿)+ 样本外/样本内 Sharpe 比(F6 判据);(2)CAGR/MaxDD(辅助 Sharpe,与 Sharpe 分歧时看痛苦侧);(3)每笔期望的正负号 + 笔数(< 50 笔直接标 🟡 样本不足);(4)maxDD 三维(幅度/持续/修复时间)+ 最长水下期(F7 判据)。一个反直觉的利润分解要记住:高 Sharpe 组的优势不是赢得多,而是回撤控得狠——小回撤换来的高比率。
LESSON 18

Transaction Cost Modeling: Commissions, Taxes & Slippage — The Invisible Counterparty交易成本建模

2026-10-21
Core idea核心思想Transaction costs are a strategy's invisible counterparty, in three layers: explicit costs (commissions, taxes, fees — computable exactly), slippage (half-spread + book consumption, moves with liquidity), and impact (your own orders move the price, obeying the square-root law). If these three aren't modeled right in backtest, a beautiful curve is an illusion.交易成本是策略的隐形对手盘。分三层:显性成本(佣金税费,可精确计算)、滑点(半价差+盘口消耗,随流动性起伏)、冲击成本(自己的单子推动价格,服从平方根律)。回测里这三层没建准,漂亮曲线就是幻觉。
  • Three layers, one formula family. Explicit: commissions, stamp duty, transfer fees — deterministic, must be computed exactly. Liquidity: total = ηn(v) + ψn, where ψn is the half-spread (half the bid-ask spread — the standing price of "fill me now"), and ηn(v) = κ·σn·(v/Vn)γ is the variable impact term (v = your volume, Vn = normal volume). Small orders: ψ dominates — the spread itself is the cost. Large orders: η dominates — your own size pushes the price away. Two classic impact shapes: Almgren et al. (2005) (permanent + temporary components, γ=0.314, η=0.142, estimated on US institutional flow 🟡) and the practitioner favorite square-root law: Impact = Y·σ·√(Q/V), Y≈0.3–0.5. Quadruple your size, impact only doubles — splitting orders saves money, but only at square-root scale (ten Q/10 child orders total ~1/3 the impact of one big order).三层,一个公式家族。显性:佣金、印花税、过户费——确定性最高,回测必须精确算。流动性:总成本 = ηn(v) + ψn,其中 ψn = 半价差(买卖价差的一半,"立即成交"的固定代价);ηn(v) = κ·σn·(v/Vn)γ 为可变冲击项(v=本次成交量,Vn=正常成交量)。小单(v/V 小):ψ 主导——价差本身就是成本;大单(v/V 大):η 主导——自己的单子把价格推开。两种经典冲击形态:Almgren 2005(永久冲击+临时冲击,γ=0.314、η=0.142,美股机构单估计 🟡);实战最爱平方根律:Impact = Y·σ·√(Q/V),Y≈0.3–0.5。成交量翻 4 倍,冲击只翻 2 倍——拆单能省钱,但省的是平方根级别(10 笔 Q/10 的子单总冲击约是 1 笔大单的 1/3)。
  • A-shares' #1 cost item isn't slippage — it's failed fills. Our real-brokerage formulas: buy = amount × 0.01% commission (min ¥5) + 0.01% transfer fee; sell adds 0.05% stamp duty. But T+1 plus daily limits make "fill at close" fail outright: buy orders can't fill into limit-up names, sell orders can't exit limit-down ones. Modeling failed rebalances (defer N days or drop the name) is A-shares' first cost item — the main gap between backtest and live trading here is missed trades, not basis points. Add the ¥5 minimum commission: at ¥500k capital spread over 50 names (¥10k each), the ¥5 floor ≈ 0.05% per side — "splitting orders to save impact" and "paying more minimum commissions" has an optimal split point; extremely dispersed strategies must do this math.A股第一成本项不是滑点,是成交失败。实盘费率公式:买入 = 成交额×万1佣金(不足5元按5元)+ 万0.1过户费;卖出再加万5印花税。但 T+1 加涨跌停让"按收盘价成交"直接失效:涨停买不进、跌停卖不出。调仓失败建模(顺延 N 天或剔除)是 A股 特有的第一成本项——这里回测与实盘差距的主因是成交失败,不是几个 bp。再加最低5元佣金:50万资金分散到 50 只(每只1万),每笔佣金下限5元≈0.05%,"拆小单省冲击"和"多交最低佣金"之间存在最优拆单点,极端分散策略要算这笔账。
  • The one-line turnover tax. Annualized cost drag ≈ leverage × annual turnover × round-trip cost (bps) / 10,000. Meaning: the higher the turnover, the bigger the backtest-to-live gap — when a pretty backtest shrinks live, check turnover first. Low-frequency monthly rebalancing (turnover ~2–4×) at 0.3% round-trip drags only ~0.6–1.2%/year; a 20×-turnover strategy at the same rate burns 6% — eating most gross alpha. Corollary: our F8 gate (gross alpha ÷ total double-side cost ≥ 1.5×) is really a turnover budget. And don't forget implementation shortfall: the gap between arrival price (mid-quote when the algo decides) and the volume-weighted execution price, in bps — the true slippage + impact. Backtesting "at close" silently assumes shortfall = 0; that assumption is the most common illusion.一行速算的换手税。年化成本拖累 ≈ 杠杆 × 年换手率 × 单次双边成本(bps) / 10000。含义:换手越高,回测与实盘差距越大——漂亮回测实盘缩水时,先查换手率。低频月度调仓(年换手约 2–4 倍),单次双边 0.3%,年拖累仅约 0.6–1.2%;年化换手 20 倍的策略同样口径年拖累 6%,直接吃掉大部分毛 alpha。推论:F8(毛 alpha ÷ 双边总成本 ≥ 1.5x)本质上是"换手配额"——毛 alpha 给定,能花的成本预算就给定了。还有 implementation shortfall:到达价(算法决策那一刻的中价)与实际成交均价之差(bps,方向调整后)——这就是真实滑点+冲击,是回测里最该对齐实盘的数字。"按收盘价成交"默认 shortfall=0,这是最常见的幻觉来源。
  • What enters our system: a ruler, not a signal. → No standalone S-file: a cost model is a ruler, not a signal — it produces no alpha, but it decides whether every S-strategy's net-return figure is trustworthy (precedent: Lesson 14's "absorbed as methodology"). Absorbed as the backtest-engine cost-modeling upgrade checklist: (1) explicit-cost formulas already exact — keep; (2) unify the limit-up/down failed-rebalance convention (defer vs drop, write it into the test flow); (3) tiered slippage — 0.1% large-cap / 0.15–0.2% mid/small-cap, or upgrade to a dynamic σ·√(Q/V) basis — run the same strategy under both and see if F8 flips (if it flips, the current fixed-0.1% assumption sits on the pass/fail boundary and can't be trusted); (4) calibrate the square-root Y on A-shares (🟡 low priority — our <5% ADV single-trade hard rule already keeps impact small). Cross-check with S018's turnover-constraint group: decompose by layer which cost the constraint actually saves — if it's mostly explicit costs, not impact, Y calibration can wait even longer.进我们系统的:一把尺,不是信号。→ 不建独立策略档案:成本模型是"量尺"不是"信号"——它不产生 alpha,但决定所有 S 策略净收益口径的可信度(参照第 14 课"吸收为方法论"的先例)。吸收为回测引擎成本建模规范升级清单:(1) 显性成本公式化已达标,保持;(2) 涨跌停调仓失败建模口径统一(顺延/剔除二选一,写进测试流程);(3) 滑点分档:大盘 0.1% / 中小盘 0.15–0.2%,或升级为 σ·√(Q/V) 动态口径——两种口径跑同一策略做 A/B,看 F8 判据是否翻转(若翻转,说明现有 0.1% 固定假设在"可测/淘汰"边界上,不可信);(4) 平方根冲击系数 Y 的 A股 校准(🟡 低优先级——单笔 <5% ADV 硬规则已把冲击压在小量级)。与 S018 换手约束组正交验证:用三层分解归因换手约束省的是哪一层——如果省的主要是显性成本而非冲击,Y 校准优先级可再降。
LESSON 17

Portfolio Construction: Weights, Industry Neutrality & Turnover Control — The Last Mile组合构建

2026-10-20
Core idea核心思想The factor decides "who to buy"; portfolio construction decides "how much of each". Same score set, different weighting rules and constraints, wildly different net returns — it is the true watershed between a research signal and a tradable strategy.因子决定"买谁",组合构建决定"每只买多少"。同一批分数,配不同的权重规则和约束,净收益可以天差地别——它是研究信号和可交易策略之间的真正分水岭。
  • Weighting schemes: the MSCI verdict on score-tilt. Five schemes on the same factor: equal-weight, score-weighted, score-tilt (wi ∝ market-capi × scorei), risk-parity, cap-weighted. MSCI (2020, MSCI World 2000–2020) found score-tilt best on all three axes: highest transfer coefficient (weight↔factor-exposure cross-sectional correlation: value 0.45 / quality 0.46 / momentum 0.51), best target-factor exposure, and lowest turnover (~28.7%, in line with cap-weight's 29.2%; equal-weight 47.8%, pure score-weight 46.7%, minimum-correlation 73.4%) — plus the largest capacity (smallest days-to-trade). Hidden cost: equal-weight and inverse-volatility quietly smuggle in small-cap and low-vol exposure regardless of your target factor — check whether you're being paid by the factor or by the free ride.权重规则:MSCI 给 score-tilt 的判分。同一因子配五种权重:等权、分数加权、score-tilt(wi ∝ 市值i × 分数i)、风险平价、市值加权。MSCI(2020,MSCI World 2000–2020)发现 score-tilt 三项最优:传导系数(权重与因子暴露的截面相关)最高(价值 0.45 / 质量 0.46 / 动量 0.51)、目标因子暴露最好、换手率最低(约 28.7%,与市值加权的 29.2% 持平;等权 47.8%、纯分数加权 46.7%、最小相关 73.4%),容量(DTT 最小)也最大。隐性代价:等权和逆波动率会悄悄搭上小市值和低波动暴露——无论你的目标因子是什么。检验策略时先看清:赚的是目标因子的钱,还是搭了便车。
  • Industry neutrality and the two multi-factor routes. Neutralize within industry (rank scores inside each industry, or allocate by benchmark industry weights then weight by score within industry) so industry beta doesn't swallow alpha — an un-neutralized "momentum portfolio" may just be a tech-sector portfolio. Vanguard's practitioner guide offers two multi-factor routes: top-down (mixing) = build one single-factor portfolio per factor, then blend (controllable, flexible, but high turnover); bottom-up (integrating) = score all factors at the stock level once — a weak single factor doesn't force a sell if the combined score is still high (naturally lower turnover, no accidental factor bets). A-share caveat: neutrality only fits cross-sectional stock-picking strategies — for an industry-rotation strategy like S014, neutralizing kills the logic itself.行业中性与两种多因子构建路线。行业内打分排名(每行业取高分股),或按基准行业权重分配、再在行业内按分数加权——别让行业 beta 吞掉 alpha:一个没做中性的"动量组合"可能只是科技行业组合。Vanguard 实战指南两种路线:top-down(mixing)= 每个因子单独做单因子组合再拼装(可控灵活,但换手高);bottom-up(integrating)= 选股层面综合多因子打分,单因子弱但综合分高则不必强制卖出(换手天然更低,也不会不经意押注/做空任一因子)。A 股提示:中性只适用于横截面选股策略——如果是行业轮动策略(S014),中性化会杀掉策略逻辑。
  • Turnover control: the cheapest alpha. Vanguard 1926–2014: a 60/40 portfolio rebalanced monthly (~1,068 rebalances) returned 8.0% annualized vs 8.1% annual (~88 rebalances) — virtually identical gross, and annual wins by 21–28bp after costs. In low-frequency land, rebalancing frequency is a pure cost item. The toolkit: deviation-threshold rebalancing (trade only when weight drifts beyond ±5pp), buy/sell buffer zones (buy top 20%, sell only when it falls out of top 30% — no churn on borderline names), single-name/industry caps, liquidity screens, per-rebalance turnover caps. Our engine's hard rules (≤10% per name, ≤30% per industry, <5% ADV per trade) are construction constraints wearing a "risk control" costume — this lesson upgrades them into testable A/B building rules.换手控制:最便宜的 alpha。Vanguard 1926–2014:60/40 组合月度调仓(约 1068 次)年化 8.0%、年度(约 88 次)年化 8.1%——收益几乎无差异,扣除成本后年度反而优 21–28bp。低频世界里,调仓频率是纯成本项。工具箱:偏离阈值调仓(权重偏离目标超过 ±5pp 才动手)、买卖缓冲区(买入 top 20%、跌出 top 30% 才卖出——边界股票不进出抖动)、单只/行业上限、流动性剔除、单次换手率上限。我们引擎的硬规则(单只 ≤10%、单行业 ≤30%、单笔 <5% ADV)本来就是组合构建约束,只是披着"风控"的外衣——本课把它们升级为可回测的构建规则 A/B。
  • What enters our system: S018 filed. → Filed S018 (un-tested): same selection signal × construction rules in A/B — equal-weight vs score-weighted vs score-tilt; industry-neutral on/off; turnover constraints (calendar monthly vs deviation-threshold + buffer). Judged on net excess return, the F8 cost ratio, and DTT capacity; best carried on the S005 family with the most complete signal records. Methodological absorb: post-construction exposure checks join the strategy test flow (every backtest reports industry/market-cap/factor exposure of the book), and the transfer coefficient becomes a diagnostic for signal-transmission efficiency.进我们系统的:S018 已立项。→ 已立项 S018(未测):同一选股信号 × 构建规则 A/B——等权 vs 分数加权 vs score-tilt;行业中性开/关;换手约束(日历式月度 vs 偏离阈值+缓冲区)。判据:净超额、F8 成本比、DTT 容量;建议载体用信号记录最完整的 S005 系列。吸收为方法论:构建后暴露检验并入策略测试流程(每次回测输出组合的行业/市值/因子暴露分布),传导系数(transfer coefficient)作为"信号传导效率"的诊断指标。
LESSON 16

Position Sizing: Kelly, Fixed Fractional & Volatility Targeting — Survive First仓位管理

2026-10-19
Core idea核心思想Position sizing creates no return — it decides your geometric growth rate and whether you survive. Kelly gives the theoretically optimal long-run compound size; fractional Kelly trades away ~25% of growth to eliminate most of the drawdown risk. Fixed fractional and volatility targeting are the practical, estimation-light versions. All three are second-layer enhancers on top of stock-picking signals, not standalone alpha.仓位管理不创造收益——它决定收益的几何增长率和你能活多久。Kelly 给出长期复利的理论最优仓位;分数 Kelly 用让渡约 25% 的增长率,换掉绝大部分回撤风险。固定分数法和波动率目标是更简单、更少依赖参数估计的实战版本。三者都是选股信号之上的第二层增强器,不是独立的 alpha。
  • The Kelly formula — and why full Kelly is untradable. f* = W − (1−W)/R: win rate minus loss-rate over payoff ratio. 55% win rate, 1.5 payoff → 25% position. Continuous version: f* = (μ−r)/σ², Kelly weight = excess return ÷ variance. The assumptions are all false in practice: true probabilities known, IID returns, no costs, infinite divisibility. Thorp's analytic result is the killer: full Kelly carries a 50% chance of a 50% drawdown; half Kelly keeps ~75% of the growth while cutting that probability to 12.5%. The cardinal rule: betting above Kelly goes to zero, sooner or later.Kelly 公式——以及全 Kelly 为什么没法用。f* = W − (1−W)/R:胜率减去败率除以盈亏比。55% 胜率、1.5 盈亏比 → 25% 仓位。连续版:f* = (μ−r)/σ²,Kelly 权重 = 超额收益 ÷ 方差。隐含假设现实中全不成立:真实概率已知、独立同分布、无成本、仓位无限可分。Thorp 的解析解是致命一击:全 Kelly 有50% 概率遭遇 50% 回撤;半 Kelly 保留约 75% 的增长,回撤概率降到 12.5%。铁律:超过 Kelly 的下注长期必归零。
  • Estimation error is the real enemy in low-frequency A-shares. Kelly is brutally sensitive to parameter error — a small misestimate slides you from "optimal" to "overbet". Our strategies fire only dozens of signals a year, so W/R estimates wobble violently. Fixes: estimate W/R conditional on signal score (an 80-score and a 60-score signal share nothing), Bayesian shrinkage below 30 samples, re-estimate quarterly, and a hard 10% single-name cap (the GemStox practitioner checklist says 5% — we take the stricter). Continuous Kelly on single A-shares prints absurd numbers (μ=15%, σ=50% → 60%; half-Kelly 30% still breaches the cap) → at the single-stock level the cap rules; Kelly's real home is capital allocation across strategies.低频 A 股里真正的敌人是估计误差。Kelly 对参数估计误差极度敏感——错一点点就从"最优"滑向"过度下注"。我们的策略一年只有几十个信号,W/R 估计抖得厉害。对策:按信号分数分档估计 W/R(80 分信号和 60 分信号的胜率完全不同)、30 笔以下样本贝叶斯收缩、每季度重估、单只硬上限 10%(GemStox 实战清单是 5%,取更严者)。连续版 Kelly 在 A 股个股上给出荒谬数字(μ=15%、σ=50% → 60%,半 Kelly 30% 仍超上限)→ 个股层面硬上限说了算,Kelly 的主战场是策略间的资金分配。
  • Fixed fractional and volatility targeting: the estimation-light pair. Fixed fractional: risk a fixed share of equity per trade (1–2%), size = risk ÷ stop distance; losses auto-shrink you, wins auto-compound you. Add losing-streak discipline: cut to 75% after 2 consecutive losses, 50% after 3, pause and review after 5. Volatility targeting: scale the whole book by target ÷ realized volatility (realized 15%, target 10% → factor 0.67, sit on cash); unlevered means the factor caps at 100%. For us it doubles as the quantitative trigger for drawdown discipline (Lesson 22): when realized vol spikes, the scaler cuts size automatically — a monthly rebalance captures most of the benefit. Cost: extra turnover, and V-bounce whipsaw ("just de-risked, then it rips").固定分数法和波动率目标:不依赖估计的一对。固定分数法:每笔风险 = 账户固定比例(1–2%),仓位 = 风险金额 ÷ 止损距离;亏损自动缩仓,盈利自动加仓。配连亏纪律:连亏 2 笔降至 75%、3 笔降至 50%、5 笔暂停复盘。波动率目标:全组合按目标波动率 ÷ 已实现波动率缩放(已实现 15%、目标 10% → 因子 0.67,降仓留现金);无杠杆下因子上限 100%。对我们它还是回撤期纪律(第 22 课)的量化触发器:波动率一飙,缩放因子自动降仓——月度调一次就能捕捉大部分收益。代价:换手增加,V 型反转可能"刚降完仓就反弹"踏空。
  • What enters our system: S017 filed; what we won't touch. → Filed S017 (un-tested): same selection signal × three sizing rules in A/B — equal-weight baseline vs half-Kelly (rolling-window W/R + shrinkage, ≤10% per name) vs volatility targeting (20% annual portfolio-vol target, monthly book-level rescale) — judged on net return, max drawdown, and the F8 cost ratio. New default discipline for all S-strategy files: fixed fractional (≤2% account risk per trade); Kelly only on strategies with ≥50 closed trades. Hard no: full Kelly, levered volatility targeting (one-vote veto for now).进我们系统的:S017 已立项;不碰的。→ 已立项 S017(未测):同一选股信号 × 三种仓位规则 A/B——等权基线 vs 半 Kelly(滚动窗口 W/R + 收缩,单只 ≤10%)vs 波动率目标(组合目标年化 20%,月度调总仓位)——比净收益、最大回撤、F8 成本比。新策略默认仓位纪律写入档案:固定分数法(单笔风险 ≤2% 账户),Kelly 只在 ≥50 笔已平仓样本的策略上启用。一票否决:全 Kelly、加杠杆版波动率目标(现阶段不碰)。
LESSON 15

Event-Driven: Earnings Surprises Drift — Trade the Slow Digestion事件驱动

2026-10-18
Core idea核心思想Make money on the gap between an event and the market finishing digesting it. Of the three calendar events — earnings surprises (PEAD), lock-up expiries, dividends/buybacks — only earnings surprise has hard multi-factor-grade A-share evidence (Orient Securities SUE0: IC_IR 3.49, long-short max drawdown just 7.27%). Lock-up and dividend/buyback branches were eliminated: diluted signals, windows too short.赚的是"事件发生后、市场还没消化完"的时间差。财报超预期(PEAD)、解禁、分红回购三类日历事件里,只有财报超预期在 A 股有多因子级的扎实实证(东方证券 SUE0:IC_IR 3.49、多空最大回撤仅 7.27%)。解禁和分红回购分支已淘汰:信号被稀释、窗口太短。
  • The SUE formula and the 12-year A-share proof. SUE = (actual net profit − expected net profit) / forecast volatility, where "expected" comes from a seasonal random walk (last year's same quarter as anchor). Orient Securities (2018, 3,421 A-shares, 2005–2017): the SUE0 version printed industry/market-neutral RankIC 4.02%, IC_IR 3.49, 83.78% monthly win rate — and the post-announcement drift lasts 3–4 months with no visible decay. Why it works here: retail investors digest earnings slowly, and hundreds of simultaneous announcements dilute attention. → Filed as S016: SUE0 main group + S013 research-flow version as the red-team control ("expectation vs. realization").SUE 公式与 12 年 A 股实证。SUE =(实际净利润 − 预期净利润)/ 预测波动率,"预期"用季节性随机游走(去年同期为锚)。东方证券(2018,3421 只 A 股,2005–2017):SUE0 行业市值中性 RankIC 4.02%、IC_IR 3.49、月胜率 83.78%——公告后漂移持续 3–4 个月且衰减不明显。为什么在 A 股成立:散户解读财报慢,财报季几百家同时公告稀释注意力。→ 已立项 S016:SUE0 主实验组 + S013 研报预期版做红蓝对照("预期 vs 实现")。
  • The strongest red-team evidence: PEAD is decaying in the US. Martineau (2022): the US large-cap classic PEAD spread fell from ~5% in the 1980s–90s to ~3% or less by the late 2010s, effectively zero after 2006 (decimalization, Reg NMS high-frequency trading, better disclosure). Orient's proof ends in 2017 — the 2018–2026 out-of-sample is unverified. → S016's test plan is fixed: replicate Orient 2005–2017 first, then test 2018–2026 out-of-sample; if it decayed, kill it without wasting a full backtest.最强的红方证据:美股 PEAD 正在衰减。Martineau(2022):美股大市值经典 PEAD spread 从 80–90 年代约 5% 降至 2010 年代末约 3% 或更低,2006 年后基本归零(小数点化、高频交易、披露质量提升)。东方实证只到 2017 年,2018–2026 样本外未验证。→ S016 测试流程已定:先复现东方 2005–2017,再测 2018–2026 样本外;若衰减直接判否,不浪费完整回测。
  • A-share rebuild: skip the gambling window, skip the limit-up bar. Two local fixes: ① Orient found abnormal returns on the 1–2 trading days before announcement regardless of surprise — pure "earnings gambling" speculation (a US-absent phenomenon), so our signal starts at T+2 after announcement; ② big surprises often come with limit-up bars, and chasing them locks you in — skip entry on limit-up days (same discipline as S015). Earnings-season concentration is actually our friend here: Hirshleifer's limited-attention theory says drift strengthens when hundreds of firms announce together.A 股改造:跳过赌业绩窗口,跳过涨停建仓。两个本地化改造:① 东方发现公告前一两个交易日无论超预期与否都有超额收益——纯"赌业绩"投机盘(美国没有的现象),所以信号从公告日后 T+2 起算;② 大幅超预期常伴随涨停,追涨停建仓会被锁死——建仓日涨停则跳过(同 S015 纪律)。财报季集中披露反而是朋友:Hirshleifer 注意力分散理论说,同日数百家公告时漂移更强。
  • Why lock-up and dividend/buyback were eliminated. Lock-up: the 2017 reduction rules diluted the signal ("expiry ≠ sellable"), it's a public calendar so it's pre-priced, and whether shareholders actually sell is unknowable — triple dilution. Dividends: ex-div is just cash moving pockets, zero alpha (2026 interim payouts hit a record ¥720.4B — that's dividend-factor fuel for S008/S009, not an event factor). Buybacks: "announced ≠ actually spent", execution is opaque, windows last days. → Both branches eliminated, no strategy files.解禁和分红回购为什么被淘汰。解禁:2017 减持新规后"解禁≠可减持"三重稀释(公开日历提前定价、减持是否发生全看股东意愿)。分红:除权只是现金移位,无 alpha(2026 年中期分红 7204 亿创纪录——那是红利因子 S008/S009 的养分,不是事件因子)。回购:"宣布≠真花钱",执行不透明、窗口只有几天。→ 两分支均淘汰,不建策略档案。
LESSON 14

Mean Reversion: Only Deviations Revert — Verify Before You Trade均值回归

2026-10-17
Core idea核心思想Prices themselves don't revert; what reverts is the deviation — the gap between price and its mean, the spread between two correlated assets. Whether a deviation truly converges is a statistical property that must be tested, never assumed. Both textbook A-share implementations (single-stock RSI contrarian, classic long-short pairs) failed our hard gates — but the methodology is fully absorbed as trading discipline.回归的不是价格,而是偏离——价格与均线的差、两只相关资产的价差。偏离是否真的收敛,是一个必须用统计检验回答的性质,不能靠假设。两个经典 A 股落地方案(个股 RSI 逆势、经典多空配对)全部倒在硬门槛上——但方法论被完整吸收为纪律。
  • Test before you backtest — that's the iron rule. Ernest Chan's discipline: a statistical test reads every data point; a backtest only sees the handful of round trips at entry/exit, so tests carry higher significance than backtests. The toolkit: ADF test (small p-value = stationary) + half-life = ln(2)/θ. A 5-day half-life is tradeable; a 200-day half-life on daily bars is not — holding costs eat everything. → Adopted as our strategy pre-registration gate: ADF + half-life first, anything above 60 days downgraded without wasting a backtest slot. One more absorbed warning: estimating half-life on the full sample to choose the lookback window is a look-ahead bias — Chan's own book example committed it.先检验、再回测——这是铁律。Ernest Chan 的纪律:统计检验读的是全部数据点,回测只看到进出点的几个往返,所以检验的显著性通常高于回测。工具链:ADF 检验(小 p 值=平稳)+ 半衰期 = ln(2)/θ。5 天半衰期可交易,日频下 200 天半衰期不可交易(持仓成本吃掉收益)。→ 已升为策略立项前置纪律:先跑 ADF + 半衰期,超过 60 天的直接降级,不浪费回测额度。顺带吸收一条反上帝视角警示:用全样本估计出的半衰期去定回看窗口是前视偏差——Chan 自己的书例里就犯过。
  • z-score is the common language of mean reversion. Bollinger Bands (20-day MA ± 2σ), RSI extremes, pairs spreads — all are just "how many standard deviations is this deviation". The textbook "only 5% of observations fall outside ±2" assumes a normal distribution; fat-tailed market data breaks it badly, and extremes can pin themselves at the tail for months in a trend — that is the anatomy of most mean-reversion losses. → We now express all future reversal signals (S010) and over-extension filters (S015's "don't chase rallies") in z-score, so thresholds are comparable across names.z-score 是均值回归的通用语言。布林带(20 日均线 ±2σ)、RSI 极值、配对价差,本质都是"偏离了几个标准差"。教科书"±2 之外只有 5%"假设正态分布;市场数据肥尾+均值漂移,极端 z 值比理论常见得多、且能在趋势中长期钉在极端——这解释了绝大多数均值回归亏损。→ 以后 S010 的反转信号、S015 的"涨多了不追"过滤,全部用 z-score 统一表达,阈值跨标的才有可比性。
  • Branch 1 executed by A-shares: single-stock RSI contrarian. The Connors RSI(2) system is the best-verified US contrarian recipe: buy when RSI(2) < 5 while price sits above the 200-day MA (catch the knife only in bull markets), exit when RSI(2) crosses 50 or after a 7-day time stop. A third-party US test on QQQ printed ~75% win rate, Sharpe ~2.85 (🟡 unaudited blog backtest). In A-shares it's dead on arrival: T+1 kills the 7–10-day holding period, annual turnover blows past our 20x hard gate, and Lesson 08 already proved pure-technical factors are IC-negative across the board. → Eliminated, no strategy file.分支一:A 股处决个股 RSI 逆势。Connors RSI(2) 是美股验证过的最强逆势体系:RSI(2) < 5 且价格在 200 日均线上方时买入(只在牛市接飞刀),RSI(2) 回升过 50 或 7 天时间止损退出。第三方美股实测 QQQ 胜率约 75%、夏普约 2.85(🟡 博客回测、未经审计)。但在 A 股直接判死刑:T+1 杀死 7–10 天持仓,年化换手轻松超过 20 倍硬门槛,第 8 课已证实纯技术因子 IC 全负。→ 淘汰,不建策略档案。
  • Branch 2 executed by A-shares: classic long-short pairs trading. Three generations: distance (Gatev 2006: ~11% annual excess, decaying after 2000 because non-converging pairs multiplied), cointegration (Engle–Granger two-step, exit when the cointegrating relation breaks), stochastic spread (OU process + Kalman adaptive hedge ratio). The iron rule: correlation ≠ cointegration — highly correlated stocks can drift apart for years. The classic long-short version has no vehicle in A-shares (no borrowable shares, shorting costs); the "long only the weaker leg" rewrite overlaps S006/S010 too much to deserve its own file. → Eliminated, methodology absorbed (cointegration test chain ready for future ETF pair rotation).分支二:A 股处决经典多空配对交易。三代方法:距离法(Gatev 2006 年化超额约 11%,2000 年后因不收敛配对增多而衰减)、协整法(Engle-Granger 两步,协整关系断裂即停手)、随机价差法(OU 过程+Kalman 自适应对冲比)。铁律:相关 ≠ 协整,高相关股票的价差可以漂移数年。经典多空版在 A 股没有执行载体(融券券源少、成本高);"只做多弱势方"的改造与 S006/S010 重叠,不值得单独立项。→ 淘汰,方法论留下(协整检验工具链备着,将来做 ETF 配对轮动直接复用)。
LESSON 13

Trend Following: Donchian Channels & the Turtle, Rebuilt for A-Shares趋势跟踪

2026-10-16
Core idea核心思想Riding trends: buy when price breaks the N-day high, exit when it breaks the M-day low, and size every position by ATR so risk is uniform. The edge is not prediction — it is the asymmetric payoff system of big wins, small losses. The A-share edition must be rebuilt: long-only, no pyramiding, limit-up filtering — and the 2016–2022 total failure is the mandatory red-team exhibit.追涨杀跌、让利润奔跑:价格突破过去 N 日最高价时买入,跌破过去 M 日最低价时离场,用 ATR 让每笔交易的风险配比一致。它的优势不是预测,而是赢时大赚、输时小亏的非对称收益系统。A 股版必须改造:只做多、不加仓、涨停过滤——而 2016–2022 的全参数失效是必看的红方证据。
  • The Turtle's dual system and the ATR risk unit. System 1: 20-day breakout entry, 10-day counter-breakout exit; System 2: 55-day / 20-day. Hard stop at 2×ATR; position unit = (1% of equity) / (2×ATR) — you allocate risk, not money, so volatile names automatically shrink. Open-source backtest hygiene we adopted: channels computed on the prior N days excluding today (no look-ahead), signals judged on the close and executed at next-day open.海龟双系统与 ATR 风险单位。S1:20 日突破入场、10 日反向突破离场;S2:55 日/20 日。硬止损 2×ATR;仓位单位 =(账户资金 1%)/(2×ATR)——按风险配仓位而非按金额,波动大的品种自动减仓。吸收的开源回测规范:通道用"前 N 日(不含当日)"计算,无未来函数;收盘判定信号、T+1 开盘执行。
  • A-share evidence: n=20 is optimal — and the 2016–2022 blackout is real. CITIC Securities futures (CSI All-Share trend timing): n=20 printed 15.54% annualized / Sharpe 0.61, the best of n=5/20/60/240; small caps trend better (CSI 500 21.24%/0.75 > CSI 300 13.10%/0.53). But 2016–2022 saw every parameter fail — the report's own attribution: rising pricing efficiency plus fewer trending markets. This is our natural F4/F7 early warning: trend strategies are regime-dependent; range markets bleed them slowly.A 股实证:n=20 最优——但 2016–2022 的全参数失效是真的。中信建投期货(中证全指趋势择时):n=20 年化 15.54%/夏普 0.61,是 n=5/20/60/240 里最优的;规模越小趋势越强(中证 500 21.24%/0.75 > 沪深 300 13.10%/0.53)。但 2016–2022 全参数失效——报告归因:定价效率提升+趋势性行情减少。这是天然的 F4/F7 预警:趋势策略是 regime 依赖型,震荡市就是持续小亏。
  • A-share rebuild: the limit-up trap decides everything. T+1 is friendly (close-judged, next-day execution); the short leg is cut (breakdown = cash, a hedge not a profit); limit-up filtering is the core fix — a breakout printed on a limit-up bar cannot be traded, and stop-outs on limit-down bars slip through violently. Backtests that use close prices without this filter print phantom returns. → Filed as S015: N=20/M=10 long-only + buy-and-hold / long-term-turtle controls, with the 2016–2022 dead window reviewed separately.A 股改造:涨跌停是决定生死的坑。T+1 天然友好(收盘判定、次日执行);做空腿砍掉(跌破下轨=空仓避险,不是盈利);涨停过滤是核心改造——信号日涨停的突破无法成交,跌停时的止损会穿仓式滑点,不做过滤的回测全是幻影收益。→ 已立项 S015:N=20/M=10 只做多 + 买入持有/S2 长线双对照组,2016–2022 失效窗口单独复盘。
LESSON 12

Sector Rotation: Ranking Industries on Monthly Momentum行业轮动策略

2026-10-15
Core idea核心思想Industries diverge structurally across market environments — driven by momentum, business cycles, and sentiment. Ranking industry indexes on risk-adjusted composite momentum monthly, holding the Top3 equal-weight, and cutting to cash when the broad index breaks its 10-month moving average turns sector beta into systematic excess.不同行业在不同市场环境下持续分化——动量、景气、情绪三驱动。用风险调整后的复合动量在月频上给行业排名、持有 Top3 等权,大盘跌破 10 月均线时空仓——把全市场的行业贝塔切成可系统化的超额。
  • Three independent A-share sources agree on the direction. Li & Liu (2012–2022, SW-level indexes): price-volume composite trend-tracking annualized 8.26%, cumulative 221.15%, Sharpe 0.32 vs equal-weight 0.26. Yang (2021/6–2025/12, industry-ETF composite momentum + Ledoit-Wolf covariance shrinkage): annualized 13.34%, 101.30% over CSI 300, Sharpe 0.567, max drawdown 25.97%. An open-source 20-year backtest (2006–2026): CAGR 13.9% vs CSI 300 8.2%, drawdown −45% vs −70.2% — 🟡 zero-star personal project: adopt its methodology, not its numbers.三路独立 A 股来源方向一致。李奥辉/刘胜题(2012–2022,申万一级):价量复合趋势追踪年化 8.26%、累计 221.15%、夏普 0.32 vs 行业等权 0.26。杨凯琳(2021/6–2025/12,行业 ETF 复合动量+协方差收缩优化):年化 13.34%、超沪深 300 101.30%、夏普 0.567、最大回撤 25.97%。开源 20 年回测(2006–2026):CAGR 13.9% vs 沪深 300 8.2%、回撤 −45% vs −70.2%——🟡 0-star 个人项目:取其方法论,不采信数字。
  • The best-practice recipe, synthesized from four sources. Signal = risk-adjusted composite momentum: (1m×0.4 + 3m×0.3 + 6m×0.2 + 12m×0.1) / trailing volatility — short windows get higher weights, matching A-share industry momentum's "short-horizon" character. Hold Top3 equal-weight, rebalance at month end. Timing filter: CSI 300 below its 10-month MA → cash — in the 20-year test this filter is what compressed the drawdown from −70% to −45%. Single-side cost 0.3%; monthly turnover 2–4x/year, no cost pressure.四源综合的最佳实践配方。信号=风险调整复合动量:(1m×0.4 + 3m×0.3 + 6m×0.2 + 12m×0.1)/trailing 波动率——短窗口给更高权重,匹配 A 股行业动量"偏短期"的特性。Top3 等权、月末调仓。时机过滤器:沪深 300 跌破 10 月均线→空仓——20 年回测中正是这个过滤器把回撤从 −70% 压到 −45%。单边成本 0.3%,年换手约 2–4 倍,成本无压力。
  • A-share fit: friendly on mechanics, watch the momentum crash. Monthly at the index/ETF level — T+1 and limit-up/down barely matter; it is a allocation-layer enhancer, never touching single names or our "hold while fundamentals are intact" framework. Red-team reservations: A-share rotation is unusually policy-driven, so momentum crashes on policy U-turns are real; −45% drawdown still trips our F2 watchline; "defense/offense" labels are time-varying (in 2021–2024 even food & beverage was not defensive). → Filed as S014: THS industry indexes (verified reachable via our data chain) as the backtest vehicle, equal-weight-all-industries as the falsification control.A 股适配:机制友好,提防动量崩盘。月频、在指数/ETF 层面操作——T+1、涨跌停基本不碍事;这是配置层增强器,不碰个股、不推翻"基本面没变坏就持有"的框架。红方保留意见:A 股轮动政策驱动成分重,政策急转弯时的动量崩盘真实存在;−45% 的回撤触发 F2 观察线;"防御/进攻"标签是时变的(2021–2024 连食品饮料都不防御)。→ 已立项 S014:用同花顺行业指数(今日实测可达)做回测标的,等权全行业做证伪对照组。
LESSON 11

Analyst Expectations: Trading the Revision, Not the Rating预期因子

2026-10-14
Core idea核心思想An analyst's act of revising an earnings forecast upward is itself tradeable information: it means new information has arrived. When several analysts' upward revisions form a revision momentum, the stock shows persistent excess returns. Wind-style consensus history is out of our data chain's reach — but East Money's free research-report stream gives us a replicable path.分析师上调盈利预测这个动作本身是可交易的信号:同一分析师在时间序列上主动上调 EPS/净利润预期(=新信息到来),多家分析师形成修正动量时,股价有持续性超额收益。Wind 式一致预期时序不在我们的数据链内——但东财免费研报流给了我们一条可回测的复刻路径。
  • The strongest CITIC Securities combination: revision momentum + magnitude, enhanced. Event = the same analyst revises EPS_FY1, EPS_FY2, and net-profit FY1 all upward; then rank by revision magnitude and hold 20 names equal-weight, rebalanced monthly. Result: annualized excess 29.39% (CSI 500 benchmark), information ratio 2.32, monthly win rate 71.43%, max drawdown 9.6% — the best of all enhanced combinations in the series. The plain analyst-revision factor alone printed 14.93% annualized long-short, Sharpe 1.8, mean IC 3.96%. Supporting evidence from the other side: East Money's 1,600-sample earnings-jump study — stocks with the fewest analysts covering them (3–5 ratings) beat the index by 5pp+ over 20 days, because expectations were never priced in.中信建投系列最强组合:预期修正动量事件+调整幅度增强。事件=同一分析师 EPS_FY1、EPS_FY2、净利润 FY1 三者均主动上调;再按调整幅度排序选 20 只等权持有、月末调仓。结果:年化超额 29.39%(中证 500 基准)、信息比率 2.32、月度胜率 71.43%、回撤 9.6%——全系列增强组合里最好。纯预期调整因子本身也有年化多空 14.93%、夏普 1.8、IC 均值 3.96%。反面印证:东财 1600 份样本净利润断层回测——机构覆盖最少的断层股(3–5 家评级)公告后 20 天跑赢指数 5pp+,因为预期根本没被定价。
  • Wind is out; the free report stream is in. Wind/Chaoyang-style consensus history is not in our four-tier data chain → that route is eliminated. But AkShare's stock_research_report_em was verified working today: CMB 232 reports (2017-01→2026-09), JX Pharma 71 (2017-04→2026-10), each carrying the analyst's current-period EPS forecasts — about 9 years of history, with the report date as the signal timestamp, so point-in-time discipline holds naturally. Comparing the same analyst's consecutive reports sidesteps the Wind-vs-East-Money definition gap entirely.Wind 路线淘汰,免费研报流路线成立。Wind/朝阳永续式一致预期时序不在四顺位数据链内→该路线直接淘汰。但 AkShare 的 stock_research_report_em 今日实测可用:招商银行 232 条(2017-01→2026-09)、京新药业 71 条(2017-04→2026-10),每条带该分析师当期 EPS 预测——约 9 年历史,报告日期即信号时点,PIT 纪律天然成立。用"同一分析师前后报告比较"定义因子,天然规避与 Wind 口径的定义差。
  • A-share fit: low-frequency, T+1-friendly — with two red flags. Month-end rebalancing of 20 equal-weight names fits our low-frequency discipline and T+1 execution; retail investors' slow digestion of research reports makes the information diffusion longer-lasting in A-shares, not shorter. Red flags: ① analyst coverage is concentrating on large caps (coverage of small names shrinking yearly → universe either restricted to covered names or orthogonalized against small-cap), ② analysts' optimism bias — upgrades are easy, downgrades are hard, so the factor may systematically overestimate in bear markets → segment validation (F4) is mandatory. → Filed as S013: main group revision-momentum-enhanced + Bottom20 falsification control.A 股适用:低频友好、T+1 友好,但有两面红旗。月末调仓 20 只等权,与低频纪律一致;散户对研报解读慢,A 股的"信息扩散"反而更持久。红方:① 研报覆盖度逐年向大盘集中(小票覆盖萎缩→universe 要么限定有覆盖,要么与小市值方向做正交);② 分析师乐观偏误——上调容易下调难,熊市可能系统性高估→分段验证(F4)必做。→ 已立项 S013:主实验组修正动量增强 + Bottom20 证伪对照组。
LESSON 10

Money-Flow Factors: Follow the Money, Carefully资金流因子

2026-10-13
Core idea核心思想Money-flow factors translate "who is buying" into stock-picking signals — smart money (northbound), leveraged money (margin), seat money (block-trade board). But A-share evidence shows each carries a data gap or a frequency trap: the only clean long-horizon signal is margin-growth rate.资金流因子把"谁在买卖"的筹码运动翻译成选股信号——聪明钱(北向)、杠杆钱(融资)、席位钱(龙虎榜)。但A股实证显示它们各自带着数据断层或频率陷阱:唯一能干净落地的长周期信号是融资增速。
  • Northbound "copying" works, but the edge is stock-picking taste, not timing. Essence Securities (2020/5–2022/3): weekly Top50-by-holding equal-weight returned 31.92% cumulative, 23.12% excess, Sharpe 1.34 — while northbound money itself earned only 8.76% excess. The net-inflow version earned more (64.29%) but at 91.25% weekly turnover — the report itself abandoned it: a real-world F8 (alpha must cover costs). ⚠️ Since the May-2024 disclosure downgrade, stock-level northbound holdings data looks discontinued (AkShare returns empty) → on hold until an alternative source is confirmed; the stock version's 59.8% max drawdown would breach our F2 anyway.北向"抄作业"能赚钱,但超额来自选股偏好而非择时。东兴证券(2020/5–2022/3):每周按持仓市值Top50等权持有,累计 31.92%、超额 23.12%、夏普 1.34——而北向资金整体只有 8.76% 超额。净流入版收益更高(64.29%)但周换手 91.25%,报告自己弃用了它:这就是 F8(毛alpha必须覆盖成本)的现实版。⚠️2024年5月披露降频后,个股级北向持股数据疑似断供(AkShare实测返回空)→ 暂缓,等替代数据源;且个股版 59.8% 最大回撤本来就会触发我们 F2 淘汰线。
  • Margin-growth rate: the denominator is turnover, not float — and that detail is the whole point. Haitong's definition: mean margin-increment over k days ÷ mean daily turnover over k days — it measures incremental-money impact, not leverage stock. k=60/c=60/n=30 earned 8.4% cumulative excess; k≤20 days prints negative excess — short-horizon money-flow is a trap, which fits our low-frequency discipline perfectly. Margin-short balances are excluded (ambiguous signal: low balance may just mean no borrowable shares). → Filed as S012: main group k=60/c=60 + short-horizon falsification control.融资增速:分母用成交额而非流通市值——这个细节就是全部。海通定义:最近k天融资增量均值 ÷ 最近k天日均成交额——衡量的是增量资金的市场冲击强度,不是杠杆存量。k=60/c=60/n=30 累计超额 8.4%;k≤20天超额为负——短周期资金流是陷阱,与我们低频纪律天然契合。融券余额不做因子(余额低可能是无券可融,信号含义模糊)。→ 已立项 S012:主实验组 k=60/c=60 + 短周期证伪对照组。
  • Block-trade board & ETF flows: eliminated as factors, kept as methodology. Dragon-tiger board signals are born on limit-up days — under T+1 the execution decay is fatal, and daily event-chasing violates our low-frequency rule → eliminated from testing; only the "institution seat identification" method is absorbed for daily tape-reading. ETF creations/redemptions are too indirect at the stock level → repurposed as a market-sentiment background gauge.龙虎榜与ETF申赎:因子淘汰,方法论留下。龙虎榜信号多生于涨停股,T+1 下执行损耗致命,且日频事件驱动与低频纪律冲突 → 不进测试流程;只吸收"机构席位识别"的方法论做日常看盘辅助。ETF申赎在个股层面太间接 → 转作市场情绪背景指标。
LESSON 09

The Low-Volatility Anomaly, Used Asymmetrically低波异象与非对称用法

2026-10-12
Core idea核心思想Low-volatility stocks beat high-volatility ones on a risk-adjusted basis — a direct contradiction of CAPM's "high risk, high return". In A-shares, however, almost all the excess comes from the short leg (shorting high-vol); the lowest-volatility long leg has no long-run excess. The long-only version that actually works is the asymmetric one verified by Essence Securities: buy volatility inside quality.低波动股票的风险调整后收益长期跑赢高波动股票,与CAPM的"高风险高收益"直接矛盾。但在A股,这笔超额几乎全来自空头端(做空高波);做多最低波那一档长期没有超额。真正能在多头端兑现的,是东方证券实证出的非对称用法:优质股里买波动。
  • A-share evidence: the excess lives in the short leg. Essence Securities (2005–2019): Vol20 rankIC ≈ −6.0%, long-short ≈ 0.94%/month (annualized ~9.9%). But the decile breakdown kills the naive trade: all excess comes from shorting the highest-volatility decile; the lowest-vol decile has no long-run excess — deciles 2–4 are actually best. → Buying the lowest-vol bucket long-only is expected to trail equal-weight (F1 risk): the mirror image of Lesson 07's S006 lesson — factor significance means nothing without long-side realizability.A股实证:超额全在空头端。东方证券(2005–2019):Vol20 的 rankIC 约 −6.0%,多空月收益约 0.94%(年化约9.9%)。但分10档一看,天真做法被证伪:超额全部来自"做空高波动"那一档;波动率最低的第一档长期没有超额,第2–4档反而最好。→ 直接"买最低波"选股预期跑不赢等权基准(F1高危):这是第07课S006教训的镜像——只看因子显著性、不看"多头可兑现性",等于没看。
  • Causes tested: lottery preference + arbitrage asymmetry. Four hypotheses tested one by one: analyst preference ✗, short-term reversal ✗; retail investors' lottery preference ✓; short-sale-constraint asymmetry ✓: in the overvalued group low-vol beats high-vol by 1.31%/month, while in the undervalued group high-vol wins. The tradable recipe: pick Top200 by composite factor score, blend volatility positively at 1/8 weight — annualized +2–3% over plain low-vol, information ratio +0.4. → Filed as S011: Group A = pure low-vol long (expected F1, serves as the falsification anchor); Group B = "quality + positive volatility".成因逐一实证:彩票偏好 + 套利非对称。四种说法逐一测试:分析师偏好✗、短期反转✗;散户彩票偏好✓;做空受限的套利非对称✓:高估组里低波远胜高波(多空月收益 1.31%),低估组里高波反而胜低波。可兑现的配方:7大类因子选Top200、波动率正方向以1/8权重合成——年化比常规低波组合高 2–3%,信息比+0.4。→ 已立项S011:A组纯低波多头(预期F1触发,做证伪锚);B组"优质+正向波动"。
  • A-share specifics: turnover-friendly, data caveats. Volatility persistence is a low-frequency gift: 37% of the lowest-vol names stay there next month, so monthly rebalancing clears F3 (turnover <300%) with ease. Caveats: limit-up/down truncates measured volatility (high-vol names' true vol is underestimated); low-vol mixes with value/quality exposure (attribution must be decomposed); the evidence ends in 2019.3 — whether the anomaly has decayed as retail share fell is 🟡 unknown, queued for our factor-pool test.A股特性:换手友好,数据有保留。波动延续性是低频友好项:上月最低波的股票下月 37% 仍在最低波组,月度调仓过F3(年换手<300%)无压力。注意:涨跌停截断系统性低估高波票的真实波动率;低波天然混杂价值/质量暴露(归因必须拆);报告数据止于2019.3——散户占比下降后异象是否衰减🟡未知,已列入因子池实测。
LESSON 08

Technical Indicators, Systematized技术因子信号化

2026-10-11
Core idea核心思想Technical indicators are mathematical transforms of the same price series — trend = smoothing, momentum = velocity, oscillation = position, volatility = dispersion. All are lagging functions of price. Systematization means translating subjective chart language into codable, look-ahead-free, backtestable rules — then letting the data judge.技术指标本质是同一根价格序列的数学变形:趋势=平滑、动量=速度、振荡=位置、波动率=离散度,全是价格的滞后函数。系统化的真正价值是把主观图形语言翻译成可编码、无未来函数、可回测的规则,然后接受数据判决。
  • Four families, four habitats. MAs suit trending markets (whipsaw in chop); RSI catches range extremes but goes numb in strong trends (pinned above 80 / below 20); MACD's zero-line sets direction but signals lag; Bollinger squeeze flags pre-breakout volatility without direction. → Our use: environment/risk gauges only — never stock-picking signals.四类指标各有一套适用环境。均线适合单边趋势市(震荡市反复交叉发假信号);RSI 在震荡市捕捉高低点最有效,但牛市可长期>80、熊市长期<20(钝化);MACD 用零轴定多空方向但信号滞后;布林带"带宽收缩=突破前夜"但无法定方向。→ 我们的用法:只做环境/风控识别,不进选股信号。
  • A-share market-wide evidence: every pure technical factor prints negative IC — trend_gap −0.105, rsi_14 −0.068 (5,424 stocks, 82 cross-sections), with monotonically declining quintile returns. Reversal dominates momentum.A股全市场实证:纯技术因子 IC 全为负——trend_gap(均线偏离度)−0.105、rsi_14 −0.068(5424 只标的、82 个截面),分位收益单调递减。"越强越弱"的反转特征压过动量。
  • The methodology lesson that matters most: negative IC ≠ a profitable reversal trade. Out-of-sample portfolio test: pure reversal −1.89%/period, all four weighting schemes trailed equal-weight. IC describes the whole cross-section; strategies buy the extreme tail (Q1 stuffed with small, illiquid, risky names). → Our discipline validated: factor statistics only count after portfolio-level out-of-sample tests.方法论上最重要的一课:负 IC ≠ 反手做多就能赚钱。样本外组合检验:纯反转 −1.89%/期,四种定权方案全部跑输等权基准。IC 描述的是整个截面,策略买的只是最极端的尾部(Q1 装着大量小盘低流动性高风险标的)。→ 我们的纪律被验证:因子统计量必须经过组合层样本外检验才算证据。
LESSON 07

Momentum & Reversal动量与反转

2026-10-10
Core idea核心思想A-shares' special recipe: strong reversal, weak momentum. Retail investors' chase-and-panic overreaction is the root of the reversal anomaly — US momentum literature does not transplant.A股的特殊配方是反转强、动量弱——散户追涨杀跌的过度反应是反转异象的根。美股动量文献不可硬移植。
  • 1-month reversal is real in our data (RankIC 0.0475, t=3.07, significant); 12-1M momentum is weakly inverted (RankIC -0.0177). Buying past winners ≈ buying a negative factor.1个月反转在我们的数据上是实的(RankIC 0.0475,t=3.07,显著);12-1M 动量是弱反向(RankIC -0.0177)。买过去赢家 ≈ 买了一个负向因子。
  • S006: a significant factor killed by 449% annual turnover (triggered F3). For reversal strategies, cost is the life-or-death line — next test (S010) tries quarterly rebalancing.S006:显著的因子死于年换手 449%(触发 F3)。对反转策略来说,成本是生死线——下一测(S010)尝试季度调仓降频。
  • W-cut research: large orders are the micro-source of reversal (IR 2.51 vs 1.20) — on hold until tick-level data is available.W式切割研究:大单成交是反转的微观来源(IR 2.51 vs 1.20)——缺逐笔数据,暂缓。
LESSON 06

The Growth Factor & GARP成长因子与 GARP

2026-10-09
Core idea核心思想Buy fast growers whose price hasn't priced in the growth. GARP (growth at a reasonable price) is the balancing act between growth and value — PEG is its core tool.买"增长快、但价格还没透支增长"的公司。GARP(合理价格买成长)是成长与价值的平衡术,PEG 是它的核心工具。
  • Operating cash-flow growth is the strongest growth signal (IR 0.9793, p=1.04%) — cash growth = growth plus fraud filter.经营现金流增速是最强的成长信号(IR 0.9793,p=1.04%)——现金增长 = 增长 + 排雷。
  • Never test pure growth alone — the growth trap. Only test GARP composites (growth + quality + PEG constraint).纯成长不测——成长陷阱。只测 GARP 复合(成长 + 质量 + PEG 约束)。
  • S007 verdict: the growth factor contributed +1.33pp of standalone increment (and is nearly uncorrelated with quality, |ρ|=0.108), yet the strategy itself failed F1/F4/F7/F8 — the factor survives, the strategy doesn't.S007 裁决:成长因子贡献了 +1.33pp 的独立增量(与质量分几乎不相关,|ρ|=0.108),但策略本体触发 F1/F4/F7/F8 被淘汰——因子留下,策略走人。
LESSON 05

The Quality Factor质量因子

2026-10-08
Core idea核心思想Buy companies with strong, stable profitability and low leverage. Quality is among the most persistent factors after publication — its driver is profitability itself, not the ROE number.买"赚钱能力强且稳定、负债低"的公司。质量是发表后衰减最少的硬因子之一——它的驱动是盈利能力本身,而不是 ROE 这个数字。
  • Pure ROE is weakly negative in A-shares — a value trap. High ROE alone often marks peak-cycle earnings, not quality.纯 ROE 在A股是弱负向——估值陷阱。单看 ROE 高,往往买到的是周期顶点的盈利,而非质量。
  • Composite quality (cash-flow-based earnings + earnings stability + low leverage) is the version worth testing — it became the risk-filter inside the passing S005 strategy.合成质量(现金流口径盈利 + 盈利稳定性 + 低杠杆)才是值得测的版本——它成了通过的 S005 策略里的排雷器。
  • Lesson: a good factor ≠ a good strategy — quality added nothing inside the dividend universe (S008), where high-dividend stocks were already mature and stable.教训:好因子 ≠ 好策略——在红利股票池里再叠质量筛选是负增量(S008),因为高股息公司本身已经偏成熟稳定。
LESSON 04

The Value Factor价值因子

2026-10-07
Core idea核心思想Value pays for "resilient earnings mispriced by the market." In A-shares, pure value is a weak factor — it only earns excess return as enhanced value, filtered by quality, cash flow and dividends.价值因子的本质是为"盈利韧性被错杀"付费。A股的纯价值是弱因子——只有叠加质量/现金流/分红过滤、变成增强型低估值后,才有超额收益。
  • Backtest verdict: pure value underperformed the equal-weight benchmark and was eliminated (strategy S001, triggered F1/F5).回测裁决:纯价值跑不赢等权基准,已淘汰(策略 S001,触发 F1/F5)。
  • Enhanced value = OCF > net income, dividend yield > 3%, ROE volatility < 15% — cheap plus cash-flow health.增强型低估值 = 经营现金流 > 净利润、股息率 > 3%、ROE 波动 < 15%——便宜 + 现金流健康。
  • Dividend yield ≈ a proxy for sustainable cash flow — defensive value in falling-rate environments.股息率 ≈ 可持续现金流的代理变量——利率下行环境里有防御价值。
LESSON 03

Multi-Factor Models: Fama–French Foundations多因子模型基础:Fama–French

2026-10-06
Core idea核心思想A stock's return ≈ market beta + (factor exposures × factor premia) + residual. Decomposing returns into factor exposures tells you whether you earned "style money" or true alpha.一只股票的收益率 ≈ 市场β +(因子暴露 × 因子溢价)+ 残差。把收益拆成因子暴露,才能分清赚的是"风格的钱"还是"真 alpha"。
  • Under the five-factor model, the value factor (HML) is largely absorbed by profitability (RMW) and investment (CMA) — value alone is a weak signal.五因子模型下,价值因子(HML)基本被盈利(RMW)和投资(CMA)吸收——纯价值是个弱信号。
  • In A-shares: quality > value. The small-cap premium exists but is decaying — don't anchor on textbook US results.A股:质量 > 价值;小市值溢价存在但在衰减——不要锚定美股教科书结论。
  • Factors are a risk-budgeting language, not just a stock-picking tool.因子首先是一套风险预算语言,而不只是选股工具。
LESSON 01

Low-Frequency Quant System Overview低频量化系统总览

2026-10-06
Core idea核心思想A complete low-frequency quant loop = factor research → strategy construction → backtest validation → risk control → iteration. Every stage needs falsifiable criteria — a test without a falsification condition is no test at all.低频量化的完整闭环 = 因子研究 → 策略构建 → 回测验证 → 风控 → 迭代。每个环节都要有可证伪的标准——没有证伪条件的测试,等于没测。
  • Write the "death lines" before testing. Nine falsification criteria (F1–F9: excess return, drawdown, turnover, persistent underperformance, factor incrementality, overfitting, underwater period, cost coverage, data-snooping) are fixed before any backtest runs — see the Factor Dashboard.先写"死刑线",再开测。九条证伪标准(F1–F9:超额收益、回撤、换手、持续跑输、因子增量、过拟合、水下期、成本覆盖、数据窥探)全部在回测前写死,详见因子表盘。
  • No look-ahead, ever. Strategies may only touch data that existed at the signal date. Financial statements are lagged 63 trading days by default (point-in-time discipline).绝对禁止上帝视角。策略只能接触信号时点已存在的数据,财务数据默认滞后 63 个交易日(PIT 纪律)。
  • Failed tests are assets. Every eliminated strategy is archived with its cause of death — the graveyard teaches as much as the winners.失败的测试也是资产。每个被淘汰的策略都带着死因归档——墓园和赢家一样有教学价值。

How these notes are made这些笔记是怎么来的

Each lesson pairs external sources (sell-side research, academic papers, open-source quant projects) with our own backtests on 10 years of A-share data (2016–2026, 4,605 stocks). A lesson only "counts" when its claims survive our data — paper conclusions that contradict our tests are flagged, not cited.每课都把外部来源(券商研报、学术论文、开源量化项目)和我们自己的回测(10年A股数据,2016–2026,4605只股票)配对。只有经得起我们数据检验的结论才算数——与我们实证打架的论文结论会被标出,而不是被引用。

Raw factor test numbers live on the Factor Dashboard. Nothing here is investment advice.原始因子测试数据在因子表盘。这里没有任何内容构成投资建议。