Concept Specification
macro2026-04-20

Calculating the Investment Clock

Mathematical specification for calculating the Merrill Lynch Investment Clock in real time: 10-indicator FRED pipeline, exponential rolling Z-scores, and phase angle cartesian mapping.

Overview

The Merrill Lynch Investment Clock maps macroeconomic cycles into a two-dimensional continuous phase plane defined by Growth and Inflation momentum relative to trend.

This guide details the mathematical formulas, FRED data pipeline, Exponential Moving Average (EMA) rolling Z-score normalization, and phase-angle calculations used in SOPHIE's real-time engine.


1. FRED Data Pipeline & Indicator Weightings

Ten underlying indicators from the St. Louis Federal Reserve (FRED) feed the dual composite indices:

Growth Composite (ZgrowthZ_{\text{growth}})

IndicatorFRED CodeTransformationComposite WeightSignal Direction
OECD Composite Leading IndicatorUSALORSGPNOSTSAMLevel50%+1+1 (Expansionary)
Industrial Production IndexINDPROYoY % Change20%+1+1 (Coincident Output)
Initial Jobless ClaimsICSAYoY % Change (4wk avg)15%1-1 (Inverted Labor)
Civilian Unemployment RateUNRATE12M Change (pp)15%1-1 (Inverted Labor)

Inflation Composite (ZinflationZ_{\text{inflation}})

IndicatorFRED CodeTransformationComposite WeightSignal Direction
5-Year Breakeven Inflation RateT5YIELevel (%) vs 2.0%30%+1+1 (Market Expectations)
Core Consumer Price Index (CPI)CPILFESLYoY % Change vs 2.0%25%+1+1 (Lagging Trend)
Producer Price Index (PPI Final Demand)PPIFISYoY % Change vs 2.0%20%+1+1 (Leading Pipeline)
Core CPI (Short-Term)CPILFESLMoM Annualized vs 2.0%15%+1+1 (Real-Time Inflection)
Total Capacity UtilizationTCULevel (%) vs 80.0%10%+1+1 (Demand Pressure)

2. Exponential Rolling Z-Score Normalization

To eliminate lookahead bias while adapting quickly to regime shifts, each raw indicator xtx_t is normalized using an Exponential Weighted Moving Average (EWMA) with a 24-month span (α=2span+1=225=0.08\alpha = \frac{2}{\text{span} + 1} = \frac{2}{25} = 0.08):

μt=αxt+(1α)μt1\mu_t = \alpha x_t + (1 - \alpha) \mu_{t-1}

σt2=α(xtμt)2+(1α)σt12\sigma_t^2 = \alpha (x_t - \mu_t)^2 + (1 - \alpha) \sigma_{t-1}^2

zi,t=xi,tμi,tσi,tz_{i,t} = \frac{x_{i,t} - \mu_{i,t}}{\sigma_{i,t}}

The aggregate composite score for each dimension is the weighted sum:

Zgrowth,t=iGrowthwizi,tZ_{\text{growth},t} = \sum_{i \in \text{Growth}} w_i \cdot z_{i,t}

Zinflation,t=jInflationwjzj,tZ_{\text{inflation},t} = \sum_{j \in \text{Inflation}} w_j \cdot z_{j,t}


3. Phase Angle & Quadrant Classification

The economy's exact position on the clock face is computed via the four-quadrant arctangent in degrees:

θt=atan2(Zinflation,t,Zgrowth,t)×180π\theta_t = \operatorname{atan2}(Z_{\text{inflation},t}, Z_{\text{growth},t}) \times \frac{180}{\pi}

Normalizing θ[0,360)\theta \in [0^\circ, 360^\circ) mapped clockwise where 12:00 corresponds to peak inflation (θ=90\theta = 90^\circ):

  • Phase I: Reflation (6:00 to 9:00, Bottom-Left): Zgrowth<0Zinflation<0    Optimal Asset: Government BondsZ_{\text{growth}} < 0 \land Z_{\text{inflation}} < 0 \implies \textbf{Optimal Asset: Government Bonds}
  • Phase II: Recovery (9:00 to 12:00, Top-Left): Zgrowth0Zinflation<0    Optimal Asset: EquitiesZ_{\text{growth}} \ge 0 \land Z_{\text{inflation}} < 0 \implies \textbf{Optimal Asset: Equities}
  • Phase III: Overheat (12:00 to 3:00, Top-Right): Zgrowth0Zinflation0    Optimal Asset: CommoditiesZ_{\text{growth}} \ge 0 \land Z_{\text{inflation}} \ge 0 \implies \textbf{Optimal Asset: Commodities}
  • Phase IV: Stagflation (3:00 to 6:00, Bottom-Right): Zgrowth<0Zinflation0    Optimal Asset: Cash / T-BillsZ_{\text{growth}} < 0 \land Z_{\text{inflation}} \ge 0 \implies \textbf{Optimal Asset: Cash / T-Bills}

4. Hysteresis Filtering (Noise Reduction)

To avoid whipsaw regime flips during cyclical consolidation, a 0.20σ0.20\,\sigma Hysteresis Threshold is enforced:

A phase shift is only confirmed when the composite coordinate crosses the quadrant boundary by at least ΔZ0.20\Delta Z \ge 0.20.


Related Resources

Companion Research Article

A Quantitative Guide to Calculate The Investment Clock

A quantitative walkthrough for calculating the Investment Clock: FRED-derived Growth and Inflation Z-scores that pinpoint the current macro regime.

Comments

Disclaimer: This application is a personal proof of concept created for study and research purposes only. All analysis, suggestions, and content are generated by AI models using publicly available data and tools, and should not be considered as financial advice. Past performance is not indicative of future results. Always conduct your own research and consult with qualified financial professionals before making investment decisions. The app's AI models may have limitations and may not account for all market factors or recent developments. Users are solely responsible for their investment decisions and should understand that all investments involve risk.