Botscoutbotscout.io

Screening

Residual momentum: ranking stocks by trend strength beyond the market

Raw price momentum has a hidden flaw: in a strong rally, high-beta stocks rise fastest simply because they amplify the index, and when the index turns they fall together. Residual momentum fixes that by regressing each stock's daily returns against the S&P 500 and scoring only the part of the trend that the market itself cannot explain. What remains is company-specific strength: a steadier, cleaner signal with shallower drawdowns.

By Botscout · Updated

Why raw momentum gets crowded

A standard momentum screen ranks stocks by their total return over the past six or twelve months. During a broad market advance, the top of that list fills up with volatile stocks that move two or three times as much as the index. The portfolio looks diversified on paper, yet every holding is making the same bet on the market direction.

Residual momentum asks a sharper question: after accounting for how sensitive a stock is to the S&P 500, how much did it outperform or underperform on its own merits? A calm industrial company climbing steadily every week often scores higher than a wild technology stock that merely rode an index wave.

How the residual score is calculated

Botscout computes residual momentum on daily bars over a six-month or twelve-month window, skipping the most recent month of sessions so short-term spikes and mean-reversion noise do not distort the rank.

  • Estimate beta: regress the stock's daily log returns against SPY's daily log returns across the lookback window.
  • Isolate the residual: for each session up to twenty-one sessions ago, subtract beta times SPY's return from the stock's return.
  • Scale by volatility: sum those daily residuals and divide by their standard deviation. A stock that climbs smoothly scores higher than one that reaches the same level through erratic jumps.

Trend, near-high and market regime filters

A high residual score is only the first hurdle. Botscout pairs the ranking with structural filters that keep the screen focused on healthy uptrends.

  • Long-term uptrend: the stock must close above its 200-session moving average.
  • Near its 52-week high: variants such as Residual Plus and the 6-month lookback require the close to sit within 10% of the 52-week closing high, avoiding stocks trapped below heavy overhead resistance.
  • First pullback option: price-action variants wait for a top-ranked leader to dip toward its 20-session average before entering, combining residual leadership with a calmer entry point.
  • Market regime gate: when SPY closes at or below its 100-session average, new entries pause while existing holdings continue to follow their trailing stops.

Wide trailing stops that let leaders run

Stocks selected for steady residual strength need room to breathe through normal market pullbacks. Instead of a tight stop that exits on routine noise, Botscout's residual strategies trail a wide volatility stop set five 42-session ATRs below the highest close of the last 22 sessions, ratcheted upward and never lowered, alongside a break-even lock once price advances three ATRs above entry.

Common questions

How is residual momentum different from relative strength?

Simple relative strength compares a stock's return directly with the index return. Residual momentum adjusts for beta first and divides by the volatility of the residuals, so a high-beta stock gets no automatic advantage in a rising market and erratic movers are penalised.

Why skip the most recent 21 sessions when scoring momentum?

Over a single month stocks often experience short-term reversal: a sharp multi-week jump frequently pauses or pulls back. Skipping the last 21 sessions measures the sustained trend while avoiding overheated short-term spikes.

What does the market regime gate do?

When the S&P 500 ETF closes at or below its 100-session average, the strategy holds off on opening new positions while continuing to manage open holdings and stops. This avoids stepping into new trends during broad market corrections.

This guide is educational. Botscout is a research tool, not investment advice, and paper trading uses pretend money only.

All guides