← All modules
Strategy module
Free

Classic pairs trading by the published Gatev–Goetzmann–Rouwenhorst distance method: form same-sector pairs on 12 months of normalized price distance, trade the spread at |z| ≥ 2, exit at z = 0, stop and retire the pair at |z| ≥ 4, over a 6-month trading window. Includes a disclosed long-leg variant for venues without shorting.

Historical simulation

labeled approximation — see the module's verification note

Historical simulation

Historical simulation on 2007–2026 daily data: CAGR -2.9%, Sharpe -1.14, max drawdown -44%.

Contents

  • LICENSE
  • PROVENANCE.md
  • SKILL.md

Why it exists

It aims to make money from relative mispricing rather than direction: when two historically locked-together stocks separate by 2 standard deviations, it buys the laggard and shorts the leader and collects the convergence, hedged against market and sector moves.

Data needed: Daily total-return price history for a liquid US equity universe, 18+ months (any source)

License: MIT