S&P 500 · UNRATE · CPI YoY · Fed Funds · M2 · Monthly · 1959–2026
SPX Macro Composite TradingView formula · SPX × inflation × rates ÷ (unemployment² × M2)
SP:SPX ÷ FRED:UNRATE ÷ FRED:UNRATE × ECONOMICS:USIRYY × ECONOMICS:USINTR ÷ usm2
Dotted nowcast · provisional
Months since composite < 0.1
Loading SPX macro composite…
Drag = pan · shift+drag = box-zoom · scroll = zoom X · drag Y-axis = zoom Y · double-click = reset
SPX Macro Composite · dashed guide at 0.1
S&P 500 · monthly average · log scale
Months since composite < 0.1
This page plots a single TradingView formula — SP:SPX / FRED:UNRATE / FRED:UNRATE * ECONOMICS:USIRYY * ECONOMICS:USINTR / usm2 — recreated with free public data. It is not affiliated with or endorsed by TradingView, and it is not investment advice. TradingView series are approximated by the closest free equivalents listed below.
What this shows: the TradingView formula SP:SPX ÷ FRED:UNRATE ÷ FRED:UNRATE × ECONOMICS:USIRYY × ECONOMICS:USINTR ÷ usm2, evaluated month by month as typed (left-to-right, × and ÷ have equal precedence): S&P 500 level × inflation YoY (%) × Fed funds rate (%) ÷ unemployment rate (%)² ÷ US M2 money supply ($bn). The result is a dimensionless index — there is no natural unit, so levels are arbitrary and only the shape and relative changes matter. Higher values mean stocks are expensive relative to the macro mix (or unemployment/M2 are low); lower values mean the macro burden is high.

Leg mapping (TradingView → free equivalent):
SP:SPX → S&P 500 monthly average (Robert Shiller's long-run dataset, 1871+, maintained mirror)
FRED:UNRATE → FRED UNRATE (civilian unemployment rate, %)
ECONOMICS:USIRYY → FRED CPIAUCSL year-over-year % change (US inflation rate, all urban consumers)
ECONOMICS:USINTR → FRED FEDFUNDS (effective federal funds rate, %)
usm2 → FRED M2SL (US M2 money supply, seasonally adjusted, $ billions)

Dotted nowcast: the solid composite ends at the latest month with every published input. The amber dotted tail estimates the later months using their published inputs where available, and holds unemployment, CPI inflation and M2 at the latest released reference month where newer readings are unavailable. The current month uses the average of available daily SPX closes and daily effective federal funds rates (DFF), matching the monthly-average basis of the history. The current endpoint is dated to its latest price observation.
Held values are assumptions, rather than forecasts of their next releases. The estimates are recalculated with the current data vintage and can change when releases or revisions arrive; they are not historical point-in-time forecasts. The white dotted price extension shows the newer monthly averages, including the provisional current month. A dotted line becomes confirmed only when all the required monthly series are available. The original formula and historical composite are retained.

Months since composite below 0.1: the third panel resets to zero in each month with a confirmed composite strictly below 0.1, then counts calendar months since the latest such month. A value exactly equal to 0.1 does not reset it. The count is calculated from the full monthly history, so changing the visible window does not restart it. Before the first known sub-0.1 observation it is unavailable. The dotted provisional tail applies the same calculation to the nowcasts; an estimated reset does not alter the confirmed history.

Refresh: the server checks at 06:35, 14:35 and 21:35 New York time daily. Inputs and the estimate date are shown above. Missing inputs are carried for at most three reference months; stale daily prices or rates stop the refresh and retain the last valid snapshot. Daily effective rate · Daily SPX closes · Updater status.

Reading the chart: the line is the raw formula output for each month. It spikes in tight-labour-market, high-rate, high-inflation, low-liquidity regimes and collapses when unemployment or money supply grow. Because it is a ratio of a price level to macro aggregates, it drifts over time — zoom in (scroll / shift+drag) to compare episodes on the same scale. Data may be revised.

Data: chart data (JSON) · source series (CSV) · FRED UNRATE · FRED CPIAUCSL · FRED FEDFUNDS · FRED M2SL