Loading…

How EQT Lab Scores Stocks

Contents

Composite Score & Scoring Pipeline

Every stock receives a Composite Momentum Score from 0 to 100. This aggregates 12 individual factor percentiles into a single measure of momentum strength, quality, and persistence.

1 Raw factor values
→
2 Cross-sectional percentile rank
→
3 Weighted average
→
4 Composite score [0–100]
Composite Score Formula
\[ S_i = \sum_{k=1}^{12} w_k \cdot \text{pctrank}(F_{k,i}) \times 100 \]
\(S_i\)Composite score for stock \(i\) (0–100)
\(w_k\)Weight of factor \(k\) (sums to 1.00)
\(\text{pctrank}(F_{k,i})\)Cross-sectional percentile rank of stock \(i\) on factor \(k\), computed over all constituents in the selected universe, ranging [0,1]

The percentile ranking approach is non-parametric — it requires no assumptions about the distribution of factor values and is robust to outliers. Each factor's raw value is converted to a rank relative to all peers in the selected universe before weighting.

15%
12-1 Momentum
Primary trend signal
12%
Sharpe Ratio
Risk-adjusted return
10%
6-1 Momentum
Medium-term signal
8%
FIP · Hurst · EWMA · Path R²
Four factors at 8% each
7%
Acceleration · Residual Mom.
Two factors at 7% each
6%
Omega · Calmar
Risk-quality measures

12-1 Momentum  Weight: 15%

12-Month Skip-Month Momentum
The canonical cross-sectional momentum factor of Jegadeesh & Titman (1993)
Highest Weight · 15%
Definition
\[ \text{Mom}^{12-1}_i = \frac{P_{i,t-1}}{P_{i,t-12}} - 1 \]
\(P_{i,t-1}\)Adjusted closing price of stock \(i\) one month ago
\(P_{i,t-12}\)Adjusted closing price 12 months ago

The skip-month convention (measuring over months \(t-12\) to \(t-1\) rather than \(t-12\) to \(t\)) is standard in academic momentum research. It excludes the most recent month to avoid contamination from short-term mean reversion caused by bid-ask bounce and liquidity effects documented by Jegadeesh (1990).

Positive signal: Return > 0 indicates price is higher than 12 months ago. Higher cross-sectional rank = stronger long-run trend.

Jegadeesh, N. & Titman, S. (1993). "Returns to Buying Winners and Selling Losers: Implications for Stock Market Efficiency." Journal of Finance, 48(1), 65–91.

Sharpe Ratio  Weight: 12%

Annualised Risk-Adjusted Return
Return per unit of total risk; Sharpe (1966)
12%
Definition
\[ \text{SR}_i = \frac{\bar{r}_i - r_f}{\sigma_i} \cdot \sqrt{252} \]
\(\bar{r}_i\)Mean daily log return over the 12-month window
\(r_f\)Risk-free rate (approximated as 0 for cross-sectional ranking purposes)
\(\sigma_i\)Standard deviation of daily log returns (total volatility)
\(\sqrt{252}\)Annualisation factor (252 trading days per year)

Signal direction: Higher = better. SR > 1.0 is considered good; SR > 2.0 is exceptional. Measures how well the stock is compensating investors for the total volatility borne.

6-1 Momentum  Weight: 10%

6-Month Skip-Month Return
Medium-horizon momentum; captures more recent trend than 12-1
10%
Definition
\[ \text{Mom}^{6-1}_i = \frac{P_{i,t-1}}{P_{i,t-6}} - 1 \]

Computed identically to 12-1 Momentum but over a six-month lookback. Academically, the 6-1 signal has a shorter mean-reversion horizon than the 12-1 signal and provides complementary information about the trajectory of the trend within the full year window. Used alongside 12-1 to detect whether near-term momentum is accelerating or decelerating relative to the full year.

Signal direction: Positive is stronger. When 6-1 > 12-1, momentum is accelerating (see Acceleration factor).

Frog-in-Pan (FIP) Score  Weight: 8%

