0bps

Learn / Track V / lesson 1 of 5

Trend and momentum

The most robust anomaly in finance — what time-series and cross-sectional momentum are, why they might work, and how they fail.

11 min read

Assets that have gone up tend to keep going up, for a while. This pattern has been documented across equities, bonds, currencies and commodities over more than a century of data, and it is the engine behind most of the trend-following strategies in the vault.

Two kinds of momentum

Time-series momentum (trend following) looks at each asset on its own: go long if its own past return is positive, short if negative. Moskowitz, Ooi and Pedersen (2012) documented it across 58 futures markets with a 12-month lookback.

Cross-sectional momentum ranks assets against each other: buy the recent winners, sell the recent losers, and stay roughly market-neutral. Jegadeesh and Titman (1993) found it in US stocks using 3- to 12-month formation periods, typically skipping the most recent month, which tends to reverse.

A minimal time-series momentum rule

For each asset ii, with ri,t−L:tr_{i,t-L:t} its return over the lookback LL and σ^i,t\hat\sigma_{i,t} its estimated volatility:

wi,t=sign⁡(ri,t−L:t)⋅σtargetσ^i,tw_{i,t} = \operatorname{sign}\big(r_{i,t-L:t}\big)\cdot \frac{\sigma_{\text{target}}}{\hat\sigma_{i,t}}

The volatility scaling matters as much as the signal: it makes each asset contribute similar risk and keeps the portfolio’s volatility roughly constant. Moving-average crossovers, breakouts of NN-day highs (the Donchian/“turtle” rule), and the sign of a regression slope are all variations of the same idea.

Why might it work?

  • Underreaction. Information diffuses slowly; investors anchor and update gradually.
  • Overreaction later. Herding and feedback trading extend trends past fair value.
  • Risk transfer. Hedgers pay to offload price risk; trend followers provide the insurance and are paid over time.

How it behaves

Trend following has a characteristic payoff: many small losses in choppy, range-bound markets, and occasional large gains in sustained moves. That makes its returns positively skewed and its performance in crises historically good (“crisis alpha”), because crises tend to be extended trends.

Cross-sectional momentum is different. It is prone to sudden, violent momentum crashes, typically when a beaten-down market rebounds sharply and the short leg (last year’s losers) rallies hardest — 2009 is the textbook example.

What usually kills a momentum backtest
  • Costs and turnover. Short lookbacks trade a lot. A signal that looks great before costs can be negative after them. Model fees, spread and slippage honestly.
  • Whipsaw in the parameter search. Picking the lookback that worked best in-sample (17 days, say) is overfitting. Robust momentum works across a broad range of lookbacks; blend several.
  • Ignoring volatility scaling. Unscaled trend systems end up dominated by whichever asset is most volatile.

Check your understanding

  • Why does volatility scaling make a portfolio’s Sharpe more stable even if it doesn’t change the signal?
  • Why is trend following positively skewed while mean reversion tends to be negatively skewed?

Then browse trend-following specs and momentum specs in the vault to see how people implement these ideas in Pine Script.

Put it to work

Build this idea

A spec is not a trading system. Paste this into your coding agent and AgenKit runs a specialist team — architecture, test-first build, risk gates, review — with paper trading on by default.

in Claude Code, Cursor, Codex & 4 more
/agenkit build a volatility-scaled time-series momentum system across BTC, ETH and SOL perps with a backtest engine, fee and slippage modelling, and paper trading by default
  1. npx agenkit install engineering-kit in your project
  2. Paste the command into your agent and approve each phase
  3. Get tests, backtest, risk controls and a paper-trading switch
esc

Try , , or .

↑↓ move↵ open