momentum: Annualized Regression Momentum (Clenow)
Evaluates trend persistence by multiplying the annualized slope of log prices by the regression R-squared.
@momentum(close, 90) > 0.35 Key Takeaways
- Combines trend speed (annualized slope) with trend quality ($R^2$ goodness-of-fit).
- Heavily penalizes single-day gap spikes while rewarding smooth, continuous accumulation.
- The cornerstone ranking formula for institutional trend-following portfolios.
What It Means in Simple Terms
Most traders measure momentum simply by asking 'How much did the stock gain over the last 6 months?' But that question is flawed! A speculative penny stock that jumped 80% yesterday due to a rumor gets the same score as an institutional favorite that quietly gained 0.5% every single week for 6 months. Clenow momentum solves this: it measures both the speed of the climb AND how smooth the line is. It rewards steady, persistent trends and penalizes jumpy, erratic gambles.
How It Helps You as an Investor
It protects you from buying speculative pump-and-dump spikes. In a visual ranking rule, sorting your universe by Clenow momentum ensures that your portfolio holds the highest-conviction, smoothest institutional winners in the market.
Visual Node Rule Syntax & How to Plug in Values
@momentum(close, 90) > 0.35 Parameter Tuning & Market Calibration
The primary input is the lookback period $n$ in trading days. A setting of 90 days (approx. 4.5 months) or 126 days (approx. 6 months) is the gold standard for momentum investing. If you set it too short (e.g. 20 days), normal daily zig-zags will scramble the regression. If you set it too long (e.g. 252 days), the score takes too long to recognize fresh emerging leaders.
Input Fields & Parameters
| Field / Parameter | Type | Default | Role & Description |
|---|---|---|---|
field | field | Required | Historical input price or volume series from market feed. |
timeperiod | int | Default | Lookback period or tuning parameter for market calibration. |
Mathematical Formulation
The mathematical definition of momentum (Annualized Regression Momentum (Clenow)) as evaluated within the Saral Engine execution pipeline:
Variable & Parameter Definitions
$\beta_{\text{slope}}$ is the slope of log prices regressed against an integer time index over the lookback window. $(1 + \beta)^{252}$ annualizes the growth velocity, and multiplying by $R^2$ (coefficient of determination) penalizes volatility, ensuring smooth, consistent trends outrank noisy spikes.
Systematic Strategy Applications
@momentum(close, 90) Rank the Nifty 500 universe by 90-day regression momentum descending and pick the top 20 stocks.
@momentum(close, 60) < 0.05 Exit when trend quality deteriorates below 0.05, signaling trend exhaustion.
Common Questions & Practical Considerations
Why does multiplying by R-squared make such a big difference?
$R^2$ measures how tightly daily prices hug the trendline. If a stock moves in a straight 45-degree angle, $R^2$ is near 1.0. If price bounces up and down violently, $R^2$ drops toward 0.1, crushing the score.
What happens to regression momentum at market bottoms?
After a sharp market crash, even the best stocks will have downward slopes over past months. It typically takes 3 to 6 weeks of steady recovery before regression momentum turns strongly positive.
How often should I rebalance a momentum strategy?
Monthly rebalancing (every 21 trading days) is the sweet spot. Weekly rebalancing generates unnecessary brokerage and STT friction, while quarterly rebalancing can be too slow to exit deteriorating momentum.