Information Diffusion Proxy
Da, Gurun & Warachka (2014) — distinguishes gradual from spike-driven momentum
8%
Definition
\[ \text{FIP}_i = \text{sgn}(r^{12-1}_i) \cdot \left( \frac{\#\text{up days}}{n} - \frac{\#\text{down days}}{n} \right) \]

In practice, FIP is the share of up days minus the share of down days over the 12-month window, signed by the direction of the 12-1 return. It is the negative of Da, Gurun & Warachka’s information-discreteness measure, so that on this site a higher value always means the better signal: a winner built from many small daily gains scores positive, a winner built from a few large jumps scores near zero or negative.

The intuition draws on the "boiling frog" metaphor: price moves that accumulate gradually (many small increments) are less salient to inattentive investors and therefore reflect slower information diffusion. Da et al. (2014) show that stocks with continuous, low-salience price appreciation have stronger subsequent momentum returns than those with equivalent total return achieved via spiky, high-salience moves.

Signal direction: Higher FIP (many small up days, continuous information) = stronger, more sustainable momentum. Spike-driven momentum (low or negative FIP: a few large jumps, flat or down days otherwise) is lower quality and more likely to reverse.

Da, Z., Gurun, U. G., & Warachka, M. (2014). "Frog in the Pan: Continuous Information and Momentum." Review of Financial Studies, 27(7), 2171–2218.

Hurst Exponent  Weight: 8%

Trend Persistence Measure
Originally developed by Harold Hurst (1951) for hydrology; widely adopted in quantitative finance
8%
Rescaled Range (R/S) Estimator
\[ H = \frac{\log(R/S)}{\log(n)} \] \[ \text{where} \quad R/S = \frac{\max_t \sum_{s=1}^t (r_s - \bar{r}) - \min_t \sum_{s=1}^t (r_s - \bar{r})}{\sigma_r} \]
\(H\)Hurst exponent, in [0, 1]
\(R\)Range of the cumulative deviation from the mean return series
\(S\)Standard deviation of the return series
\(n\)Number of observations (trading days in the window)

The Hurst exponent captures the long-memory or persistence property of the return series. A value of exactly 0.5 corresponds to a random walk (no memory). Values above 0.5 indicate positive autocorrelation (trending in EITHER direction), values below 0.5 indicate negative autocorrelation (mean-reverting). Because raw Hurst is direction-blind — a stock falling persistently in a straight line has just as high an H as one rising the same way — the model uses a signed variant:

Signed Hurst
\[ \widetilde{H_i} = (H_i - 0.5) \cdot \operatorname{sign}(\beta_i) \]

where \(\beta_i\) is the same log-price trend slope used by Path R². Range is roughly \(-0.45\) to \(+0.45\).

\(\widetilde{H}\) > +0.20: Strong persistent UPtrend (good momentum). +0.05 — +0.20: Mild uptrend persistence. |\(\widetilde{H}\)| < 0.05: Mean-reverting or noisy regime. \(\widetilde{H}\) < \(-0.20\): Strong persistent DOWNtrend — a smooth decline, which counts as NEGATIVE momentum.

EWMA Momentum  Weight: 8%

Exponentially Weighted Momentum
Recent return data receives higher weight via exponential decay
8%
EWMA Price Level
\[ \tilde{P}_{i,t} = (1-\lambda) P_{i,t} + \lambda \tilde{P}_{i,t-1}, \quad \lambda = 0.97 \] \[ \text{EWMA Momentum}_i = \frac{\tilde{P}_{i,t}}{\tilde{P}_{i,t-252}} - 1 \]
\(\lambda\)Decay parameter (0.97 implies ~33-day half-life)
\(\tilde{P}_{i,t}\)EWMA-smoothed price level at time \(t\)

The EWMA filter removes high-frequency noise while preserving the trend direction. By applying exponential decay with \(\lambda = 0.97\), the most recent 30 days account for approximately 60% of the signal weight, making EWMA Momentum more responsive to recent trend changes than the simple 12-1 return.

Signal direction: Positive = smoothed price trend is upward. High EWMA momentum with low 12-1 variance = smooth, persistent trend (very bullish).

Path R²  Weight: 8%

Log-Linear Trend Fit Quality
Measures how smoothly price tracks an exponential growth path
8%
Signed Log-Linear Trend Fit
\[ \ln P_{i,t} = \alpha_i + \beta_i \cdot t + \varepsilon_{i,t} \] \[ R^2_i = 1 - \frac{\text{SS}_{\text{res}}}{\text{SS}_{\text{tot}}} \quad,\quad \widetilde{R^2_i} = R^2_i \cdot \operatorname{sign}(\beta_i) \]
\(R^2_i\)Unsigned goodness of fit (0 = no fit, 1 = perfect straight line in either direction)
\(\widetilde{R^2_i}\)Signed Path R² — the model uses this value; range −1 … +1
\(\beta_i\)OLS slope of \(\ln P\) on time (positive = uptrend, negative = downtrend)

Regressing log-price on time tests whether price follows a steady exponential trend. We multiply the goodness-of-fit \(R^2\) by the sign of the trend slope so the factor is direction-aware: a smooth uptrend scores near \(+1\), a smooth downtrend scores near \(-1\), and a choppy path scores near \(0\). This is essential because raw \(R^2\) treats both directions identically — a clean linear decline would otherwise look like a top-quality "momentum" signal. The directional version aligns with academic evidence (Grinblatt & Titman 1989) that smooth, consistent winners outperform volatile winners forward, while smooth losers underperform.

\(\widetilde{R^2}\) \(\geq\) +0.90: Very smooth UPtrend — high quality positive momentum. +0.70 — +0.90: Fairly clean uptrend. |\(\widetilde{R^2}\)| < 0.30: Noisy path — little trend in either direction. \(-0.90\) and below: Very smooth DOWNtrend — high quality NEGATIVE momentum.

Momentum Acceleration  Weight: 7%

Rate-of-Change of Momentum
Detects whether the trend is speeding up or slowing down
7%
Definition
\[ \text{Accel}_i = \text{Mom}^{6-1}_i - \text{Mom}^{12-6}_i \] \[ \text{where} \quad \text{Mom}^{12-6}_i = \frac{P_{i,t-6}}{P_{i,t-12}} - 1 \]

Momentum acceleration decomposes the 12-1 window into two sequential 6-month halves and measures whether the most recent half outperforms the earlier half. A positive value indicates the stock is building momentum (recent 6 months stronger than prior 6 months), while a negative value indicates momentum deceleration. This is conceptually related to the momentum life cycle documented by Lee & Swaminathan (2000).

Positive Accel: Momentum picking up speed — bullish. Negative Accel: Trend losing steam — may be approaching peak. Units are percentage points (pp).

Residual Momentum  Weight: 7%

Market-Beta-Adjusted Alpha Momentum
Blitz, Huij & Martens (2011) — idiosyncratic momentum stripped of market beta
7%
CAPM Residual
\[ r_{i,d} = \alpha_i + \beta_i \cdot r_{m,d} + \varepsilon_{i,d} \] \[ \text{ResidualMom}_i = \sum_{d \in \text{window}} \hat{\varepsilon}_{i,d} \]
\(r_{i,d}\)Daily return of stock \(i\) on day \(d\)
\(r_{m,d}\)Daily return of the market benchmark (QQQ for NASDAQ-100, SPY for S&P 500 and ETFs)
\(\hat{\varepsilon}_{i,d}\)Daily CAPM residual (idiosyncratic return)

Standard momentum conflates two sources of return: market beta (the stock moves with the index) and idiosyncratic alpha (the stock outperforms independently). Residual momentum isolates the latter, which is a purer and more persistent signal. Blitz et al. (2011) show that residual momentum has substantially lower crash risk than total momentum while maintaining similar average returns.

Signal direction: Positive residual momentum = the stock is outperforming after accounting for index moves. This is genuine alpha, not beta-amplified market exposure.

Blitz, D., Huij, J., & Martens, M. (2011). "Residual Momentum." Journal of Empirical Finance, 18(3), 506–521.

Omega Ratio  Weight: 6%

Gains-to-Losses Ratio
Keating & Shadwick (2002) — universal performance measure using full return distribution
6%
Definition
\[ \Omega_i(\tau) = \frac{\int_\tau^\infty [1 - F_i(r)] \, dr}{\int_{-\infty}^\tau F_i(r) \, dr} \] \[ \approx \frac{\sum_{r_{i,d} > \tau} (r_{i,d} - \tau)}{\sum_{r_{i,d} \leq \tau} (\tau - r_{i,d})}, \quad \tau = 0 \]
\(F_i(r)\)Cumulative distribution function of daily returns for stock \(i\)
\(\tau\)Threshold return (set to 0 for cross-sectional comparison)

Unlike the Sharpe ratio, the Omega ratio uses the entire return distribution without the parametric assumption of normality. It measures the weighted total of gains above the threshold divided by the weighted total of losses below it. A ratio above 1.0 means total weighted gains exceed total weighted losses.

Signal direction: Ω > 1.0 = more weighted gains than losses. Higher is better. Omega > 2.0 indicates an exceptionally favourable return profile.

Calmar Ratio  Weight: 6%

Return per Unit of Maximum Drawdown
Young (1991) — originally used in managed futures evaluation
6%
Definition
\[ \text{Calmar}_i = \frac{r^{\text{ann}}_i}{|\text{MDD}_i|} \] \[ \text{MDD}_i = \max_{t \in [0,T]} \left( \frac{\max_{s \leq t} P_{i,s} - P_{i,t}}{\max_{s \leq t} P_{i,s}} \right) \]
\(r^{\text{ann}}_i\)Annualised return over the 12-month window
\(\text{MDD}_i\)Maximum peak-to-trough drawdown over the 12-month window

Signal direction: Higher Calmar = better return per worst-case loss. Calmar > 3 is considered strong; > 5 is exceptional. Particularly relevant for assessing whether upward momentum came at the cost of severe drawdowns.

Sortino Ratio  Weight: 5%

Downside-Risk-Adjusted Return
Sortino & van der Meer (1991) — penalises only harmful volatility
5%
Definition
\[ \text{Sortino}_i = \frac{\bar{r}_i - r_f}{\sigma^-_i} \cdot \sqrt{252} \] \[ \sigma^-_i = \sqrt{\frac{1}{n} \sum_{d: r_{i,d} < r_f} (r_{i,d} - r_f)^2} \]
\(\sigma^-_i\)Downside deviation — standard deviation computed only over negative return days
\(r_f\)Minimum acceptable return (set to 0)

The Sortino Ratio improves on the Sharpe Ratio by recognising that investors are not equally averse to upside and downside volatility. Upside volatility (high-return days) is desirable; only downside deviation is penalised. A momentum stock with high Sortino has been making gains without suffering disproportionate losing days.

Signal direction: Higher = better. A stock with a Sortino of 3.0 and Sharpe of 1.5 is producing gains primarily via large up-days with controlled drawdowns.

Momentum Crashes & the ⚠ Badge

The twelve factors above are all measured over medium- to long-horizon windows (6–12 months plus their derived risk-adjusted ratios). The composite intentionally excludes the last 21 trading days from its two core momentum inputs (mom12,1 and mom6,1) following the skip-month convention of Jegadeesh & Titman (1993), which was designed to filter out short-term mean reversion.

A known and well-documented side effect: a stock that rallied strongly over the last year and then reversed sharply over the last three months can still receive a very high composite score. Its mom12,1, path R², Hurst exponent and Sharpe ratio all remain elevated because the 12-month window still captures the bulk of the rally, while the recent draw-down is invisible to those factors. Daniel & Moskowitz (2016) formalise this as the momentum crash phenomenon: naive cross-sectional momentum systematically overweights stocks entering short-horizon reversal.

The ⚠ badge (Price page): a red pill appears next to the composite score whenever both conditions hold:

  • 3-month return ≤ −20%
  • Composite score ≥ 60 (i.e. the composite is still calling it a winner)

A deeper red variant appears when the 3-month return is ≤ −35%. The badge does not change the ranking — it flags the disconnect between the academic 12-1 signal and recent price action so that users can make an informed judgement.

Why not simply add mom3m to the composite? Because doing so would break the model's academic grounding. The skip-month convention is not an accident — it is what makes the composite comparable to published momentum research and what filters out microstructure noise. Adding a short-horizon factor would change the composite from a Jegadeesh–Titman-family signal into an ad-hoc blend. The badge preserves the model while making its known blind spot visible on the surface.

Daniel, K. & Moskowitz, T.J. (2016). “Momentum Crashes.” Journal of Financial Economics, 122(2), 221–247.

Momentum dynamics is momentum growing or slowing?

The momentum score says how strong the trend is. Momentum dynamics say which way that strength is moving. The price page charts the first and second time-derivatives of the momentum signal for every stock and for the universe index.

1. Momentum level
\[ M(t) = 252 \cdot \mathrm{EWMA}_{\lambda}\!\left[\, r(t) \,\right], \qquad \lambda = 0.97 \]

The annualised exponentially weighted mean of daily log returns — the same construction as the model's EWMA factor. It is the smoothed instantaneous trend of the price path.

2. Velocity and acceleration — local polynomial (Savitzky–Golay) estimation
\[ M(\tau) \approx a_0 + a_1\tau + a_2\tau^2 \quad \text{(least squares on the trailing 63 trading days, } \tau=0 \text{ at today)} \] \[ v = \left.\frac{dM}{dt}\right|_{t} = a_1, \qquad a = \left.\frac{d^2M}{dt^2}\right|_{t} = 2a_2 \]

Naive differencing of a noisy series amplifies the noise. Fitting a local quadratic by least squares and reading the derivatives off the fitted coefficients is the endpoint form of a Savitzky–Golay derivative filter — the standard estimator for derivatives of noisy signals. Velocity is reported per 21 trading days ("per month") and acceleration per month².

3. Index dynamics
\[ M_{\text{idx}}(t) = \frac{1}{N}\sum_{i=1}^{N} M_i(t) \]

The equal-weight cross-sectional mean of member momentum levels, run through the same estimator. The index chart shows the level line with acceleration bars beneath it.

States. Each stock is placed in a quadrant of the (v, a) plane: accelerating (v>0, a>0 — momentum rising and rising faster), peaking (v>0, a<0 — rising but losing steam), bottoming (v<0, a>0 — falling but flattening out), deteriorating (v<0, a<0 — falling and falling faster). Readings inside a deadband of 0.5 cross-sectional MADs on both axes are flat. The index is classified against the scale of its own velocity history rather than the per-stock dispersion.

Diagnostic overlay only. Nothing here enters Composite Alpha or portfolio selection. The Momentum Acceleration factor inside the composite is a related but distinct return-difference construction; these dynamics are a kinematic read on the smoothed momentum signal itself. Computed nightly by momentum_dynamics.py from the 12 months of embedded daily closes; the estimation window is the trailing quarter.

Earnings Composite Score

The earnings composite is a weighted sum of three sub-scores, each normalised to [0, 100] first.

Earnings Composite Formula
\[ S^E_i = 0.40 \cdot F^{\text{Surprise}}_i + 0.30 \cdot F^{\text{EPSRev}}_i + 0.30 \cdot F^{\text{RevRev}}_i \]

The surprise factor folds in SUE, the beat rate, and the consecutive-beat streak (see the factor sections below). The two revision factors track analyst EPS and revenue estimate changes. Margin expansion is computed and shown on the detail pages but carries no composite weight in the shipped model.

Documentation note: an earlier draft of this page described a four-factor 30/20/25/25 blend. The live pipeline weights are 40/30/30 as above, read from earnings_data/*.json.

The three sub-scores, exactly as built

These are the formulas in refresh_earnings.py, which rebuilds the earnings block every night for the NASDAQ-100 and at least weekly for the other universes. Each sub-score is an absolute score for the stock on its own record, not a ranking against other stocks. \(\text{clip}(x)\) limits \(x\) to the range 0 to 100.

Surprise (40% of the composite)
\[ F^{\text{Surprise}} = 0.30\,\text{beat rate} + 0.10\,\text{revenue beat rate} + 0.08 \cdot 100 \cdot \tfrac{\min(\text{streak},\,5)}{5} + 0.15\,\text{clip}(50 + 10\,\text{SUE}) + 0.25\,\text{clip}(50 + 0.5\,\overline{\text{surprise}\,\%}) \]

Beat rates, the average EPS surprise and the streak are taken over the tracked history (up to 40 quarters). SUE is the mean of the last eight quarterly EPS surprises divided by their standard deviation. The weights sum to 0.88, so the highest possible Surprise score is 88. A stock needs at least four quarters with a consensus estimate.

EPS (30%)
\[ F^{\text{EPS}} = 0.35\,\text{clip}(50 + 0.5\,g^{\text{EPS}}_{\text{yoy}}) + 0.25\,\text{clip}(50 + 0.5\,\Delta g^{\text{EPS}}) + 0.25\,\text{clip}(50 + 0.5\,g^{\text{EPS}}_{\text{fwd}}) + 0.15\,\min(100,\ 3 \times \text{analysts}) \]
Revenue (30%)
\[ F^{\text{Rev}} = 0.35\,\text{clip}(50 + 1.5\,g^{\text{Rev}}_{\text{yoy}}) + 0.25\,\text{clip}(50 + 1.5\,\Delta g^{\text{Rev}}) + 0.20\,\text{clip}(50 + 1.5\,g^{\text{Rev}}_{\text{fwd}}) + 0.20\,\text{gross margin}\,\% \]

\(g_{\text{yoy}}\) is the latest reported quarter against the same quarter a year earlier, in per cent, matched by date. \(\Delta g\) (acceleration) is that growth rate minus the previous quarter's. \(g_{\text{fwd}}\) is the consensus for the next report against the actual for the report a year before it, both from the same consensus feed. "Analysts" is the number of analysts behind the next-quarter EPS estimate. A component whose inputs are not real is left out and the remaining weights are rescaled; nothing is set to a neutral 50. The same rule applies one level up: a stock needs at least two of the three sub-scores to receive a composite, and a missing sub-score (a pre-revenue company has no revenue growth; a company no analyst covers has no surprise history) is left out with the weights rescaled.

History: until June 2026 these payloads came from an external builder that was never part of this codebase. Its weights and transforms were recovered from the stored payloads and are reproduced above to within rounding. Two inputs changed when the builder was rewritten (v35.0, November 2026). The old "year on year" figures compared a quarter with the one three quarters earlier; they now compare with the same quarter a year earlier. The old definition of forward growth could not be recovered from the stored payloads, so it is defined afresh as stated above. Earnings scores from before that date are therefore not directly comparable. Where the factor descriptions further down this section differ from the formulas here, the formulas here are what the site computes.

1 Raw earnings data (40Q)
→
2 Compute 3 sub-scores
→
3 Normalise each to [0,100]
→
4 Weighted sum → composite
→
5 Cross-sectional percentile rank

Thin analyst coverage (KOSPI 200). Where a name has very few covering analysts, the EPS and revenue revision factors are estimated from a small consensus sample and carry more noise. The earnings table flags these rows with a THIN COV. badge showing the analyst count.

Standardised Unexpected Earnings (SUE)  inside the Surprise factor (40%)

EPS Surprise Scaled by Historical Variability
Bernard & Thomas (1989, 1990) — foundational post-earnings announcement drift research
Highest Weight · 30%
SUE per Quarter
\[ \text{SUE}_{i,q} = \frac{e_{i,q} - \hat{e}_{i,q}}{\sigma_{i,q}} \]
\[ F^{\text{SUE}}_i = \sigma\!\left(\overline{\text{SUE}}^{8Q}_i\right) \]
\(e_{i,q}\)Reported EPS for stock \(i\) in quarter \(q\)
\(\hat{e}_{i,q}\)Consensus analyst EPS estimate immediately before earnings
\(\sigma_{i,q}\)Standard deviation of the stock's last 8 quarterly EPS surprises
\(\overline{\text{SUE}}^{8Q}_i\)Mean SUE over the trailing 8 quarters
\(\sigma(\cdot)\)Sigmoid normalisation to [0, 100]

The denominator normalises for each company's own earnings predictability — a company that routinely beats by $0.05 has lower variability than one that beats or misses by $0.50. This scaling makes SUE scores comparable across companies of different sizes and volatility.

Bernard & Thomas (1989) demonstrated that stocks with high SUE exhibit post-earnings announcement drift (PEAD) — they continue to outperform for 60+ trading days after the earnings release. This is one of the most replicated anomalies in finance.

Bernard, V. L. & Thomas, J. K. (1989). "Post-Earnings-Announcement Drift: Delayed Price Response or Risk Premium?" Journal of Accounting Research, 27, 1–36.

EPS Revision Trend  Weight: 30%

Analyst Estimate Revision Momentum
Chan, Jegadeesh & Lakonishok (1996) — earnings revision momentum predicts returns
20%
Revision Trend Score
\[ F^{\text{Rev}}_i = 0.6 \cdot \beta^{\text{slope}}_{i,4Q} + 0.4 \cdot \text{median\_surprise}_{i,6Q} \]
\(\beta^{\text{slope}}_{i,4Q}\)OLS slope of quarterly EPS surprise (vs. consensus) over the trailing 4 quarters — captures whether surprises are trending up or down
\(\text{median\_surprise}_{i,6Q}\)Median EPS surprise percentage over the trailing 6 quarters — captures the level of sustained outperformance

The slope component detects acceleration in earnings beats — a company going from small beats to large beats is more bullish than one with consistently large beats. The level component anchors the score to the absolute magnitude of outperformance. The 4-quarter lookback for slope (rather than 8 quarters) avoids distortion from recovery-period outliers.

Chan, L.K.C., Jegadeesh, N., & Lakonishok, J. (1996). "Momentum Strategies." Journal of Finance, 51(5), 1681–1713.

Beat Streak Score  inside the Surprise factor (40%)

Earnings Execution Consistency
Skinner & Sloan (2002) — negative earnings surprises have disproportionately large price impacts
25%
Beat Streak Composite
\[ F^{\text{Beat}}_i = 0.40 \cdot \text{streak}_i + 0.35 \cdot \text{beat\_rate}^{8Q}_i + 0.25 \cdot \text{rev\_beat\_rate}^{8Q}_i \]
\(\text{streak}_i\)Length of the current unbroken EPS beat streak (consecutive quarters beating consensus), normalised to [0,1] vs. 12Q maximum
\(\text{beat\_rate}^{8Q}_i\)Fraction of the trailing 8 quarters in which reported EPS exceeded consensus estimate
\(\text{rev\_beat\_rate}^{8Q}_i\)Fraction of trailing 8 quarters in which actual revenue exceeded consensus revenue estimate

Consistent earnings beats signal high-quality management execution, superior business model predictability, and analysts who systematically underestimate the company's earnings power. The streak component captures recency (a long ongoing streak is more valuable than past consistency that has broken), while the beat rate provides a broader 8-quarter view.

Skinner, D.J. & Sloan, R.G. (2002). "Earnings Surprises, Growth Expectations, and Stock Returns or Don't Let an Earnings Torpedo Sink Your Portfolio." Review of Accounting Studies, 7, 289–312.

Margin Expansion  no composite weight — detail pages only

Operating Profitability Trend
Novy-Marx (2013) — gross profitability predicts future returns
25%
Margin Expansion Score
\[ F^{\text{Margin}}_i = 0.60 \cdot \Delta \text{GM}^{4Q}_i + 0.40 \cdot \text{GM}^{\text{level}}_i \] \[ \Delta \text{GM}^{4Q}_i = \text{GM}_{q} - \text{GM}_{q-4} \]
\(\text{GM}_q\)Gross margin (gross profit / revenue) in the most recent quarter
\(\Delta \text{GM}^{4Q}_i\)Year-over-year change in gross margin (current quarter vs. same quarter one year prior, to control for seasonality)
\(\text{GM}^{\text{level}}_i\)Absolute gross margin level, normalised cross-sectionally

Expanding margins indicate that a company's competitive position is strengthening — either through pricing power, operational leverage, or cost efficiency. Novy-Marx (2013) demonstrates that gross profitability (a proxy for fundamental quality) has as much predictive power for future returns as traditional value metrics. The year-over-year delta is preferred over sequential change to eliminate seasonality effects common in retail, technology, and consumer companies.

Novy-Marx, R. (2013). "The Other Side of Value: The Gross Profitability Premium." Journal of Financial Economics, 108(1), 1–28.

Earnings reactivity score (ERS)

Market Sensitivity to Earnings Surprises
Measures how aggressively the market reprices a stock in response to earnings surprise magnitude
ERS Formula
\[ \text{ERS}_i = \frac{|R^{\text{earn}}_i|}{|\text{SUE}_i| + \varepsilon} \]
\(R^{\text{earn}}_i\)Earnings-day return — the close-to-close return on the trading day the earnings report impacts the stock price. For before-market-open (BMO) reports: the return on the announcement date. For after-market-close (AMC) reports: the return on the following trading day.
\(\text{SUE}_i\)EPS Surprise Percentage — the percentage difference between reported EPS and the consensus analyst estimate: \(\text{SUE}_i = \frac{\text{EPS}^{\text{actual}} - \text{EPS}^{\text{est}}}{|\text{EPS}^{\text{est}}|} \times 100\)
\(\varepsilon\)Smoothing constant = 0.1, added to prevent division by zero when the earnings surprise is exactly on consensus
\(|\cdot|\)Absolute value — ERS captures the magnitude of reactivity regardless of direction (beat or miss)
Earnings Day Determination
\[ R^{\text{earn}}_i = \begin{cases} R^{\text{close}}_{t} & \text{if report hour} < 10\text{:}00 \;(\text{BMO}) \\ R^{\text{close}}_{t+1} & \text{if report hour} \geq 16\text{:}00 \;(\text{AMC}) \end{cases} \]

Interpretation

The Earnings Reactivity Score quantifies how much "bang" the market delivers per unit of earnings surprise. A stock with a high ERS is one where even a modest beat or miss triggers a disproportionately large price move — suggesting the market views that company's earnings trajectory as especially meaningful for its valuation.

ERS Range Interpretation Typical Profile
ERS > 5.0 Highly reactive High-growth momentum names where earnings are a key catalyst; options premiums tend to be high around announcements
2.0 – 5.0 Moderately reactive Price moves roughly proportional to surprise size; efficient market pricing around earnings
0.5 – 2.0 Low reactivity Other factors (guidance, macro, sector rotation) dominate the post-earnings price response
< 0.5 Non-reactive Market largely ignores the reported EPS; forward guidance, backlog, or subscriber metrics may be the real price driver

Why ERS Matters

ERS is not a component of the Earnings Composite Score — it is a standalone diagnostic metric displayed alongside the composite ranking. It serves several practical purposes:

  • Options positioning: High-ERS stocks tend to have richer earnings-week implied volatility. Comparing the options-implied move (from the Expected Earnings Move) against the historical ERS helps assess whether the straddle is fairly priced.
  • Risk management: A portfolio concentrated in high-ERS names faces outsized single-day drawdown risk around earnings season.
  • Alpha signal: A falling ERS over time can signal that a growth stock is transitioning to a "proven" phase where earnings beats are already priced in — a potential deceleration warning.

Averaging Convention

Average ERS (displayed in the leaderboard)
\[ \overline{\text{ERS}}_i = \frac{1}{N} \sum_{q=1}^{N} \text{ERS}_{i,q} \]

The average is computed over all quarters where both a valid earnings-day return and a non-null EPS surprise percentage exist. Quarters with missing price data or missing consensus estimates are excluded from the average.

Related literature: Livnat, J. & Mendenhall, R.R. (2006). "Comparing the Post-Earnings Announcement Drift for Surprises Calculated from Analyst and Time Series Forecasts." Journal of Accounting Research, 44(1), 177–205. — Establishes that the magnitude of post-earnings drift is linked to the size and nature of earnings surprises, a relationship ERS directly quantifies.

Market Regime Indicator Sizing layer, not selection

From market state and momentum-vol to a suggested gross exposure
Cooper, Gutierrez & Hameed (2004); Barroso & Santa-Clara (2015); Daniel & Moskowitz (2016)
Risk

The regime indicator is a risk-management overlay, not a return-timing signal. Stock selection is driven by Composite Alpha. The overlay decides at what gross exposure that book should be held, based on two reliably documented features of the momentum return distribution: (i) momentum performs poorly out of bear markets, and (ii) momentum crashes cluster in periods of elevated momentum-strategy volatility.

1. Market state
\[ \text{market state} = \begin{cases} \text{UP} & \text{if } P_t \geq \text{SMA}_{200}(P_t) \\ \text{DOWN} & \text{otherwise} \end{cases} \]

where \(P_t\) is the benchmark close (^NDX / ^GSPC / ^KS200 / SPY for the equal-weight ETF book). This binary toggle is the simplest formalisation of the Cooper–Gutierrez–Hameed (2004) finding that momentum profitability is conditional on a non-negative recent market state.

2. Momentum-strategy volatility (de-risking signal)
\[ \sigma_{\text{mom}} = \sqrt{252} \cdot \text{stdev}\big(r_{\text{mom},t}\big)_{t-63..t} \]

\(r_{\text{mom},t}\) is the daily return on the momentum strategy. v1 uses a beta-neutralised long-only top-decile proxy; v2 will replace this with the survivorship-free top-minus-bottom decile from factor_history. The absolute level of \(\sigma_{\text{mom}}\) is proxy-dependent — relative moves (de-risk when vol spikes) are robust to either choice.

3. Vol-targeted scaler (Barroso & Santa-Clara)
\[ s_t = \min\!\left( \frac{\sigma^{*}}{\sigma_{\text{mom},t}},\, s_{\max} \right) \quad\text{with}\quad \sigma^{*}=0.12,\;\; s_{\max}=1.5 \]

The raw scaler is the ratio of the target annualised volatility to the realised momentum vol, capped at \(s_{\max}=1.5\) to prevent runaway leverage in low-vol regimes. This is the Barroso–Santa-Clara (2015) constant-volatility momentum portfolio.

4. Regime classification & suggested gross
\[ \text{vol\_state}_t = \begin{cases} \text{EXTREME} & \text{if } \sigma_{\text{mom},t} \geq Q_{0.85}\!\left(\sigma_{\text{mom}}^{\text{1y}}\right) \\ \text{ELEVATED} & \text{if } Q_{0.50}\!\left(\sigma_{\text{mom}}^{\text{1y}}\right) \leq \sigma_{\text{mom},t} < Q_{0.85}\!\left(\sigma_{\text{mom}}^{\text{1y}}\right) \\ \text{LOW} & \text{otherwise} \end{cases} \] \[ \text{regime} = \begin{cases} \text{RED} & \text{if } \text{vol\_state}=\text{EXTREME} \;\text{or}\; \text{crash\_flag} \\ \text{AMBER} & \text{if } \text{vol\_state}=\text{ELEVATED} \;\text{or}\; \text{market state}=\text{DOWN} \\ \text{GREEN} & \text{otherwise} \end{cases} \] \[ \text{gross}_t = \begin{cases} \min(s_t,\; 0.5) & \text{regime}=\text{RED} \\ s_t & \text{regime}\in\{\text{AMBER},\,\text{GREEN}\} \end{cases} \]

Vol-state thresholds are per-universe percentiles of the trailing-1y rolling \(\sigma_{\text{mom}}\) distribution (P50, P85). Absolute \(\sigma_{\text{mom}}\) levels differ between universes (NDX, SPX, KOSPI200, MAPS) and between proxy implementations, so a single fixed multiple of \(\sigma^{*}\) was systematically mis-classifying entire universes; percentile-driven thresholds make the indicator self-calibrating. If fewer than 60 historical observations are available, a fallback \(\{1.5\sigma^{*},\,3.0\sigma^{*}\}\) pair is used and the source string in regime.json flags the fallback.

RED states hard-cap gross at 50% of book regardless of the raw scaler.

Crash flag. Following Daniel & Moskowitz (2016), the crash flag fires only when all three of the following co-occur: (i) bear context — trailing-24-month benchmark return is negative; (ii) sharp rebound — trailing-21-trading-day benchmark return exceeds +5%; and (iii) high vol — \(\sigma_{\text{mkt},t}\) exceeds the trailing-1y 75th percentile of the 21-day rolling market vol. This is the empirical state in which momentum has historically posted its worst monthly returns; outside this exact combination, the crash flag does not fire. The three sub-flags are exposed in regime.json under crash_subflags for forensic inspection.

\(\sigma^{*}\)Target annualised vol for the momentum book (12%, calibrated to the long-only proxy; will be revisited when v2 LS series lands)
\(\sigma_{\text{mom}}\)Realised 63-day annualised vol of the momentum-proxy return series
\(\sigma_{\text{mkt}}\)21-day rolling annualised vol of benchmark log returns
\(s_{\max}\)Maximum allowed gross (150% of book) to bound leverage in calm regimes
SMA\(_{200}\)200-day simple moving average of the benchmark close

Signal direction: The regime tile is not a return forecast. A GREEN reading does not predict returns; it indicates an environment where momentum has historically realised its full risk-adjusted return at full leverage. A RED reading does not predict that momentum will lose; it indicates a state in which the realised left-tail of the momentum distribution is materially fatter, and where surviving the rebound matters more than capturing the next leg.

Favoured books in each regime. RED → quality (price momentum dimmed). AMBER → quality. GREEN → price momentum unconstrained.

Implementation note — v1 proxy disclosure. The current \(\sigma_{\text{mom}}\) feed is a beta-neutralised long-only top-decile return; this systematically under-states the volatility of a true long–short momentum strategy. The 12% target was calibrated to this proxy and will be re-anchored when the survivorship-free LS series is in place. The scaler’s relative behaviour (de-risk when momentum vol rises) is robust to the proxy; the absolute scaling level is not.

v3 data-integrity disclosures.

Benchmark provider — FMP first, yfinance fallback. As of 2026-06-10 the regime layer fetches benchmark closes from Financial Modeling Prep (FMP) with a per-universe symbol map. yfinance is retained only as a fallback when FMP is unavailable. The active payload reports the resolved provider and symbol in benchmark_source / benchmark_symbol_used on each regime.json universe slice.

KOSPI proxy substitution — \(\widehat{KS200}\to\widehat{KS11}\). FMP does not serve ^KS200. We substitute ^KS11 (broader Korea Composite) as the closest clean FMP-served proxy. This is cross-checked against EWY (iShares MSCI South Korea). The substitution is disclosed transparently on every dashboard tile and in the JSON payload (benchmark_symbol_used="^KS11", while benchmark_symbol_requested remains ^KS200).

Sanity bands (tight). Every published regime tile is gated against \(\sigma_{\text{mkt}}\in[0.03,0.50]\) and \(\sigma_{\text{mom}}\in[0.03,0.60]\) along with a \(\geq 250\)-day minimum history check. Any breach flags the universe as data_quality="suspect", neutralises the headline colour to grey, and surfaces the failing reason in data_quality_reasons. The KOSPI universe currently trips the upper \(\sigma_{\text{mkt}}\) bound (a genuine high-volatility reading on the \(\widehat{KS11}\) proxy in the active 2025–2026 timeline) and is therefore shown as RED (suspect) — the system refuses a confident RED off a \(\sigma_{\text{mkt}}\) above 50% regardless of source.

Target volatility — per-universe calibration. The legacy fixed 12% target systematically mis-classified universes whose long-only momentum proxies have different absolute vol scales. As of 2026-06-10 the target is per-universe and set to the trailing-1y median of that universe’s realised \(\sigma_{\text{mom}}\) (NDX 0.24, SPX 0.28, KOSPI200 0.18, MAPS 0.11), so the gross scaler equals exactly 1.0 in the median state by construction. The active value is reported in target_vol with target_vol_source="per_universe_median_2026_06_10" for forensic traceability.

v9 readout — percentile against a price-derived reference distribution. The regime hero leads with “<Universe> momentum vol — Nth percentile of <window> history” alongside the raw \(\sigma_{\text{mom}}\) and a plain-language gloss. The RED / AMBER / GREEN colour is demoted to an accent dot. No threshold, corroboration rule, gross scaler, or selection logic changes — this is presentation only.

Where the percentile comes from. The percentile reported on the hero, strip, recommendation tabs, portfolio KPI, and stock-page regime inheritance is a trailing-252d percentile-rank of \(\sigma_{\text{mom}}\) against a price-derived reference distribution stored in regime_series_<universe>.json (see Section A). The reference distribution is computed by applying today’s methodology (63-day rolling \(\sigma_{\text{mom}}\), 252-day market \(\sigma_{\text{mkt}}\), basket-equal-weighted aggregation) to EOD prices for today’s basket. It is used purely as a yardstick to rank today’s reading; it is not a back-dated track of what the site would have said historically and is no longer rendered as a chart in the UI. When the reference is unavailable for a universe, the readout falls back to the live engine’s 1-year P50 / P85 bands recorded in regime.json.

Window labels are read from the data, never hardcoded. The hero subtitle quotes the actual n_points, start_date, and end_date from regime_series_<u>.json["span"]. As of v9 (Item 1) the FMP fetch correctly requests an explicit from=<11y back> window and the active reference spans are ~9.8 years for all five universes (712 weekly+daily samples each), with per-series provenance recorded under basket.series_provenance (FMP for ~all series; yfinance allowed only for the small FMP-empty allowlist NIY=F / TTF=F / ^KS200).

Basket coverage is honest about gaps. Where a basket constituent has no long history available on either source, the missing tickers are listed in regime_series_<u>.json["basket"]["coverage"]["missing_tickers"] and excluded from the reference distribution rather than zero-filled. The MAPS basket is currently 8/10 covered (NIY=F and ^KS200 absent on FMP and on yfinance); the live engine MAPS readout uses a different data flow through refresh_maps_prices.py and may differ.

Honesty boundary — live track record starts 2026-06-13. The model portfolio was reset on 2026-06-13 (inception) to a $1,000,000 flat book with no positions, no trades, and no equity-curve history. The prior partial-period equity curve (5\u20138 trading days under the new selection signal) has been archived to _archive/v9_portfolio_preReset/ for forensic recovery. No copy on the site claims or implies a live track record longer than from inception onward; all return / Sharpe / drawdown KPIs on the portfolio page accumulate strictly from 2026-06-13.

What is unchanged. Regime thresholds (per-universe trailing-1y P50 / P85 of rolling \(\sigma_{\text{mom}}\)), the crash-flag corroboration logic, the suggested gross math \(\min(s_t,0.5)\) on RED, the sanity-band gates, and the selection/portfolio construction are all identical to v7/v8. v9 changes the data source for the reference distribution (Item 1), removes the back-dated chart and copy (Item 2-C/D), and resets the live book (Item 2-A/B).

Counter-point. Asness, Chandra, Ilmanen & Israel (2017) argue that factor-timing is generally unrewarded once estimation noise, transaction costs and crowding are taken into account. The regime overlay deployed here is therefore framed narrowly as a risk-management tool addressing the well-documented momentum-crash phenomenon, not as a return-timing model attempting to add alpha.

Related literature:
  • Cooper, M., Gutierrez, R.C. & Hameed, A. (2004). "Market States and Momentum." Journal of Finance, 59(3), 1345–1365. — Documents that momentum profitability is conditional on the prior market state being non-negative.
  • Barroso, P. & Santa-Clara, P. (2015). "Momentum has its moments." Journal of Financial Economics, 116(1), 111–120. — Constant-volatility scaling of momentum nearly doubles its Sharpe ratio and removes most of the left tail.
  • Daniel, K. & Moskowitz, T.J. (2016). "Momentum crashes." Journal of Financial Economics, 122(2), 221–247. — Characterises the bear-market-rebound state in which momentum crashes occur and proposes a dynamic-weight remedy.
  • Asness, C., Chandra, S., Ilmanen, A. & Israel, R. (2017). "Contrarian Factor Timing is Deceptively Difficult." Journal of Portfolio Management, 43(5), 72–87. — Sceptical counter-point to active factor-timing efforts; cited here to keep the overlay framed as risk control.

Smart vs Dumb Quality NASDAQ-100 + S&P 500 only

A side-by-side comparison of two quality composites: an academic "smart" build and a naive "dumb" build, and the disagreement-set long/short (SMD) spread between them.
Novy-Marx (2013) · Sloan (1996) · Cooper-Gulen-Schill (2008) · Hirshleifer-Hou-Teoh-Zhang (2004) · Boudoukh-Michaely-Richardson-Roberts (2007) · Frazzini-Pedersen (2014)

Smart composite — 8 academic signals (sector-z within GICS Level 1)

The smart build winsorises each raw input at the 1/99 percentiles, then z-scores within GICS Level 1 sector (universe-z fallback when a sector has fewer than 4 names). The composite is a fixed, weight-balanced sum (positive and negative weights sum to ±100% in absolute terms):

  • +30 CbOP — Cash-based Operating Profitability (Novy-Marx 2013): operating income minus accruals, scaled by total assets. Filters paper earnings.
  • +20 GP/A — Gross Profits to Assets (Novy-Marx 2013): the cleanest profitability signal in the cross section.
  • −15 Accruals — Sloan (1996): (NI − OCF) / avg-TA. High accruals signal earnings-management risk.
  • −10 Asset Growth — Cooper-Gulen-Schill (2008): ΔTA / TA_lag. Overinvestment penalty.
  • −5 NOA — Hirshleifer-Hou-Teoh-Zhang (2004): Net Operating Assets / TA_lag. Captures cumulative accruals.
  • +10 Net Payout — Boudoukh et al. (2007): (dividends + buybacks − net issuance) / market cap.
  • −5 Leverage — Frazzini-Pedersen (2014): (LT debt + ST debt − cash) / EBITDA.
  • +5 Stability — 5-year GP/A coefficient of variation (negated). Rewards consistent profitability.

Dumb composite — 5 naive signals (raw cross-sectional ranks, no sector neutralisation)

The dumb build is deliberately naive — what a retail screener does. Each signal is converted to a universe-wide percentile rank with no sector control, no winsorisation, and no quality conditioning. Weights:

  • 30 ROE, 25 Net Margin, 20 3y EPS growth (CAGR, both endpoints positive), 15 low D/E, 10 EPS stability.

SMD spread — disagreement set, accrual hard-block on long leg

The Smart-minus-Dumb spread (SMD) is built on the disagreement set — names that appear in the top quintile of exactly one of the two composites. The long leg is the top-quintile smart names, excluding any name in the top accrual decile within sector (Sloan interpretation (i) — long-leg hard-block only). The short leg is the top-quintile dumb names. The agreement set (top quintile in both) is dropped from the spread as "true quality" common to both lenses. Rebalanced quarterly. Beta and sector exposure are surfaced at construction time; actual hedging is a backtest concern outside v14 scope.

Hard-block scope: The accrual hard-block applies only to the SMD long leg. Names flagged accrual_blocked still appear in the smart-quality ranking with a visible tag, and they are still eligible to enter the Composite Alpha Quality block. The hard-block does not propagate to alpha.

Valuation conditioning (Path A and Path B — default OFF)

Two valuation-conditioning paths are wired into the code but default to OFF in both code and UI. Path A intersects the smart-long set with the cheap-half of EV/Gross-Profit names. Path B blends the smart composite with a valuation z-score: smart_composite − α · z(EV/GP) with α = 0.25 as a named config constant. Either path can be enabled per-universe without changing the published rankings; both are exposed in the validation panel.

Universes & alpha integration

The smart-quality composite is the live Quality block for NASDAQ-100 and S&P 500. KOSPI 200, NASDAQ (All), and MAPS keep the legacy Quality block (mostly ROE/D-E based) because the smart build's data dependencies (8 years of FMP statements at the required granularity) are not reliably populated for those universes. The alpha pipeline reads whichever quality file is named in coverage.json, so the upgrade is transparent to downstream consumers.

A/B alpha diff (one-shot, ship-time)

At v14 ship we generated a one-shot diagnostic_v14_alpha_diff.json capturing the per-universe Spearman rank correlation between the legacy-quality alpha pins and the smart-quality alpha pins, the top-20 churn rate, and the biggest ticker-level rank moves. This is a snapshot, not a regenerating artefact; the cron does not refresh it.

Crowding indicator (regime panel)

A dumb-minus-smart trailing 6-12 month return spread surfaces in the regime panel as an informational crowding indicator. When the dumb lens beats the smart lens by a wide margin, low-quality "quality" names (high ROE driven by leverage, accruals, or buybacks) are leading — usually a late-cycle signal that the cheap factor lens is being rewarded. The indicator is informational only; it does not size positions or trigger trades.

Composite Alpha Löwdin-orthogonalised factor combination

Symmetric orthogonalisation of 12 momentum factors into mutually orthogonal axes
Klein & Chow (2013); Asness, Frazzini & Pedersen (2019); Grinold & Kahn (2000)
Alpha

The momentum composite combines twelve factors (12-1 momentum, Sharpe, 6-1 momentum, FIP, Hurst, EWMA, Path R², Acceleration, Residual Momentum, Omega, Calmar, Sortino). Several of these are mathematically related and empirically correlated — for example Sharpe, Sortino, Calmar and Omega all reward similar risk-adjusted trajectories, while 12-1 and 6-1 momentum share a large portion of their information. Composite Alpha is the same factor set rotated onto a mutually orthogonal basis so that each axis carries non-overlapping information.

The Composite Alpha (z) score is the book of record across the dashboard, the recommendations surface, the stock-detail hero, and the portfolio. The Friday rebalance ranks names by Composite Alpha (z); the per-block scores (momentum, earnings, value, quality) remain as input-block diagnostics on their factor pages.

Depth badge — Composite Alpha (N-block). The site labels Composite Alpha by depth: Composite Alpha (N-block) where N is the number of factor blocks that cleared the universe coverage gate. NASDAQ-100 and KOSPI 200 clear all four (Momentum + Earnings + Value + Quality). NASDAQ (All) and S&P 500 currently run at reduced depth while the smart-quality backfill progresses. FTSE 100 and EURO STOXX 50 currently run 1-block (Momentum) while earnings, value, and quality blocks are built out against the FMP /stable/ endpoints. The low-volatility block was retired in v26.3 (owner decision). The badge text is generated from coverage.json at build time — never hardcoded — so it stays honest as data coverage changes. The badge tooltip lists the eligible blocks explicitly.

MAPS exemption. The MAPS book runs at 1-block (Momentum) by design and is exempt from the fundamentals path: price-based blocks only — fundamental factors (earnings, value, quality) are not defined for futures / FX / ETF instruments. The badge for this universe reflects the ceiling, not a coverage gap. Investment trusts inside the FTSE 100 and EURO STOXX 50 (e.g. SMT.L, FCIT.L, ICP.L) are scored on price-based blocks only for the same structural reason.

Authenticity rule (the coverage gate). A block is eligible for inclusion only when its factor file has ≥90% authentic rows in the current universe — i.e. rows that are not filled with default sentinel values (for example the earnings beat-percentage sentinel 50.0 used when no actual beats are recorded). Coverage statistics are computed only on rows whose ticker is in the active universe set, so the per-universe coverage figure can never exceed 1.0.

1. Standardise the factor matrix
\[ Z_{ij} = \frac{F^{\text{clip}}_{ij} - \mu^{\text{clip}}_j}{\sigma^{\text{clip}}_j}, \quad F^{\text{clip}}_{ij} = \mathrm{clip}\!\left(F_{ij},\; \mu_j - 3\sigma_j,\; \mu_j + 3\sigma_j\right) \]

Input slot — raw factor values. \(F\) is the cross-sectional matrix of raw factor values (\(n\) tickers \(\times k=12\) factors) at the latest date, as written to the raw slot of factor_history_*.js. Each column is winsorised at \(\pm 3\sigma\) of its cross-sectional mean and standard deviation, then z-scored on the clipped sample.

Why raw and not percentile. An earlier v1 read the bounded percentile slot (already cross-sectionally ranked \([0,100]\)), which made the \(\pm 3\sigma\) winsorisation a no-op — percentiles are already constrained, so the clip step did nothing and the documentation overstated the robustness of the pipeline. v2 reads the raw slot, where extreme values do exist and the winsorisation step actually clips tails. The alpha.json payload reports input_slot and n_clipped so the effect of the clip step is auditable.

2. Factor correlation matrix
\[ C = \frac{1}{n-1} Z^\top Z \in \mathbb{R}^{k \times k} \]

\(C\) is symmetric positive semi-definite and contains the cross-sectional Pearson correlation between every pair of factors. The mean absolute off-diagonal entry of \(C\) is the headline measure of shared information, displayed on alpha.html.

3. Eigen-decomposition
\[ C = V \Lambda V^\top, \quad V V^\top = I, \quad \Lambda = \mathrm{diag}(\lambda_1, \dots, \lambda_k) \]

\(V\) is the orthogonal matrix of eigenvectors and \(\Lambda\) the diagonal matrix of (non-negative) eigenvalues. Computed with numpy.linalg.eigh for numerical robustness; eigenvalues are clipped at \(10^{-10}\) to guard against floating-point negatives.

4. Löwdin symmetric inverse square root
\[ C^{-1/2} = V \Lambda^{-1/2} V^\top \]

The symmetric (Löwdin) inverse square root is the unique symmetric positive-definite matrix whose square equals \(C^{-1}\). It defines the rotation that decorrelates the factor matrix with minimum total rotation, preserving as much identity as possible between each orthogonalised factor and its original counterpart.

5. Orthogonalised factor matrix
\[ F^\ast = Z \, C^{-1/2} \]

\(F^\ast\) has mutually orthogonal columns: \((F^\ast)^\top F^\ast / (n-1) = I_k\). Each column is re-z-scored cross-sectionally so the composite is invariant to scaling.

6. Composite Alpha (v1: equal weights)
\[ \alpha_i = \sum_{j=1}^{k} w_j \, F^\ast_{ij}, \quad w_j = \frac{1}{k} \]

The cross-sectional composite for ticker \(i\) is then z-scored to produce the Composite Alpha (z) shown in the UI. v1 weights every orthogonalised factor equally by design — with only ~3 years of weekly factor history available, an IC-IR estimate has too much standard error to be preferred to the equal-weight prior. The page exposes per-factor rolling Spearman IC against 21d and 63d forward returns so the IR estimate can be monitored. Promotion criterion to v2 IC-IR weighting (Grinold & Kahn, 2000): at least 3 years of non-overlapping monthly IC observations per factor, with the IC-IR standard error \(\sigma_{IR}/\sqrt{n}\) below the IR point estimate. Until that threshold is reached the page uses equal weights.

\(n, k\)Cross-sectional ticker count and factor count (\(k=12\))
\(Z\)Standardised, winsorised factor matrix
\(C\)Factor correlation matrix (\(k \times k\), symmetric PSD)
\(V, \Lambda\)Eigenvectors and eigenvalues of \(C\)
\(C^{-1/2}\)Löwdin symmetric inverse square root
\(F^\ast\)Orthogonalised factor matrix \(= Z \, C^{-1/2}\)
\(w_j\)Factor weight; \(1/k\) in v1, IC-weighted in v2

Why Löwdin and not Gram–Schmidt. Gram–Schmidt orthogonalisation depends on the order in which factors are processed; the first factor is preserved exactly while later ones are residualised against earlier ones. Löwdin’s symmetric prescription has no preferred order — every factor is treated identically and the rotation is the smallest in Frobenius norm. For a factor panel where there is no a priori reason to privilege one factor over another, symmetry is the correct default.

Book of record. Composite Alpha (z) is the headline selection score. The unrotated momentum composite remains visible on factor pages as an input-block diagnostic — it does not drive selection. The orthogonalised score reveals how much of a name’s factor exposure is shared versus genuinely independent signal across the eligible blocks.

Coverage. Composite Alpha runs on every universe whose data clears the coverage authenticity gate. Depths are read from coverage.json at build time and are never hardcoded on the surface, so the badge stays honest as data coverage evolves. Live snapshot at the time of writing: NASDAQ-100 (5-block), KOSPI 200 (5-block), NASDAQ (All) (4-block), S&P 500 (4-block), FTSE 100 (2-block), EURO STOXX 50 (2-block), MAPS (2-block, exempt from the fundamentals path). Eligibility per universe and per block is published in coverage.json; the depth badge on every surface is derived from that file.

The Quality block is the smart-quality construction — the dumb composite never enters scoring. Every Composite Alpha Quality-block reading is drawn from the file named in coverage.json: quality_smart_scores_nasdaq.js for NASDAQ-100, quality_smart_scores_sp500.js for SP500, and the legacy quality_scores_* files (which are the smart build’s predecessor, not the naive dumb build) for NASDAQ (All) and KOSPI 200. The dumb composite — the deliberately naive retail-screener build documented under Smart vs Dumb Quality above — is a research control only. It is not read by refresh_composite_alpha.py, it is not read by refresh_portfolio.py, and it does not appear anywhere in the alpha, portfolio, or dashboard pipelines. Its only appearance sitewide is on the Smart vs Dumb Quality diagnostic page and inside the trailing 6-12 month SMD spread shown as an informational crowding indicator on the regime panel. If you see a Quality-block percentile on this site, it came from the smart construction (or its legacy predecessor), never from dumb.

Related literature:
  • Klein, R.F. & Chow, V.K. (2013). "Orthogonalized factors and systematic risk decomposition." Quarterly Review of Economics and Finance, 53(2), 175–187. — Establishes Löwdin symmetric orthogonalisation as the order-independent default for decorrelating risk factors in finance.
  • Asness, C.S., Frazzini, A. & Pedersen, L.H. (2019). "Quality minus junk." Review of Accounting Studies, 24(1), 34–112. — Discusses combining correlated quality sub-factors into a single composite; same conceptual problem solved here for momentum.
  • Grinold, R.C. & Kahn, R.N. (2000). Active Portfolio Management, 2nd ed., McGraw-Hill. — Standard reference for IC-weighted factor combination; basis for the v2 weighting upgrade.
  • Löwdin, P.-O. (1950). "On the non-orthogonality problem connected with the use of atomic wave functions in the theory of molecules and crystals." Journal of Chemical Physics, 18(3), 365–375. — Original derivation of the symmetric orthogonalisation transform.

Technical analysis two measured patterns; a presentation overlay, not a Composite Alpha input

Falling wedge (long) and head and shoulders (short) — the only two of nine classical patterns that survived a 64-year replay
Lo, Mamaysky & Wang (2000); Bulkowski (2005); EQT Lab replay 1962–2026 (October 2026)
Overlay

refresh_ta.py finds fractal swing pivots (five-bar window) in each daily close series and tests them for two shapes. A falling wedge is a run of swing highs and swing lows that are both falling, the highs faster than the lows, each line fitted with R² ≥ 0.5; it is read long. A head and shoulders is five alternating pivots high–low–high–low–high with the middle high above both shoulders and the shoulders within 4% of each other; the neckline is the mean of the two troughs and it is read short. A pivot is only known five sessions after it prints, so the signal date is the session on which the last pivot is confirmed, and the research hold is 21 sessions from that close. A pattern stays listed for up to 60 sessions after its last pivot (head and shoulders: while the measured move below the neckline has not played out). The scanner runs nightly across NASDAQ-100, NASDAQ Top-650, S&P 500, KOSPI 200, FTSE 100, EURO STOXX 50 and MAPS, and the live signals are consolidated in ta_signals.json.

Why only two patterns. Until October 2026 this layer showed nine patterns, a 0–100 technical score, confidence badges, measured-move targets and reward/risk. We replayed that scanner causally, day by day, over the stored histories of 513 current Nasdaq-100 and S&P 500 names from 1962 (about 408,000 pattern events) and measured each signal’s return in excess of the equal-weight universe at 5, 10, 21, 42 and 63 sessions, with t-statistics clustered by month. The score had a monthly rank correlation of 0.004 with the next month’s excess return; targets were reached in 33–40% of cases while the neckline stop was hit in over 70%; cup and handle and inverse head and shoulders pointed the wrong way (−0.25% and −0.21% a month, t −3.5); double tops and bottoms and the triangles were indistinguishable from zero; the rising wedge’s small edge was pure short-term reversal and vanished after 2010. The falling wedge (+0.47% a month vs universe, t 4.4, positive in six of seven decades, +0.37% after removing the reversal effect) and the head and shoulders (+0.14% a month, +0.54% at three months, t 2.4 / 4.7, +0.18% after the reversal control) were the only two with a repeatable edge. Everything else was retired. Since November 2026 every universe is measured separately on its own daily history (Yahoo, as far back as it goes: the FTSE 100 from 1968, the KOSPI 200 from 2000, the Euro Stoxx 50 from 1989, MAPS from 1984) against its own equal-weight benchmark, and the Technical Analysis page shows the history for the universe you pick, presented the way the confirmed strategies are. The edge is not uniform: at one month the falling wedge is +0.47% (t 4.5) on the S&P 500, +0.40% on the NASDAQ Top-650 and the FTSE 100 (t 2.5 / 2.7), +0.39% on MAPS (t 2.4), but only +0.15% on the NASDAQ-100 alone (t 0.8), +0.23% on the KOSPI 200 (t 1.6) and +0.18% on the Euro Stoxx 50 (t 0.9); the head and shoulders is +0.31% on the NASDAQ-100 (t 2.1), +0.26% on the Top-650 (t 2.7), +0.12% on the S&P 500 (t 2.0), +0.17% on the FTSE 100 (t 1.8) and indistinguishable from zero on the KOSPI 200, the Euro Stoxx 50 and MAPS.

Conviction (November 2026). We asked whether any measurable quality of a falling wedge predicts a bigger return, testing eleven measures in quintiles on every universe separately (code in bots_backtest/wedge_conviction). The detector’s own trendline-fit score does not: it is weak in the two large US universes and absent elsewhere. What does, everywhere, is the state of the stock on the signal bar: its drawdown from the 250-session high and its 20-session volatility. Each is ranked against every earlier falling-wedge signal in the same universe (so the rule is causal, after a burn-in of 300 signals), the two ranks are averaged, and the top fifth is called high conviction. The other four fifths are flat or negative in every universe. Against names with the same drawdown and volatility but no wedge, the wedge itself adds a few tenths of a percent in the S&P 500 and FTSE 100 and nothing measurable elsewhere, so most of the high-conviction return is a rebound effect that any beaten-down volatile name offers. The payoff is skewed: the median high-conviction signal often still lags, about half beat the universe, and the worst tenth lose 12–22% against it in a month. The technical page now reads each universe’s wedges through this rule, the live table tags every wedge high or standard, and the measured-history tables show the high-conviction fifth beside every wedge. The calibration (quantile grids of the two measures and the score cut) sits in each universe’s payload and is read back by the nightly scanner, so the tag on the page and the history behind it use one rule.

What the edge is and is not. Both are relative calls: the falling-wedge stock beats the universe by about half a percent in the following month, the head-and-shoulders stock lags it by a sixth of a percent. The shorted names still rose on average in a rising market. Signals overlap heavily (roughly 620 falling wedges and 470 head and shoulders a year across the universe), so a sleeve that holds every signal behaves like a tilted index. No costs are included; each universe is today’s constituents (survivorship, stated not patched). Unit switches in the long histories (pence and pounds, mis-scaled blocks) were repaired at source; the one-day jumps that could not be explained are treated as a missing day, so no signal is credited with a move across them, and the names with too little history to measure are listed in each payload rather than dropped.

TA is an overlay, not a Composite Alpha input. Composite Alpha is built only from blocks that clear the universe coverage authenticity gate (Momentum, Earnings, Value, Quality). Pattern readings are episodic and not a uniformly distributed cross-sectional feature; promoting them into the orthogonalised composite would distort the Löwdin rotation. TA sits outside the composite and the Friday rebalance in refresh_portfolio.py never reads it. The former ta_score diagnostic has been removed.

Badge legend. On the leaderboards a row carries a badge only while a live pattern is inside its 21-session hold, read against the ticker’s Composite Alpha sign.

CONFLUENCE (bullish)
alpha_z ≥ 0 and a live falling wedge. The composite picks the name long and the pattern agrees.
CONFLUENCE (bearish)
alpha_z < 0 and a live head and shoulders. The composite picks the name short and the pattern agrees.
CONFLICT
A long pick with a live head and shoulders, or a short pick with a live falling wedge. Conflicts get the same prominence as confluences.
No badge
No live pattern, or the pattern is past its 21-session hold.

Measured history. backtest_ta_patterns.py rebuilds one payload per universe (strategy_ta_patterns.json for the NASDAQ-100, strategy_ta_patterns_<universe>.json for the others) from the research price stores, each universe on its own names and against its own equal-weight benchmark: forward returns by horizon and by decade for each pattern, the daily sleeves (every signal held 21 sessions, equal weight) against the equal-weight universe, the last 90 sessions of signals with their realised outcomes, and the seven retired patterns with the same measurement.

Related literature:
  • Lo, A.W., Mamaysky, H. & Wang, J. (2000). "Foundations of technical analysis: Computational algorithms, statistical inference, and empirical implementation." Journal of Finance, 55(4), 1705–1765. — Algorithmic pattern detection and its empirical performance on US equities.
  • Bulkowski, T.N. (2005). Encyclopedia of Chart Patterns, 2nd ed., Wiley. — Reference taxonomy and performance statistics for the chart patterns.

Universes

Seven universes are scored. Each carries an honest block depth in coverage.json: the number of alpha blocks with real data. Depth is never inflated to make a universe look complete.

UniverseSlugTickersNotes
NASDAQ-100nasdaq100101Deepest coverage; all four blocks.
NASDAQ (All)nasdaq_all653Liquid full-exchange set.
S&P 500sp500502Quality block held back by the coverage gate until the smart-quality backfill clears 90%.
KOSPI 200kospi200195Thin analyst coverage flagged on earnings factors.
FTSE 100ftse10098Momentum only. Fundamentals deferred, not faked.
EURO STOXX 50eurostoxx5050Momentum only, as above.
MAPSmaps87Multi-asset book (equity, futures, FX, ETFs). Price-based blocks only by definition — fundamental factors are not defined for futures, FX, or ETF instruments.
Cryptocrypto100Top 100 coins by market cap (CoinGecko ranking, free API; stablecoins, wrappers, and tokenised funds excluded). Prices from Yahoo Finance. Momentum block only — appears on the Price Momentum page, not in Composite Alpha. BTC is the market proxy for residual momentum.

Display names above are canonical, defined once in universe-keys.js. Legacy slugs (nasdaq, nasdaq_liquid, etfs) are aliases kept for data-file compatibility.

IC diagnostics and factor weights

The alpha page shows per-factor diagnostics for the momentum block. They are supporting evidence. The leaderboard already combines every eligible block.

Information coefficient. The IC is the Spearman rank correlation of a raw factor against forward returns, computed weekly across the entire universe. The rolling chart shows the 21-day-forward IC for the four highest-IR factors, median-smoothed over a 13-week window.

Factor weights. Weights are equal by design in v1: all 12 orthogonalised factors carry weight 1/k, identically for both display and selection. The promotion criterion to IC-IR weighting is documented under Composite alpha, step 6.

Correlation heatmap. Each cell is the cross-sectional Pearson correlation between two factors in the active universe. Off-diagonal values near zero mean the factors carry independent information. The pre- and post-orthogonalisation mean absolute off-diagonal values are reported in the diagnostics strip on the alpha page; the post value is zero by construction under Löwdin.

Quality pillars

The legacy quality score is a percentile-rank composite of four pillars. Each pillar is itself a composite of three metrics, percentile-ranked within the universe. Default weights are shown; the quality page lets the user re-weight pillars interactively, and weights are normalised so totals other than 100 still work.

PillarDefault weightMetrics
Profitability30%ROIC (NOPAT ÷ invested capital), 5-year average ROE, trailing gross margin.
Earnings stability25%5-year EPS coefficient of variation, 12-quarter beat rate, 8-year operating-margin volatility.
Balance sheet25%Net debt / EBITDA, interest coverage, current ratio. Higher = stronger solvency.
Cash flow20%FCF / net-income conversion, FCF margin, cash conversion cycle. Higher = cleaner earnings.

This legacy build feeds the quality block for NASDAQ (All) and KOSPI 200. NASDAQ-100 and S&P 500 use the smart-quality construction — see Smart vs dumb quality.

Value score

Each of five sub-factors is converted to a sector-relative percentile (0–100) within the stock's GICS sector. Cheaper = higher score. The composite is the weighted sum.

FactorWeightDefinition
EV / EBITDA30%Enterprise value over trailing EBITDA.
FCF yield25%Free cash flow over enterprise value.
EV / Sales20%Enterprise value over trailing revenue.
Shareholder yield15%Dividend yield plus estimated buyback yield (FCF retained after dividends).
P / B10%Price to book.

Grades. A+ ≥ 85 · A ≥ 75 · B+ ≥ 65 · B ≥ 55 · C+ ≥ 45 · C ≥ 35 · D ≥ 25 · F < 25. The same thresholds are used wherever a letter grade appears on a percentile composite.

Low volatility retired August 2026

The low-volatility block was retired from Composite Alpha by owner decision on 9 Aug 2026 (v26.3). The composite now combines momentum, earnings, value, and quality where each clears the coverage gate. Historical low-vol data files remain on disk but feed nothing.

Expected earnings move

The predictor page prices expected earnings volatility from the options market: the at-the-money straddle nearest the earnings date implies the market's expected move. Values are DTE-adjusted with variance subtraction and compared with the stock's historical earnings-day moves. Straddle data is sourced from Polygon.io. Covered universes: NASDAQ-100 and S&P 500.

Paper portfolio

A $1,000,000 paper book on the NASDAQ-100 universe. Selection: the top 10 names by Composite Alpha (z) at each Friday close, from the pinned composite_alpha.json book of record. Sizing: equal weight, one tenth each. Rebalance: weekly, Fridays. Buys are new entrants or top-ups to equal weight; sells are exits or trims. Names ranked 11–20 form the watchlist — the first candidates to enter at the next rebalance.

The equity curve marks the book to market at each weekly rebalance since inception. Cross-sectional momentum selection is the standard academic anomaly (Jegadeesh & Titman, 1993).

The live IBKR panel on the portfolio page is a separate read-only feed of real positions, refreshed roughly every 5 minutes by a local bridge. It has no connection to the paper book's selection logic, and the site has no order-placement capability of any kind.