Data to 20 November 2026
About

Methods

Trend and momentum of every market

How the section at /trend/ measures trend, momentum and regimes for every Indian index, gold, G-secs, the rupee and overseas indices in rupees. These are descriptions of the past, not tested signals; the tests are on /trend/evidence/ and in the specs listed at the end.

Code: pipeline/tipsheet/compute/trend_taxonomy.py, compute/trend_section.py, publish/trend_section.py, refreshed by the plug-in step steps/trend_section.py. Tests: pipeline/tests/test_trend_section.py. Bundles: trend/*.

The markets

Launch dates and back-calculated history

NSE publishes most indices with a history that starts years before their launch: today’s rules applied to the past. Rules chosen with that past in view look better in it than they will afterwards.

The trend score

The pre-registered score of trend_barometer_spec.md, unchanged: four signal types (past return, price against its average, a quarter-length average against a full-length one, position in the high-low channel) at six horizons (21, 42, 63, 126, 189 and 252 sessions), each a vote, on the market’s level divided by the 91-day T-bill cash index (so a market that only keeps pace with cash is not trending). The score is the share of the 24 votes that are up, 0 to 100. Pages show the votes at 1, 3, 6 and 12 months (21, 63, 126, 252 sessions), up to four each.

Trend by speed (2026-10-15)

The 24 votes split into thirds by horizon (compute/trend_speeds.py, momentum_v3_spec.md): fast (21 and 42 sessions), medium (63, 126) and slow (189, 252), each the share of its 8 votes that are up, 0 to 100. The three average to the trend score; nothing new is computed from prices. A market’s speeds disagree when the fast and slow thirds point opposite ways by a majority (one at 62.5 or above, 5 of 8 up, and the other at 37.5 or below): “short-term dip in a longer uptrend” or “short-term bounce in a longer downtrend”. Shown on /trend/ (chapter “Fast against slow”, and fast/slow columns in the table view) and on each market’s trend tab (today’s thirds and a two-year weekly chart). Descriptive: tested as long-or-cash rules on 79 markets (SP-H1 to SP-H5), no speed beat another or buying and holding by more than luck, and after tax every speed trailed holding by about three points a year.

Uptrend and downtrend (the regime)

Momentum rank

Each market’s return over cash at 1, 3, 6 and 12 months (21, 63, 126, 252 sessions) is ranked as a percentile among the markets with that horizon on that day; the four percentiles are averaged and the average ranked again, 0 to 100 (100 strongest). Shown overall and within the family. Daily, published weekly. It is relative: in a falling market the leaders may still be falling. The pre-registered six-flavour blend (momentum_barometer_spec.md, MO-H5) remains the tested version and is on the evidence page.

Rule states and replays

Other measures on the market pages

What is published

Scores, votes, ranks, returns, drawdowns and rebased growth curves for NSE indices, gold and G-secs. No index levels. The licence gate (publish/licence_gate.py) runs over every bundle.

docs/research/trend_momentum_spec.md (single rules, sector momentum), trend_barometer_spec.md (the ensemble), momentum_barometer_spec.md (stock momentum, MO-H5), trend_models_v2_spec.md (the second review, 2026-10-13: volatility forecasts and scaling, the 52-week high, slow and fast blends, variance ratios, Markov switching and what followed past trends; none passed), momentum_v3_spec.md (the third review, 2026-10-15: trend by speed, SP-H1 to SP-H5, none passed; stock momentum MO-H6 to MO-H9), and the audit register docs/research/AUDIT.md (rows T1–T6, BT1, R1–R5, D9).

Path quality diagnostics (2026-10-05)

These additions do not change registered trend votes, momentum ranks, regime thresholds or strategy replays. Use native total-return index closes on the breadth market-session calendar, without filling missing prices. Missing, nonpositive or nonfinite closes interrupt full-window calculations. Publish weekly last-session readings and a latest common-session table. Histories start at known launch dates; unknown launches use reported history. Warmup may use provider pre-launch history, so early diagnostics can reflect back-calculations.

Fixed 63-session efficiency is absolute net displacement divided by the sum of absolute daily price changes, times 100. It needs 64 closes (63 changes). A flat zero-length path is blank. High efficiency can describe falls as well as rises; direction remains in the existing trend score.

Persistence is the fraction of the last 63 sessions strictly above their own trailing 200-session simple average. It needs valid averages at all 63 sessions (262 closes). Equality does not count as above.

Extension is log(close / 200-session average) divided by the trailing 63-session sample standard deviation of daily log returns times √63. Zero volatility is blank. This is a scaled distance, not a statistical z-score or reversal forecast. Annualised volatility uses the same standard deviation times √252, in per cent. Rank persistence and cross-measure redundancy analysis remain separate work; no composite score, outcome test or trading rule is inferred.

Representative quality displays

The four index family quality chapters lead with fixed editorial lists in apps/site/src/lib/trend-display.ts. Broad benchmarks include Nifty 200 and Nifty 500, followed by distinct size segments. Sector defaults retain main business benchmarks, including both healthcare and pharma. Themes use a cross-section of distinct concepts. Strategies show one representative for main factor/construction approaches, preferring a Nifty 500 parent where available. Remaining indices stay in grouped selectors and expanded tables. These are display choices, without performance selection or changes to analytic universes, family breadth, rankings, signals or histories. Index overlap and construction differences remain explicit.

The trend tab (2026-10-13)

Each market page (/trend/<slug>/) is now the “Trend and momentum” tab of the market. For NSE indices it sits beside /indices/<slug>/ under a shared tab bar, so falls, calendar returns, valuation and holdings live on the index tab only. Gold, G-secs, the rupee and the overseas indices have no index tab and keep their falls chart and monthly calendar here. Brief: docs/briefs/trend_tab_and_models.md (stage 1). Code: compute/trend_tab.py, called from compute/trend_section.py; tests: pipeline/tests/test_trend_tab.py. Everything below is a description of the past built from the measures above; nothing is a new signal and none of it was tested.

This note is the repository file docs/methods/trend_momentum.md, rendered as-is.