Momentum & Trend
版本:2026年 9月 29日
語言:繁體中文(保留重要英文術語)
用途:技術分析 / 量化研究 / MarketLens 設計參考
重點:分清 Momentum(動能)、Trend(趨勢)、Cross-sectional Momentum(橫截面動能)、Time-series Momentum(時間序列動能) 與 Trend Following(趨勢跟隨)
Table of Contents
Section titled “Table of Contents”- 核心答案:Momentum 和 Trend 是否一定要放在一起?
- 最重要的術語分類
- 所有計算的基礎:Price、Return、Log Return、Excess Return
- Momentum:主要學術研究與公式
- 4.1 Jegadeesh & Titman:Cross-sectional Momentum
- 4.2 Carhart / Kenneth French:12–2 Momentum Factor
- 4.3 Moskowitz & Grinblatt:Industry Momentum
- 4.4 Lee & Swaminathan:Momentum + Trading Volume
- 4.5 George & Hwang:52-Week High Momentum
- 4.6 Blitz, Huij & Martens:Residual Momentum
- 4.7 Novy-Marx:Intermediate-Horizon Momentum
- 4.8 Moskowitz, Ooi & Pedersen:Time-Series Momentum
- 4.9 Asness, Moskowitz & Pedersen:Momentum Everywhere
- 4.10 Fama & French:International Momentum
- 4.11 Barroso & Santa-Clara:Risk-Managed Momentum
- 4.12 Daniel & Moskowitz:Momentum Crashes
- Trend:主要學術研究與公式
- 5.1 Simple Moving Average
- 5.2 Exponential Moving Average
- 5.3 Moving-Average Crossover
- 5.4 Brock, Lakonishok & LeBaron:Moving Average / Trading Range Break
- 5.5 Time-Series Momentum 作為 Trend Following
- 5.6 Hurst, Ooi & Pedersen:Multi-Horizon Trend
- 5.7 Levine & Pedersen:Trend Filters 的統一框架
- 5.8 Han, Zhou & Zhu:Trend Factor
- 5.9 Regression Trend / Slope
- 5.10 Breakout / Trading Range
- Momentum 與 Trend 的真正分別
- 常見指標公式總表
- 如何把不同訊號標準化及比較
- 你的 MarketLens
edges.py現有做法 - MarketLens:建議把 Momentum 與 Trend 分拆
- 避免 Double Counting
- 回測方法:如何知道一條公式真的有 Edge
- 簡單數值例子
- 主要學者與研究總表
- 實作優先次序
- 重要限制
- References
1. 核心答案:Momentum 和 Trend 是否一定要放在一起?
Section titled “1. 核心答案:Momentum 和 Trend 是否一定要放在一起?”不是。
Momentum 與 Trend 高度相關,但在金融研究中不是同一個概念。
最簡單的理解:
- Trend 問:「價格現在是否處於一個持續上升/下降的方向?」
- Momentum 問:「過去一段時間的價格表現是否具有延續性?哪一些股票/資產表現最強?」
- Cross-sectional Momentum 問:「A 股票相對 B、C、D 股票,誰是 winner、誰是 loser?」
- Time-series Momentum 問:「這一隻資產自己的過去回報是正還是負?之後是否傾向延續?」
- Trend Following 是一類交易規則:上升趨勢做多、下降趨勢做空或避開。
因此:
Time-Series Momentum 可以視為 Trend Following 的一種非常重要的數學形式;但 Cross-sectional Momentum 不等於 Trend。
四種可能情況
Section titled “四種可能情況”| 情況 | Trend | Momentum | 解釋 |
|---|---|---|---|
| A | 強上升 | 強 | 最典型 winner |
| B | 上升 | 轉弱 | 價格仍在升,但升幅正在減慢 |
| C | 下降 | 短期轉強 | 熊市反彈 / reversal 初期 |
| D | 橫行 | 短期強 | 暫時 breakout,但長期 trend 未確認 |
還有一個更重要的例子:
一隻股票過去 12 個月跌 2%,市場跌 20%。
- Absolute trend / time-series momentum:它仍可能是負。
- Cross-sectional / relative momentum:它可能已經是市場中非常強的 winner。
所以兩者不應機械地綁在一起。
2. 最重要的術語分類
Section titled “2. 最重要的術語分類”| 英文 | 中文 | 核心問題 |
|---|---|---|
| Momentum | 動能 / 動量 | 過去強勢會否延續? |
| Price Momentum | 價格動能 | 價格本身的過去回報 |
| Cross-sectional Momentum | 橫截面動能 | 相對其他股票誰強誰弱? |
| Time-series Momentum | 時間序列動能 | 自己過去正回報/負回報會否延續? |
| Relative Strength | 相對強弱 | 股票相對其他股票或 benchmark 的強弱 |
| Trend | 趨勢 | 價格是否持續朝某方向移動? |
| Trend Following | 趨勢跟隨 | 順著已存在的趨勢建立倉位 |
| Moving Average | 移動平均 | 平滑價格以估計趨勢 |
| Breakout | 突破 | 價格突破過去區間或高點 |
| 52-Week High | 52 周高位 | 現價距離一年高位有多近 |
| Residual Momentum | 殘差動能 | 移除市場 / size / value 等因素後的個股動能 |
| Risk-Managed Momentum | 風險管理動能 | 按 momentum 波幅調整 exposure |
| Trend Filter | 趨勢濾波器 | 將過去價格/回報轉換為 trend signal |
3. 所有計算的基礎:Price、Return、Log Return、Excess Return
Section titled “3. 所有計算的基礎:Price、Return、Log Return、Excess Return”3.1 Simple Return
Section titled “3.1 Simple Return”若今日價格是 (P_t),(k) 期前價格是 (P_{t-k}):
例如:
- 63 個交易日前:100
- 今日:115
則:
這就是 MarketLens 現在 ROC63 類似的概念。
3.2 Log Return
Section titled “3.2 Log Return”Log return(對數回報)的定義是:
其中:
- (P_t):本期價格
- (P_{t-1}):上一期價格
- (\ln):natural logarithm(自然對數)
為甚麼 Log Return 可以直接相加?
Section titled “為甚麼 Log Return 可以直接相加?”最重要的 logarithm 規則是:
也就是說,乘法進入 logarithm 之後會變成加法。
但要注意:
後面這條是錯的。
例如:
而:
同時:
只有 rounding difference。
Logarithm 加法規則的公式化解
Section titled “Logarithm 加法規則的公式化解”假設:
則:
同樣地:
則:
將兩者相乘:
根據 exponential rule:
所以:
兩邊取 natural logarithm:
因為:
所以:
再代入:
便得到:
為甚麼這對多期回報很有用?
Section titled “為甚麼這對多期回報很有用?”假設股價:
- Day 0:(P_0=100)
- Day 1:(P_1=110)
- Day 2:(P_2=121)
第一日 log return:
第二日 log return:
兩日 log return 可以直接相加:
利用:
得到:
中間的 110 抵消:
因此:
推廣到 (n) 期:
利用 logarithm 加法規則:
中間所有價格互相抵消,最後只剩:
所以可以記住:
Simple Return 多期要相乘;Log Return 多期可以直接相加。
Simple cumulative return:
因此:
Log return:
兩者之間的轉換關係是:
以及:
例如總 log return 為:
轉回 simple return:
這就是為甚麼 log return 在 volatility、統計分析和時間序列模型中非常方便。
3.3 Excess Return
Section titled “3.3 Excess Return”Excess return(超額回報)最常見的意思是:
資產回報減去 risk-free return。
公式:
其中:
- (R_t):資產回報
- (R_{f,t}):同期 risk-free return
- (R_t^{excess}):資產相對 risk-free investment 多賺或少賺的回報
例如:
- 股票回報 = (12%)
- Risk-free return = (4%)
則:
即是這項投資相對 risk-free alternative 多賺了 8%。
為甚麼要減 Risk-Free Rate?
Section titled “為甚麼要減 Risk-Free Rate?”投資股票需要承受額外風險。
如果一隻股票回報 6%,但同期近似 risk-free 的投資已經可以有 5% 回報,那麼股票為你承擔額外風險所提供的超額回報其實只有:
所以 excess return 更接近:
承擔風險之後真正額外得到的回報。
在 Momentum 裡的用法
Section titled “在 Momentum 裡的用法”例如 MSCI-style momentum 可以表示為:
其中:
是股票該期間的 price return,減去 (R_f) 後,便是相對 risk-free rate 的 excess return。
Excess Return 亦可能相對其他 Benchmark 定義
Section titled “Excess Return 亦可能相對其他 Benchmark 定義”有些情況亦會把 excess return 廣義地寫成:
例如:
這種情況更準確可以叫做 benchmark-relative return。
在 asset-pricing models,例如 CAPM 中,excess return 通常特別指:
而 market excess return 則是:
Time-series momentum 文獻亦經常使用 excess return,因為研究者想知道資產自身過去的回報是否高於 risk-free return,以及這個方向是否會延續。
3.4 Annualized Volatility
Section titled “3.4 Annualized Volatility”Annualized volatility(年化波幅)是:
把日、週或月等較短期間觀察到的 return volatility,換算成一個年度尺度的波幅。
Volatility 本質上通常是 return 的 standard deviation(標準差)。
若日回報標準差為 (\sigma_d):
因為美股一年大約有 252 個 trading days。
例如每日 volatility:
則:
因為:
所以:
即可以說:
這隻股票的 annualized volatility 約為 31.7%。
為甚麼乘 (\sqrt{252}),而不是乘 252?
Section titled “為甚麼乘 (\sqrt{252}),而不是乘 252?”假設每日 return variance 為:
如果每日 return 近似互相獨立,(n) 日 return 的 variance 近似為:
但 volatility 是 standard deviation,即 variance 的平方根:
因此:
所以由 daily volatility 轉成年化 volatility:
而不是:
Weekly Volatility 年化
Section titled “Weekly Volatility 年化”一年約 52 週:
Monthly Volatility 年化
Section titled “Monthly Volatility 年化”一年有 12 個月:
一般公式可以寫成:
Annualized Volatility 不是年度回報預測
Section titled “Annualized Volatility 不是年度回報預測”如果一隻股票 annualized volatility = 31.7%,並不代表:
- 它一年一定上升 31.7%;或
- 它一年一定下跌 31.7%。
它只是描述 return dispersion / variability 的統計尺度,而不是 expected return forecast。
在 Risk-Adjusted Momentum 裡的作用
Section titled “在 Risk-Adjusted Momentum 裡的作用”Risk-adjusted momentum 常見形式:
例如兩隻股票都上升 30%。
Stock A:
Stock B:
則:
而:
兩隻股票的 raw return 一樣,但 Stock A 用較低波幅取得相同回報,所以 risk-adjusted momentum 較高。
Trading-Day Convention
Section titled “Trading-Day Convention”某些論文使用 252、260、261 等不同 trading-day constants。
例如:
重點不是一定要選某一個數字,而是:
同一套研究、backtest 與 production system 必須保持一致的 annualization convention。
4. Momentum:主要學術研究與公式
Section titled “4. Momentum:主要學術研究與公式”「所有 momentum 論文」數量非常龐大,不可能在一份文件逐篇窮盡。以下收錄的是最具代表性、最常被引用,而且直接影響實際計算方法的研究脈絡。
4.1 Jegadeesh & Titman (1993):Cross-sectional Momentum
Section titled “4.1 Jegadeesh & Titman (1993):Cross-sectional Momentum”經典論文:
Narasimhan Jegadeesh & Sheridan Titman (1993), Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency.
核心不是判斷單一股票「是否上升趨勢」,而是:
- 看很多股票;
- 計算每隻股票過去 (J) 個月回報;
- 排名;
- 買入最高回報組;
- 沽空最低回報組;
- 持有 (K) 個月。
Formation Return
Section titled “Formation Return”一般形式:
或近似寫成:
然後將所有股票根據 (MOM_{i,t}^{(J)}) 排序。
Winner / Loser Portfolio
Section titled “Winner / Loser Portfolio”若:
- (W_t):最高過去回報股票組
- (L_t):最低過去回報股票組
則 zero-cost momentum portfolio:
Jegadeesh–Titman 測試了多組 (J/K) 組合,例如 3、6、9、12 個月 formation / holding periods。
這是 relative / cross-sectional。
一隻股票不需要自己處於漂亮的上升 trend,只要它比其他股票強,就可能進入 winner group。
4.2 Carhart / Kenneth French:12–2 Momentum Factor
Section titled “4.2 Carhart / Kenneth French:12–2 Momentum Factor”Carhart (1997) 把 momentum factor 加入 Fama–French 架構,形成常見的 four-factor model:
Carhart Four-Factor Model 到底是甚麼?
Section titled “Carhart Four-Factor Model 到底是甚麼?”Carhart Four-Factor Model 的目的,不是直接告訴你「買哪一隻股票」,而是嘗試解釋:
一隻股票、portfolio 或基金的回報,有多少是來自整體市場、公司規模、value/growth exposure、momentum exposure,以及還有多少是這四個因素解釋不到的。
可以把它看成:
Fama–French Three-Factor Model 原本包括:
Carhart (1997) 再加入:
所以變成 Four-Factor Model。
四個 Factors 的直覺
Section titled “四個 Factors 的直覺”| Factor | 全名 | 問題 |
|---|---|---|
| (R_M-R_f) | Market Excess Return | 整體股票市場相對 risk-free asset 表現如何? |
| SMB | Small Minus Big | Small-cap 是否跑贏 large-cap? |
| HML | High Minus Low | Value stocks 是否跑贏 growth stocks? |
| MOM | Momentum / Winners Minus Losers | 過去 winners 是否跑贏過去 losers? |
Factor 1:Market Factor
Section titled “Factor 1:Market Factor”Market factor 是:
其中:
- (R_M):market return
- (R_f):risk-free return
例如:
- Market return = (10%)
- Risk-free return = (4%)
則:
所以:
意思是:
投資整體股票市場,相對近似 risk-free asset,多得到 6% 回報。
如果一個 portfolio 的:
可以粗略理解為:
它對 market factor 的敏感度比市場本身高;市場 excess return 每變動 1 個百分點,portfolio 的 excess return 平均與它有約 1.2 個百分點的 factor exposure 關係。
Factor 2:SMB — Small Minus Big
Section titled “Factor 2:SMB — Small Minus Big”SMB 的全名是:
Small Minus Big
它捕捉的是 Size Factor(公司規模因子)。
核心問題:
Small-cap stocks 在該期間有沒有跑贏 large-cap stocks?
非常簡化的概念式:
假設:
- Small-cap portfolio return = (12%)
- Large-cap portfolio return = (8%)
則:
所以:
意思是:
該期間 small-cap stocks 平均比 large-cap stocks 多賺約 4%。
如果:
則代表該期間 large-cap 相對較強。
Academic SMB Construction
Section titled “Academic SMB Construction”在典型 Fama–French 2 × 3 portfolio construction 中,股票會先按:
- Size:Small / Big
- Book-to-Market:Low / Medium / High
形成六個 portfolios。
可以簡化寫成:
其中:
- (S) = Small
- (B) = Big
- (L) = Low book-to-market
- (M) = Medium book-to-market
- (H) = High book-to-market
這樣做的目的,是盡量把「size effect」從 value/growth composition 中分離出來。
SMB 的 Beta 怎樣理解?
Section titled “SMB 的 Beta 怎樣理解?”如果你的 portfolio regression 得到:
代表它有比較明顯的 small-cap tilt。
如果:
代表它對 size factor exposure 不明顯。
如果:
則通常表示 portfolio 比較偏向 large-cap。
例如:
而該期:
那麼 size factor 對模型解釋的 contribution 約為:
Factor 3:HML — High Minus Low
Section titled “Factor 3:HML — High Minus Low”HML 的全名是:
High Minus Low
但這裡的 High / Low 並不是 momentum high / low。
它指:
High Book-to-Market Minus Low Book-to-Market
Book-to-Market ratio:
一般理解:
- High (B/M) → Value stocks
- Low (B/M) → Growth stocks
所以 HML 是一個 Value Factor。
核心概念:
Book-to-Market 簡單例子
Section titled “Book-to-Market 簡單例子”Company A:
- Book equity = $50m
- Market cap = $100m
則:
Company B:
- Book equity = $50m
- Market cap = $500m
則:
Company A 的 book-to-market 較高,因此相對更接近 value。
Company B 的 book-to-market 較低,因此相對更接近 growth。
HML 數值例子
Section titled “HML 數值例子”假設:
- High book-to-market / Value portfolio return = (11%)
- Low book-to-market / Growth portfolio return = (7%)
則:
所以:
意思是:
該期間 value stocks 平均比 growth stocks 多賺約 4%。
如果:
則代表 growth stocks 在該期間相對跑贏 value stocks。
Academic HML Construction
Section titled “Academic HML Construction”典型簡化形式:
其中:
- (H) = High book-to-market = Value
- (L) = Low book-to-market = Growth
所以:
HML 的 Beta 怎樣理解?
Section titled “HML 的 Beta 怎樣理解?”如果:
代表 portfolio 比較偏向 value stocks。
如果:
代表 portfolio 比較偏向 growth stocks。
例如:
而:
則 value factor contribution:
負的 (\beta_H) 表示這個 portfolio 有 growth tilt,所以當 value outperform growth 時,它相對會受到負面影響。
非常重要:HML 的 High/Low 不等於 Momentum 的 High/Low
Section titled “非常重要:HML 的 High/Low 不等於 Momentum 的 High/Low”這一點最容易混淆。
在 HML:
High = High Book-to-Market = ValueLow = Low Book-to-Market = Growth但在 Momentum:
High = High Prior Return = WinnerLow = Low Prior Return = Loser所以:
兩者雖然都使用 High / Low 字眼,但代表的是完全不同的排序變數。
Factor 4:MOM — Momentum Factor
Section titled “Factor 4:MOM — Momentum Factor”MOM 捕捉:
過去 winners 相對過去 losers 的未來回報差。
簡化:
例如:
- Winner portfolio = (13%)
- Loser portfolio = (5%)
則:
所以:
意思是:
該期間過去 winners 比過去 losers 多賺約 8%。
後面本節的 12–2 momentum ranking,就是用來形成這些 winner / loser portfolios 的其中一個重要 academic convention。
Alpha 是甚麼?
Section titled “Alpha 是甚麼?”模型:
當四個 factor exposures 都計入之後,剩低的平均 intercept 就是:
可以概念上理解為:
模型四個已知 factors 解釋不到的平均 excess return。
如果:
表示實際平均回報高於四個 factor exposures 所解釋的部分。
但要非常小心:
Positive alpha 不應自動解讀為「基金經理有能力」。
還需要看:
- statistical significance
- sample length
- transaction costs
- omitted factors
- model specification
- survivorship bias
等問題。
Beta 是甚麼?
Section titled “Beta 是甚麼?”每個 (\beta) 都是 portfolio 對某個 factor 的 sensitivity / exposure。
例如:
表示 market exposure 偏高。
表示有少量 small-cap tilt。
表示有少量 growth tilt。
表示有正 momentum exposure。
可以把它們理解成:
βM = 對市場的敏感度βS = 對 size factor 的敏感度βH = 對 value factor 的敏感度βMOM = 對 momentum factor 的敏感度Epsilon 是甚麼?
Section titled “Epsilon 是甚麼?”是 regression residual / unexplained period-specific return。
概念上:
所以:
代表某一期間模型解釋不到的短期 deviation。
它與 (\alpha) 不完全相同:
- (\alpha):regression intercept / 平均未被 factors 解釋的部分
- (\epsilon_t):每一期個別的 residual shock
一個完整數值例子
Section titled “一個完整數值例子”假設某 portfolio:
而該期間 factors:
假設:
並暫時令:
則 portfolio excess return 的模型解釋為:
逐項計:
Market contribution:
Size contribution:
Value contribution:
Momentum contribution:
再加 alpha:
因此:
如果同期 risk-free return:
則 portfolio total return:
所以:
這個例子告訴我們甚麼?
Section titled “這個例子告訴我們甚麼?”Portfolio 的 16% total return 並不是全部都叫「alpha」。
模型嘗試拆成:
Risk-free return 4.0%Market exposure 6.6%Size exposure 1.2%Value exposure -0.8%Momentum exposure 4.0%Alpha 1.0%--------------------------------Total 16.0%所以這個 portfolio 表面上賺 16%,但模型認為其中大部分可以由:
- broad market exposure
- small-cap exposure
- growth/value exposure
- momentum exposure
解釋。
真正未被這四個 factors 解釋的部分,在這個簡化例子只有:
Four-Factor Model 是怎樣估計的?
Section titled “Four-Factor Model 是怎樣估計的?”實際研究不會只看一個月份然後直接拆數字。
通常會使用很多期歷史資料,例如月度 returns:
然後做 time-series regression:
Regression 會估計:
所以前面的單期數字只是為了理解 factor contribution 的 illustrative example,真正的 beta / alpha 是由多期 regression 估計出來的。
Four-Factor Model 對 MarketLens 有甚麼用?
Section titled “Four-Factor Model 對 MarketLens 有甚麼用?”MarketLens 不一定需要直接使用 Carhart model 做日常 stock ranking。
它更適合做:
1. Factor Exposure Analysis
Section titled “1. Factor Exposure Analysis”例如分析一個 MarketLens portfolio 是否實際上只是:
High market beta+ small-cap tilt+ growth tilt+ momentum tilt而不是具有真正獨立 edge。
2. Performance Attribution
Section titled “2. Performance Attribution”把 portfolio return 拆開:
3. Residual Momentum
Section titled “3. Residual Momentum”後面 Residual Momentum 一節就是利用類似思想:
先把 market / size / value 等 factor 能解釋的 return 拿走,再研究剩下的 firm-specific momentum。
4. 檢查 Double Counting
Section titled “4. 檢查 Double Counting”如果 MarketLens 的策略本身高度偏向 momentum factor,之後再加入很多類似 momentum signals,就可能只是在重複同一種 exposure。
可以把 Carhart Four-Factor Model 記成:
其中:
Market = Rm − RfSMB = Small − BigHML = Value − GrowthMOM = Winners − Losers而:
Alpha = factors 解釋不到的平均 return componentBeta = 對每個 factor 的 exposure / sensitivityEpsilon = 每一期未被模型解釋的 residual最重要不要混淆:
而:
今天常見的 academic momentum definition 是 prior 12-to-2 month return,即通常跳過最近一個月,以降低 short-term reversal / microstructure 影響。
12–2 到底代表甚麼?
Section titled “12–2 到底代表甚麼?”假設現在準備在月 (t) 建立 portfolio。
12–2 momentum 不是使用最近 12 個月全部回報,而是使用:
並刻意跳過:
也就是最近一個完整月份。
可以用時間線理解:
Past Portfolio month
t-12 t-11 ... t-3 t-2 t-1 t |---------------------------| USED FOR MOMENTUM SKIP INVEST所以:
12–2 Momentum = 看較早的約 11 個月累積回報,跳過最近一個月。
Kenneth French Data Library 常寫成:
prior (2–12) return
意思與這個 12–2 lookback convention 相同。
12–2 Momentum 的 Simple Return 公式
Section titled “12–2 Momentum 的 Simple Return 公式”若現在是月 (t):
因為這裡使用的是 simple return,所以多期回報不能直接相加,而要做 compounding:
例如幾個月回報是:
不能直接寫成:
而是:
用價格表示 12–2 Momentum
Section titled “用價格表示 12–2 Momentum”如果月度 simple return 定義為:
則:
因此:
可以展開為:
中間價格全部抵消:
所以:
這個價格形式很容易看出:
- 終點用 (t-2)
- 最近一個月 (t-1) 被跳過
- 起點使用 (t-13) 的價格,因為要計出 (t-12) 到 (t-2) 這 11 個月的 returns
一個具體 Calendar Example
Section titled “一個具體 Calendar Example”假設你要在 2026 年 10 月 建立 portfolio。
最近一個完整月份是:
September 202612–2 momentum 會:
Oct 2025 → Aug 2026 Sep 2026 Oct 2026|--------------------| |--------| |-------| Momentum window Skip month Hold即:
- 約由 2025 年 10 月開始
- 計到 2026 年 8 月
- 2026 年 9 月不計入 momentum ranking
- 2026 年 10 月才根據 ranking 建立 / 持有 portfolio
假設:
以及:
則:
所以這隻股票的 12–2 momentum signal 是:
即使 2026 年 9 月價格由 140 升到 170,這段最新月份的升幅仍然不會計入這次 12–2 signal。
為甚麼要刻意 Skip 最近一個月?
Section titled “為甚麼要刻意 Skip 最近一個月?”這是 12–2 momentum 最重要的設計之一。
中期 return continuation 與 very-short-term price behaviour 並不完全一樣。
研究上,最近一個月可能受到:
- short-term reversal
- temporary overreaction
- bid-ask / microstructure effects
- news shock
- very short-term mean reversion
影響。
因此 academic momentum 常把最近一個月獨立出去,不讓它主導 medium-term momentum signal。
例如:
Longer-term path:100 → 105 → 112 → 120 → 130 → 140
Most recent month:140 → 125如果直接使用 trailing return,最近一個月的大跌會明顯拉低 momentum。
12–2 momentum 問的是:
在最近這個短期波動發生之前,這隻股票是不是一隻強勢的 medium-term winner?
這與單純問:
過去剛好 12 個月總共升了多少?
不是完全相同的問題。
12–2 Momentum 與普通 Trailing 12-Month Return 的分別
Section titled “12–2 Momentum 與普通 Trailing 12-Month Return 的分別”普通 trailing 12-month return 可能寫成:
它包含最近月份。
但 12–2 momentum:
刻意不使用最近一個月。
例如:
100 → 150 → 120假設 150 是一個月前價格,120 是現在價格。
普通 trailing return 可能只有:
但 skipped-month momentum 仍可能接近:
兩個 measure 捕捉的是不同資訊。
重要:一隻股票的 12–2 Return 還不是 Momentum Factor
Section titled “重要:一隻股票的 12–2 Return 還不是 Momentum Factor”假設 Oracle:
這只代表:
Oracle 自己的 12–2 momentum signal 是 35%。
它還不是 academic momentum factor。
要建立 Cross-sectional Momentum,需要對整個股票 universe 做同樣計算。
例如:
| Stock | 12–2 Return |
|---|---|
| A | +75% |
| B | +48% |
| ORCL | +35% |
| D | +10% |
| E | -8% |
| F | -40% |
然後將所有股票排序。
可以進一步轉成:
例如 ORCL 比 88% 股票強:
所以對 MarketLens 而言,這兩個數字應該分開保存:
MOM12_2 = 35%MomentumPercentile = 88Kenneth French 如何把它變成真正 MOM Factor?
Section titled “Kenneth French 如何把它變成真正 MOM Factor?”Kenneth French 的 momentum factor 不只是將股票按 momentum 排序,還會考慮 size。
股票先分:
SmallBig再按 prior (2–12) return 分為:
LowNeutralHigh因此形成六個 portfolios:
SL = Small LowSN = Small NeutralSH = Small High
BL = Big LowBN = Big NeutralBH = Big High其中:
High= winnersLow= losers
Momentum factor 可以簡化表示為:
也就是:
有些文獻會用:
WML = Winners Minus Losers來描述同一個核心概念。
12–2 Signal 與 MOM Factor Return 是不同時間的東西
Section titled “12–2 Signal 與 MOM Factor Return 是不同時間的東西”這一點做 backtest 時非常重要。
12–2 return 是 formation signal。
即用過去資料決定:
Who is a winner?Who is a loser?真正 MOM factor return 則是:
這些 winner / loser portfolios 在之後 holding period 的回報差。
所以:
Past 12–2 Return ↓Cross-sectional Ranking ↓Winner / Loser Groups ↓Hold Portfolios ↓Future Winner Return − Future Loser Return ↓Momentum Factor Return即:
MOM Factor Return 數值例子
Section titled “MOM Factor Return 數值例子”假設下一個月:
Small Winners:
Big Winners:
Small Losers:
Big Losers:
Winner portfolio:
Loser portfolio:
Momentum factor:
所以:
注意:
這個 3.5% 不是過去的 12–2 return,而是根據過去 12–2 ranking 建立 portfolio 後,下一期 winner-minus-loser 的 realized return。
對 MarketLens 最乾淨的實作方法
Section titled “對 MarketLens 最乾淨的實作方法”MarketLens 最好不要把所有 momentum 資訊立即壓縮成一個數字。
可以保留:
Ticker: ORCL
MOM12_2 = 31.4%ROC63 = 8.2%MOM12_2 Percentile = 91它們代表:
MOM12_2
Section titled “MOM12_2”Academic-style medium-term momentum:
較近期、約 3 個月的 momentum:
MOM12_2 Percentile
Section titled “MOM12_2 Percentile”Oracle 的 12–2 momentum 相對整個 universe 的 ranking:
例如:
MOM12_2 = 31.4%ROC63 = 8.2%MOM12_2 Percentile = 91可以解讀為:
ORCL 在 academic 12–2 window 上升約 31.4%;較近期 63-session momentum 為 +8.2%;而它的 12–2 momentum 強過約 91% 的股票 universe。
這比立即將所有數字相加更清晰,也更適合逐個 backtest。
最重要的 Conceptual Flow
Section titled “最重要的 Conceptual Flow”可以記住:
其中:
- 12–2 Return = signal
- Percentile / Rank = relative strength in the universe
- Winner / Loser grouping = portfolio formation
- Future WML return = academic momentum factor realization
這四個步驟不要混為同一個數字。
French MOM Factor
Section titled “French MOM Factor”簡化寫法:
這個定義非常適合用作 MarketLens 的 academic baseline。
4.3 Moskowitz & Grinblatt (1999):Industry Momentum
Section titled “4.3 Moskowitz & Grinblatt (1999):Industry Momentum”論文:
Tobias Moskowitz & Mark Grinblatt (1999), Do Industries Explain Momentum?
核心思想:
股票 momentum 有一部分可能來自行業 momentum。
Industry Return
Section titled “Industry Return”假設行業 (g) 有 (N_g) 隻股票:
其中 (w_i) 可以 equal weight 或 value weight。
再計算行業 formation-period return:
然後:
- Buy winning industries
- Short losing industries
對 MarketLens 的意義
Section titled “對 MarketLens 的意義”若 Oracle 本身 momentum 強,而且 software / technology industry momentum 同時強,訊號比只看單股更完整。
4.4 Lee & Swaminathan (2000):Momentum + Trading Volume
Section titled “4.4 Lee & Swaminathan (2000):Momentum + Trading Volume”論文:
Charles Lee & Bhaskaran Swaminathan (2000), Price Momentum and Trading Volume.
他們指出 past trading volume 對 momentum 的 magnitude 和 persistence 有資訊。
Turnover
Section titled “Turnover”常見 turnover 定義:
多期平均:
研究上可將:
- 過去 return momentum
- 過去 turnover / volume
做 double sort。
MarketLens 可實作的簡化版本
Section titled “MarketLens 可實作的簡化版本”例如:
但要注意:
這個
VolumeRatio是實務簡化版本,不是 Lee–Swaminathan 論文的唯一標準公式。
4.5 George & Hwang (2004):52-Week High Momentum
Section titled “4.5 George & Hwang (2004):52-Week High Momentum”論文:
Thomas George & Chuan-Yang Hwang (2004), The 52-Week High and Momentum Investing.
核心 measure:
範圍通常:
越接近 1:
現價越接近過去 52 周最高價。
例如:
- 現價:95
- 52-week high:100
George & Hwang 用這個 ratio 排名股票,研究股票「距離 52-week high 有多近」是否能解釋未來回報。
與 MarketLens 現有做法
Section titled “與 MarketLens 現有做法”你現在:
close >= 0.85 * high_252即:
這個方向與 52-week-high literature 是一致的,但 85% threshold 是你系統自己的 cutoff,不是 George & Hwang 的標準學術 cutoff。
4.6 Blitz, Huij & Martens (2011):Residual Momentum
Section titled “4.6 Blitz, Huij & Martens (2011):Residual Momentum”論文:
David Blitz, Joop Huij & Martin Martens (2011), Residual Momentum.
先用 Fama–French factors 解釋股票 return:
其中:
意思是:
把市場、size、value exposure 能解釋的部分拿走後,剩下的 firm-specific return。
研究通常用 rolling regression,例如 36 months。
之後計算過去 12 個月、通常跳過最近一個月的 residual momentum:
也有研究以平均 residual return / residual volatility 表示。
普通 momentum:
Residual momentum 嘗試集中於:
4.7 Novy-Marx (2012):Intermediate-Horizon Momentum
Section titled “4.7 Novy-Marx (2012):Intermediate-Horizon Momentum”論文:
Robert Novy-Marx (2012), Is Momentum Really Momentum?
一個很重要的結論是:
Momentum 的力量不一定主要來自最近幾個月;較早的 intermediate-horizon performance 很重要。
研究特別指出約 12 至 7 個月前的表現具有重要資訊。
可以建立:
再與 recent momentum 比較:
對 MarketLens 的意義
Section titled “對 MarketLens 的意義”不要假設:
越近的 return 一定越重要。
你現在 weighted RS:
給 3-month 最大權重,是一個合理的自訂 heuristic,但 不等於 Novy-Marx 的 academic result。
4.8 Moskowitz, Ooi & Pedersen (2012):Time-Series Momentum
Section titled “4.8 Moskowitz, Ooi & Pedersen (2012):Time-Series Momentum”經典論文:
Tobias Moskowitz, Yao Hua Ooi & Lasse Heje Pedersen (2012), Time Series Momentum.
這個方法非常接近 Trend Following。
核心 Signal
Section titled “核心 Signal”看資產自己的過去 12 個月 excess return:
即:
Volatility Scaling
Section titled “Volatility Scaling”論文使用 inverse volatility 調整倉位。
其經典形式:
其中:
- (40%):單一 instrument 的目標年化波幅設定
- (\sigma^i_t):估計的 ex-ante annualized volatility
40% 是論文中的 sizing convention,不是自然定律。
EWMA Volatility
Section titled “EWMA Volatility”論文使用 exponentially weighted squared daily returns:
而 (\delta) 被設定到令 weights 的 center of mass 約為 60 日。
這不是「哪一隻股票比其他股票強」。
它問:
這一個 instrument 自己的過去 return 是否為正?
所以:
- Cross-sectional momentum = relative
- Time-series momentum = absolute / directional
4.9 Asness, Moskowitz & Pedersen (2013):Value and Momentum Everywhere
Section titled “4.9 Asness, Moskowitz & Pedersen (2013):Value and Momentum Everywhere”論文:
Clifford Asness, Tobias Moskowitz & Lasse Heje Pedersen (2013), Value and Momentum Everywhere.
研究將 momentum 概念放到多個 asset classes。
一般 cross-sectional momentum signal 可以寫成:
再在同一 asset class 內做排名:
最高組做多,最低組做空。
重要意義:
Momentum 不只是一種單一美股 chart pattern,而是一個跨市場的 empirical phenomenon。
4.10 Fama & French (2012):International Momentum
Section titled “4.10 Fama & French (2012):International Momentum”論文:
Eugene Fama & Kenneth French (2012), Size, Value, and Momentum in International Stock Returns.
他們研究 North America、Europe、Japan、Asia Pacific 等地區。
學術 implication:
- Momentum 不是只在單一市場研究出現;
- 但不同 region、size group 的效果並不完全相同;
- 市場 / 國家差異不能忽略。
對 MarketLens:
若將來由 US 擴展到 HK / global,不應直接假設同一 threshold、同一 lookback、同一 percentile 都最適合。
4.11 Barroso & Santa-Clara (2015):Risk-Managed Momentum
Section titled “4.11 Barroso & Santa-Clara (2015):Risk-Managed Momentum”論文:
Pedro Barroso & Pedro Santa-Clara (2015), Momentum Has Its Moments.
Momentum 的一大問題:
平時表現可以很好,但在某些 regime 會出現非常大的 crash。
Risk-managed momentum 的基本思想:
當 momentum strategy 自身波幅變高,降低 exposure。
一般化寫法:
其中:
- (\sigma^*):target volatility
- (\hat{\sigma}_{MOM,t}):momentum strategy 預測波幅
risk-managed return:
即:
volatility 高 → position 小
volatility 低 → position 大
4.12 Daniel & Moskowitz (2016):Momentum Crashes
Section titled “4.12 Daniel & Moskowitz (2016):Momentum Crashes”論文:
Kent Daniel & Tobias Moskowitz (2016), Momentum Crashes.
研究重點不是另一條簡單 momentum score,而是提醒:
Momentum 的風險具有 regime dependence。
特別需要觀察:
- 市場之前是否大跌;
- volatility 是否很高;
- 是否發生急劇 rebound;
- loser portfolio 是否突然強烈反彈。
因此一個成熟 MarketLens 不應只有:
而應該考慮:
5. Trend:主要學術研究與公式
Section titled “5. Trend:主要學術研究與公式”5.1 Simple Moving Average
Section titled “5.1 Simple Moving Average”最基本趨勢工具:
例如:
Price Above MA
Section titled “Price Above MA”最簡單 trend signal:
5.2 Exponential Moving Average
Section titled “5.2 Exponential Moving Average”通常:
EMA 對新價格反應較快。
MarketLens 現有 weekly MTF 使用:
- EMA10
- EMA30
就是 trend filtering。
5.3 Moving-Average Crossover
Section titled “5.3 Moving-Average Crossover”設:
- (MA_S):short moving average
- (MA_L):long moving average
Signal:
即:
典型例子:
- SMA50 > SMA200
- EMA10 > EMA30
- SMA20 > SMA50
Moving-Average Stack
Section titled “Moving-Average Stack”更嚴格:
這是一種 trend structure / alignment,不是經典 cross-sectional momentum formula。
5.4 Brock, Lakonishok & LeBaron (1992):Moving Average / Trading Range Break
Section titled “5.4 Brock, Lakonishok & LeBaron (1992):Moving Average / Trading Range Break”論文:
William Brock, Josef Lakonishok & Blake LeBaron (1992), Simple Technical Trading Rules and the Stochastic Properties of Stock Returns.
他們測試兩類經典 technical rules:
- Moving-average rules
- Trading-range breakout rules
Moving average rule 的一般形式:
論文研究過多種 MA combinations,例如:
- 1–50
- 1–150
- 5–150
- 1–200
- 2–200
亦測試帶 band 的版本,用來降低 whipsaw。
如果設定 band (b):
5.5 Time-Series Momentum 作為 Trend Following
Section titled “5.5 Time-Series Momentum 作為 Trend Following”Moskowitz–Ooi–Pedersen 的 TSMOM 本質上就是:
過去上升 → long
過去下降 → short
因此:
這是一種「return-based trend filter」。
Moving average 則是一種「price-level-based trend filter」。
兩者不是表面完全相同,但可在更一般化的 linear-filter framework 下建立關係。
5.6 Hurst, Ooi & Pedersen (2017):Multi-Horizon Trend
Section titled “5.6 Hurst, Ooi & Pedersen (2017):Multi-Horizon Trend”論文:
Brian Hurst, Yao Hua Ooi & Lasse Heje Pedersen (2017), A Century of Evidence on Trend-Following Investing.
他們使用:
- 1-month trend
- 3-month trend
- 12-month trend
然後做 equal-weight combination。
每個 horizon:
其中:
綜合 signal 可簡化表示:
實際策略亦配合 volatility targeting。
不要只相信一個 horizon。
一隻股票可能:
- 1m positive
- 3m positive
- 12m negative
代表短期反彈,但長期 trend 尚未恢復。
5.7 Levine & Pedersen (2016):Trend Filters 的統一框架
Section titled “5.7 Levine & Pedersen (2016):Trend Filters 的統一框架”論文:
Ari Levine & Lasse Heje Pedersen (2016), Which Trend Is Your Friend?
他們指出:
- Time-series momentum
- Moving-average crossover
- 其他 linear trend filters
在一般化形式下可以互相聯繫。
一個一般 linear trend signal:
其中:
- (r_{t-k}):過去 return
- (w_k):每個 lag 的權重
不同 trend method,其實很多時只是:
對過去不同時間的 return 使用不同 weight pattern。
最簡單 TSMOM:
即過去所有期間大致同方向累積。
Moving-average crossover 則隱含一組不同的 positive / negative lag weights。
這個框架非常適合 MarketLens,因為你可以把:
- ROC
- MA crossover
- EMA
- multi-horizon trend
視作不同 filters,而不是完全獨立的「edge」。
5.8 Han, Zhou & Zhu (2016):Trend Factor
Section titled “5.8 Han, Zhou & Zhu (2016):Trend Factor”論文:
Yufeng Han, Guofu Zhou & Yingzi Zhu (2016), A Trend Factor: Any Economic Gains from Using Information over Investment Horizons?
他們嘗試同時捕捉:
- short-term trend
- intermediate-term trend
- long-term trend
研究使用多個 moving-average price signals,時間尺度由幾日至約 1,000 日,然後透過 cross-sectional regression 將多個 signals 統一到 forecasted returns,再形成 long-short trend factor。
抽象化表示:
其中:
- (X^{(h)}):不同 horizon 的 moving-average / trend signal
- (b_h):cross-sectional regression coefficient
- (\hat R):forecasted return
再:
- Long highest forecast group
- Short lowest forecast group
對 MarketLens 的啟示
Section titled “對 MarketLens 的啟示”一個「Trend Score」可以不是單一 SMA200,而是 multi-horizon ensemble。
5.9 Regression Trend / Slope
Section titled “5.9 Regression Trend / Slope”這是 quantitative technical analysis 常用的方法。
對最近 (N) 日 log price:
設定:
OLS slope:
- (b>0):uptrend
- (b<0):downtrend
- (|b|) 越大:方向越陡
可轉 annualized slope:
亦可加入 (R^2):
這樣可以區分:
- 漲得快但很亂
- 漲得穩而且持續
這是一個常見 quantitative implementation,不應誤標成 Jegadeesh–Titman 或 Moskowitz 的原始公式。
5.10 Breakout / Trading Range
Section titled “5.10 Breakout / Trading Range”過去 (N) 日高位:
過去 (N) 日低位:
Breakout signal:
這屬於 trend-following / breakout family。
6. Momentum 與 Trend 的真正分別
Section titled “6. Momentum 與 Trend 的真正分別”| 問題 | Momentum | Trend |
|---|---|---|
| 看什麼? | 過去 return / relative return | 價格方向與結構 |
| 是否一定要比較其他股票? | Cross-sectional momentum:是 | 不一定 |
| 是否只看自己的歷史? | TSMOM:是 | 通常是 |
| 常見公式 | ROC、12–2 return、rank、TSMOM | MA、EMA、slope、breakout |
| 強調 | continuation / relative winner | persistent direction |
| 可否一升一跌? | 可以 | 可以 |
| 典型 horizon | 幾個月至一年 | 幾日至多年都可以 |
Momentum 是「過去表現延續性」;Trend 是「價格方向結構」。
兩者可以高度相關,但不應在概念上完全合併。
7. 常見指標公式總表
Section titled “7. 常見指標公式總表”| 指標 | 公式 / 定義 | 類型 |
|---|---|---|
| ROC | (P_t/P_{t-n}-1) | Momentum |
| Log Return | (\ln(P_t/P_{t-n})) | Return |
| 12–2 Momentum | (R_{t-12:t-2}) | Cross-sectional Momentum |
| Rank / Percentile | cross-sectional rank | Relative Momentum |
| 52w High Ratio | (P_t/\max(P_{t-251:t})) | Momentum / Anchor |
| RS Line | (P_{stock}/P_{benchmark}) | Relative Strength |
| TSMOM | (sign(R_{past})) | Momentum + Trend |
| SMA | (\frac1N\sum P) | Trend |
| EMA | (\alpha P_t+(1-\alpha)EMA_{t-1}) | Trend |
| MA Crossover | (sign(MA_S-MA_L)) | Trend |
| SMA Slope | ((SMA_t-SMA_{t-k})/SMA_{t-k}) | Trend |
| Regression Slope | OLS slope of log price | Trend |
| Breakout | (P_t>HH_N) | Trend |
| Volatility | std(return)(\sqrt{252}) | Risk |
| Volume Ratio | (Volume/SMA(Volume)) | Confirmation |
| Residual MOM | residual return / residual vol | Momentum |
| Vol-Scaled MOM | (\sigma^*/\hat\sigma \times MOM) | Risk-managed Momentum |
8. 如何把不同訊號標準化及比較
Section titled “8. 如何把不同訊號標準化及比較”如果直接把:
- ROC63 = 18%
- High52Ratio = 0.94
- MA slope = 0.03
- RS percentile = 91
相加,是沒有統計尺度一致性的。
更好的方法:
8.1 Percentile Rank
Section titled “8.1 Percentile Rank”對整個股票 universe:
範圍:
例如:
- ROC percentile = 0.92
- 52w-high percentile = 0.85
- regression-trend percentile = 0.88
便可以比較。
8.2 Z-Score
Section titled “8.2 Z-Score”再 winsorize,例如:
降低 outlier 影響。
8.3 Composite Momentum Score
Section titled “8.3 Composite Momentum Score”例如:
但這些 weights 是 模型設計選擇,需要回測驗證,不能稱為學術定律。
8.4 Composite Trend Score
Section titled “8.4 Composite Trend Score”例如:
同樣需要 out-of-sample 驗證。
9. 你的 MarketLens edges.py 現有做法
Section titled “9. 你的 MarketLens edges.py 現有做法”你目前 edge_momentum_trend() 大致包括:
9.1 Price > SMA50
Section titled “9.1 Price > SMA50”+3 points。
9.2 SMA Stack
Section titled “9.2 SMA Stack”+3。
+3。
9.3 SMA200 Rising
Section titled “9.3 SMA200 Rising”程式比較:
+3。
這是一個 Trend signal。
9.4 ROC63
Section titled “9.4 ROC63”程式:
實際 indexing 使用 64 個 close 位置來取得相隔 63 sessions 的價格。
Scoring:
- (ROC63\ge15%):+4
- (0<ROC63<15%):+2
這是 Momentum。
9.5 Near 52-Week High
Section titled “9.5 Near 52-Week High”+2。
這與 George–Hwang 類別概念相近,但 85% threshold 是 MarketLens 自訂。
9.6 Weighted RS Raw
Section titled “9.6 Weighted RS Raw”你程式另外有:
約等於:
- 40% × 3-month return
- 20% × 6-month
- 20% × 9-month
- 20% × 12-month
這是一個 custom multi-horizon momentum measure。
它不是 Jegadeesh–Titman、Carhart、Moskowitz–Ooi–Pedersen 的原始公式。
9.7 Weekly / Daily MTF
Section titled “9.7 Weekly / Daily MTF”你另一個 edge 使用:
Weekly:
Daily:
這本質上是 Multi-Timeframe Trend。
10. MarketLens:建議把 Momentum 與 Trend 分拆
Section titled “10. MarketLens:建議把 Momentum 與 Trend 分拆”你現在:
Momentum & Trend其實可以拆成:
A. Momentum EdgeB. Trend EdgeC. Relative Strength EdgeD. Multi-Timeframe Trend Edge這樣研究上更乾淨。
10.1 Momentum Edge
Section titled “10.1 Momentum Edge”可以包括:
Academic Core
Section titled “Academic Core”Short / Medium Momentum
Section titled “Short / Medium Momentum”52-Week High
Section titled “52-Week High”Optional
Section titled “Optional”10.2 Trend Edge
Section titled “10.2 Trend Edge”可以包括:
Long-Term Trend
Section titled “Long-Term Trend”MA Structure
Section titled “MA Structure”Rising Long MA
Section titled “Rising Long MA”Time-Series Momentum
Section titled “Time-Series Momentum”Multi-Horizon Trend
Section titled “Multi-Horizon Trend”10.3 Relative Strength Edge
Section titled “10.3 Relative Strength Edge”你現有 RS line:
如果:
代表 relative-strength line 創 52-week high。
另外使用 market-wide percentile:
會更接近 cross-sectional academic logic。
11. 避免 Double Counting
Section titled “11. 避免 Double Counting”這對 MarketLens 很重要。
如果同時給分:
- Price > SMA50
- SMA50 > SMA150
- SMA150 > SMA200
- SMA20 > SMA50
- EMA10 > EMA30
- ROC63 positive
- 52-week high
- 12m TSMOM positive
它們很可能都在量度同一個 latent variable:
prices have been going up
因此表面有「8 個 edges」,實際可能只有 2–3 個獨立資訊來源。
方法一:Correlation Matrix
Section titled “方法一:Correlation Matrix”回測所有 signals:
如果:
便要懷疑 double counting。
方法二:Factor Buckets
Section titled “方法二:Factor Buckets”可分:
- Momentum
- Trend
- Relative Strength
- Volume / Participation
- Volatility / Contraction
- Market Regime
- Risk / Reward
每個 bucket 先算自己的 score,再 combine。
方法三:Regression / Incremental Information
Section titled “方法三:Regression / Incremental Information”例如:
看加入新 signal 後:
- (t)-stat 有沒有增加
- out-of-sample IC 有沒有增加
- Sharpe 是否增加
- drawdown 是否改善
12. 回測方法:如何知道一條公式真的有 Edge
Section titled “12. 回測方法:如何知道一條公式真的有 Edge”不能因為論文出現過就直接假設你目前 universe 一定有效。
12.1 Information Coefficient
Section titled “12.1 Information Coefficient”用今日 signal 預測未來 return:
可使用:
- Pearson IC
- Spearman Rank IC
Cross-sectional signals 通常很適合 Spearman IC。
12.2 Quantile Test
Section titled “12.2 Quantile Test”把股票按 signal 分:
- Q1:最弱
- Q2
- Q3
- Q4
- Q5:最強
檢查:
是否穩定為正。
12.3 Hit Rate
Section titled “12.3 Hit Rate”但只看 hit rate 不夠。
12.4 Expectancy
Section titled “12.4 Expectancy”策略 edge 最終要回到 expectancy。
12.5 Sharpe Ratio
Section titled “12.5 Sharpe Ratio”12.6 Maximum Drawdown
Section titled “12.6 Maximum Drawdown”Equity peak:
Drawdown:
Max Drawdown:
12.7 Walk-Forward / Out-of-Sample
Section titled “12.7 Walk-Forward / Out-of-Sample”不要只在同一 dataset:
- 找 threshold
- 測 threshold
- 宣布有效
應該:
Train period ↓Parameter selection ↓Validation period ↓Lock model ↓Out-of-sample test12.8 Transaction Costs
Section titled “12.8 Transaction Costs”真實回報:
Momentum / trend strategy 如果 turnover 高,成本尤其重要。
13. 簡單數值例子
Section titled “13. 簡單數值例子”假設一隻股票:
| 數值 | Value |
|---|---|
| Current Price | 120 |
| 63d ago | 100 |
| 126d ago | 92 |
| 189d ago | 88 |
| 252d ago | 80 |
| SMA50 | 112 |
| SMA150 | 101 |
| SMA200 | 95 |
| SMA200 31d ago | 92 |
| 52w high | 125 |
13.1 ROC63
Section titled “13.1 ROC63”Momentum 強。
13.2 52-Week High Ratio
Section titled “13.2 52-Week High Ratio”即距離 52-week high 只有 4%。
13.3 MA Structure
Section titled “13.3 MA Structure”符合:
13.4 SMA200 Slope
Section titled “13.4 SMA200 Slope”簡化:
長期 trend 向上。
13.5 MarketLens Weighted RS
Section titled “13.5 MarketLens Weighted RS”3m:
6m:
9m:
12m:
因此:
注意:
這個 31.35% 是 custom weighted momentum number,不是 annual return,也不是 percentile,除非你再拿它與整個 universe 比較。
14. 主要學者與研究總表
Section titled “14. 主要學者與研究總表”| 年份 | 學者 | 研究 | 核心方法 |
|---|---|---|---|
| 1992 | Brock, Lakonishok, LeBaron | Simple Technical Trading Rules | MA crossover、trading-range breakout |
| 1993 | Jegadeesh, Titman | Winners vs Losers | Cross-sectional J/K momentum |
| 1997 | Carhart | Four-Factor Model | 加入 momentum factor |
| 1999 | Moskowitz, Grinblatt | Industry Momentum | 行業 winners / losers |
| 1999 | Hong, Stein | Underreaction / Overreaction | Momentum 理論機制 |
| 2000 | Lee, Swaminathan | Momentum + Volume | Volume 解釋 momentum persistence |
| 2004 | George, Hwang | 52-Week High | Price / 52-week-high ratio |
| 2011 | Blitz, Huij, Martens | Residual Momentum | Factor-adjusted residual momentum |
| 2012 | Novy-Marx | Intermediate Horizon | 強調 12–7 月前資訊 |
| 2012 | Moskowitz, Ooi, Pedersen | Time-Series Momentum | sign(past return) + vol scaling |
| 2012 | Fama, French | International Momentum | 跨 region momentum |
| 2013 | Asness, Moskowitz, Pedersen | Momentum Everywhere | 跨 asset class |
| 2015 | Barroso, Santa-Clara | Risk-Managed Momentum | volatility-managed exposure |
| 2016 | Daniel, Moskowitz | Momentum Crashes | regime-dependent crash risk |
| 2016 | Levine, Pedersen | Which Trend Is Your Friend? | TSMOM / MA / linear filters |
| 2016 | Han, Zhou, Zhu | Trend Factor | multi-horizon moving-average information |
| 2017 | Hurst, Ooi, Pedersen | Century of Trend Following | 1m/3m/12m TSMOM |
15. 實作優先次序
Section titled “15. 實作優先次序”如果 MarketLens 要由現時 heuristic 慢慢變成研究型系統,我會按以下次序:
Phase 1 — 保留你現有模型,但分拆分類
Section titled “Phase 1 — 保留你現有模型,但分拆分類”MomentumTrendRelative StrengthMTFVolume / Price ActionMarketRiskPhase 2 — 加 Academic Momentum Baseline
Section titled “Phase 2 — 加 Academic Momentum Baseline”先加入:
及:
因為這是很重要的 academic benchmark。
Phase 3 — 加 Absolute / TSMOM
Section titled “Phase 3 — 加 Absolute / TSMOM”加入:
建立 multi-horizon trend。
Phase 4 — 把 Trend 變成 Continuous Score
Section titled “Phase 4 — 把 Trend 變成 Continuous Score”不再只有:
pass / fail而是:
Phase 5 — Signal Correlation
Section titled “Phase 5 — Signal Correlation”測試:
ROC63MOM12-2High52RS percentileSMA slopeTSMOM12MTF之間的 correlation。
移除高度重複的訊號。
Phase 6 — Walk-Forward Optimization
Section titled “Phase 6 — Walk-Forward Optimization”不要直接問:
哪個 weight 最好?
而要問:
哪個 weight 在 out-of-sample 不同年份、不同 market regime 仍然穩定?
16. 重要限制
Section titled “16. 重要限制”- Academic evidence 不代表未來一定有效。
- 不同市場、年代、交易成本會改變結果。
- Momentum 本身存在 crash risk。
- Trend signals 有 lag。
- 短期 MA 很容易 whipsaw。
- Cross-sectional momentum 必須定義 universe。
- Survivorship bias 會嚴重誇大結果。
- Look-ahead bias 必須完全避免。
- Delisted stocks 不應從歷史 universe 消失。
- Price data 最好使用調整後價格處理 split / dividend,但要與研究目的保持一致。
- 不能用同一 period 同時 tune 和 evaluate。
- 多個 highly correlated signals 不應重複當成多個獨立 edges。
- 所有 threshold,例如
ROC63 >= 15%、near high >= 85%,都應標示為 model parameter,而不是自然法則。 - 論文中的 long-short portfolio 不等於你實際只做 long-only stock picking 時會得到相同結果。
17. References
Section titled “17. References”Foundational Momentum
Section titled “Foundational Momentum”-
Jegadeesh, N. & Titman, S. (1993). Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency. The Journal of Finance, 48(1), 65–91.
https://doi.org/10.1111/j.1540-6261.1993.tb04702.x
PDF mirror: https://www.bauer.uh.edu/rsusmel/phd/jegadeesh-titman93.pdf -
Carhart, M. M. (1997). On Persistence in Mutual Fund Performance. The Journal of Finance, 52(1), 57–82.
https://doi.org/10.1111/j.1540-6261.1997.tb03808.x -
Kenneth R. French Data Library. Momentum Factor (Mom) / Prior (2–12) Return.
https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/data_library.html
Momentum construction: https://mba.tuck.dartmouth.edu/pages/faculty/ken.french/Data_Library/det_mom_factor.html -
Moskowitz, T. J. & Grinblatt, M. (1999). Do Industries Explain Momentum? The Journal of Finance, 54(4), 1249–1290.
https://doi.org/10.1111/0022-1082.00146 -
Lee, C. M. C. & Swaminathan, B. (2000). Price Momentum and Trading Volume. The Journal of Finance, 55(5), 2017–2069.
https://doi.org/10.1111/0022-1082.00280 -
George, T. J. & Hwang, C.-Y. (2004). The 52-Week High and Momentum Investing. The Journal of Finance, 59(5), 2145–2176.
https://doi.org/10.1111/j.1540-6261.2004.00695.x
PDF: https://www.bauer.uh.edu/tgeorge/papers/gh4-paper.pdf -
Blitz, D., Huij, J. & Martens, M. (2011). Residual Momentum. Journal of Empirical Finance, 18(3), 506–521.
https://doi.org/10.1016/j.jempfin.2011.01.003 -
Novy-Marx, R. (2012). Is Momentum Really Momentum? Journal of Financial Economics, 103(3), 429–453.
https://doi.org/10.1016/j.jfineco.2011.05.003 -
Fama, E. F. & French, K. R. (2012). Size, Value, and Momentum in International Stock Returns. Journal of Financial Economics, 105(3), 457–472.
https://doi.org/10.1016/j.jfineco.2012.05.011 -
Asness, C. S., Moskowitz, T. J. & Pedersen, L. H. (2013). Value and Momentum Everywhere. The Journal of Finance, 68(3), 929–985.
https://doi.org/10.1111/jofi.12021
PDF: https://pages.stern.nyu.edu/~lpederse/papers/ValMomEverywhere.pdf
Time-Series Momentum / Trend Following
Section titled “Time-Series Momentum / Trend Following”-
Moskowitz, T. J., Ooi, Y. H. & Pedersen, L. H. (2012). Time Series Momentum. Journal of Financial Economics, 104(2), 228–250.
https://doi.org/10.1016/j.jfineco.2011.11.003
PDF: https://w4.stern.nyu.edu/facdir/lpederse/papers/TimeSeriesMomentum.pdf -
Levine, A. & Pedersen, L. H. (2016). Which Trend Is Your Friend? Financial Analysts Journal, 72(3).
https://doi.org/10.2469/faj.v72.n3.3 -
Han, Y., Zhou, G. & Zhu, Y. (2016). A Trend Factor: Any Economic Gains from Using Information over Investment Horizons? Journal of Financial Economics, 122(2), 352–375.
https://doi.org/10.1016/j.jfineco.2016.01.029 -
Hurst, B., Ooi, Y. H. & Pedersen, L. H. (2017). A Century of Evidence on Trend-Following Investing. The Journal of Portfolio Management, 44(1).
SSRN: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2993026
PDF: https://fairmodel.econ.yale.edu/ec439/hurst.pdf -
Brock, W., Lakonishok, J. & LeBaron, B. (1992). Simple Technical Trading Rules and the Stochastic Properties of Stock Returns. The Journal of Finance, 47(5), 1731–1764.
https://doi.org/10.1111/j.1540-6261.1992.tb04681.x
Momentum Risk / Theory
Section titled “Momentum Risk / Theory”-
Barroso, P. & Santa-Clara, P. (2015). Momentum Has Its Moments. Journal of Financial Economics, 116(1), 111–120.
https://doi.org/10.1016/j.jfineco.2014.11.010 -
Daniel, K. & Moskowitz, T. J. (2016). Momentum Crashes. Journal of Financial Economics, 122(2), 221–247.
https://doi.org/10.1016/j.jfineco.2015.12.002 -
Hong, H. & Stein, J. C. (1999). A Unified Theory of Underreaction, Momentum Trading, and Overreaction in Asset Markets. The Journal of Finance, 54(6), 2143–2184.
https://doi.org/10.1111/0022-1082.00184
Final Summary
Section titled “Final Summary”最重要的結論可以濃縮成四句:
- Momentum ≠ Trend。
- Cross-sectional momentum 是「股票之間的相對排名」。
- Time-series momentum 是「資產自己過去方向的延續」,因此與 trend following 非常接近。
- MarketLens 最好把 Momentum、Trend、Relative Strength、MTF 分開計算,再在 composite layer 合併,而不是把所有上升型訊號全部當成獨立 edge 重複加分。
對 MarketLens 而言,一個比較乾淨的研究架構可以是:
Price Data │ ├── Momentum │ ├── MOM 12–2 │ ├── ROC63 / ROC126 │ └── 52-Week High │ ├── Trend │ ├── MA Stack │ ├── MA Slope │ ├── Regression Slope │ └── TSMOM 1m / 3m / 12m │ ├── Relative Strength │ ├── Stock / Benchmark RS Line │ └── Cross-sectional Percentile │ ├── Confirmation │ ├── Volume │ ├── Breakout │ └── Multi-Timeframe │ └── Risk / Market Regime ├── Volatility ├── Broad Market ├── Drawdown └── Position Sizing這樣每個 edge 的數學意義會清楚很多,也更容易逐一 backtest,判斷它究竟提供新的 information,還是只是在重複計算同一個 trend。