Global Capital Flow Intelligence System
Executive Summary
Financial markets are driven by continuous capital movement between countries, sectors, factors, asset classes, and risk regimes. Institutional investors constantly reallocate in response to growth, inflation, monetary policy, valuations, and sentiment — yet direct fund-flow datasets (EPFR, Bloomberg, Morningstar) are expensive and inaccessible to most independent researchers.
This project constructs a Global Capital Flow Intelligence System using only Yahoo Finance ETF data. The central hypothesis is that capital flows leave measurable footprints in relative performance, volume participation, volatility structure, correlation topology, and leadership persistence. The pipeline transforms adjusted prices and volumes into a composite Capital Flow Score , ranks assets within eight analytical layers, classifies macro regimes, builds correlation networks, and backtests flow-informed portfolios against static benchmarks.
The framework is descriptive and hypothesis-driven: it does not claim to observe actual fund flows, but infers allocation *preferences* from market-generated information across 60+ liquid ETF proxies spanning 2010–present.
Research Motivation
The core question is: where is capital moving? Markets are driven by relative attractiveness, not absolute returns alone. Capital rotates between countries, developed and emerging markets, growth and value, equities and bonds, risk assets and defensives, sectors, currencies, and inflation-sensitive assets.
This study asks whether those rotations can be inferred when only public prices and volumes are available. Four research objectives structure the empirical work:
- Geographic allocation — US, Europe, Japan, China, India, EM, frontier proxies.
- Cross-asset allocation — equities, government bonds, credit, commodities, currencies.
- Sector and factor rotation — GICS sectors and style ETFs (momentum, value, quality, low vol, growth, dividend).
- Regime-conditional behaviour — whether flow signals and leadership differ across risk-on, risk-off, inflationary, deflationary, recovery, and crisis states.
Conceptual Framework
Sustained capital inflows tend to produce strong relative performance, persistent trends, rising participation, and improving breadth. Outflows tend to produce underperformance, volatility expansion, drawdowns, and narrowing leadership.
The system does not rely on a single indicator. Each asset at date receives a vector of engineered features spanning performance, participation, stability, and persistence. These are standardised cross-sectionally and combined into a scalar flow score used for ranking, heatmaps, and portfolio construction.
Data Preprocessing
Daily adjusted close prices and volumes are downloaded via yfinance for 60+ ETFs. Corporate actions are handled through Yahoo adjusted closes. The panel is aligned to a common calendar with limited forward-fill (five days) for missing quotes.
Daily simple returns:
Monthly returns from month-end prices:
Multi-horizon trailing returns over trading days:
Implemented horizons include days for tactical, intermediate, and strategic flow inference. Assets require at least 36 months of history to enter the scoring universe.
Feature Engineering
Realised volatility (21-day, annualised):
Relative volume (participation proxy):
Current drawdown from the running maximum:
Moving-average trend (persistence proxy):
Risk-adjusted momentum:
Relative return vs benchmark (SPY):
Market breadth by group :
Composite Capital Flow Score
For each rebalance date , raw features are aggregated into four dimension scores, then cross-sectionally z-scored among eligible assets :
Dimension inputs (matching the Python implementation):
- Performance : mean of .
- Participation : .
- Stability : mean of , , .
- Persistence : mean of and positive-month streak / 6.
The composite Capital Flow Score is a weighted sum:
Assets are ranked by . Signal thresholds:
Relative Strength and Cross-Asset Pairs
Capital allocation is inherently relative. For assets and , the -month relative strength is:
The dashboard reports canonical pairs: equities vs bonds (SPY–TLT), growth vs utilities (QQQ–XLU), EM vs US (VWO–SPY), India vs China (INDA–FXI), credit vs Treasuries (HYG–TLT), gold vs equities (GLD–SPY), momentum vs value (MTUM–VLUE), energy vs technology (XLE–XLK), Europe vs US (FEZ–SPY), and USD vs EM FX (UUP–CEW).
Within each analytical layer, 12-month relative strength vs SPY ranks regional, sector, and factor proxies.
Eight Analytical Layers
Each layer defines a universe of ETF proxies. Layer-level rankings use the same composite score restricted to :
1. Global Equity — US (SPY, QQQ, RSP, IWM), Europe (FEZ, EWU, EWG, EWQ), Asia (EWJ, FXI, KWEB, INDA, EWY, EWT), EM/frontier (VWO, ILF, EWZ, EWW, FM). 2. Fixed Income — duration (TLT, IEF, SHY), TIPS (TIP), credit (LQD, HYG, EMB), floaters/muni (FLOT, MUB). 3. Commodity — GLD, SLV, USO, UNG, CPER, DBA, DBC, URA. 4. Currency — UUP, FXE, FXY, FXF, FXA, FXC, CEW. 5. Sector — XLK, XLF, XLV, XLI, XLE, XLU, XLB, XLRE, XLP, XLY, XLC. 6. Factor — MTUM, VLUE, QUAL, USMV, IVW, SCHD, IWM. 7. Risk Sentiment — SPY, QQQ, IWM, GLD, TLT, VIX. 8. Safe Haven — GLD, TLT, UUP, FXY, FXF.
Regime Detection
At each month-end , continuous regime scores are computed from market proxies and clipped to :
Discrete regime labels follow a priority rule: crisis if or 3M SPY return ; risk-off if and SPY ; inflationary if and energy return ; deflationary if bonds rally while equities and utilities are defensive; recovery if and SPY 3M ; else risk-on if , otherwise risk-off.
Correlation and Network Analysis
Rolling 60-day Pearson correlations define a dynamic network. An edge is retained when ; strong links use for degree centrality:
Average market correlation (diversification thermometer):
Leadership analysis tests whether lagged returns of a leader asset predict follower returns, e.g. credit vs equities:
Portfolio Construction and Backtesting
Flow-informed portfolios rebalance monthly. At date , the flow rotation strategy selects the top quintile:
Portfolio return with equal weights:
Analogous regional, sector, and factor rotations restrict to each layer universe. Multi-layer blends the three layer rotations with equal weight. Benchmarks: equal-weight universe, static 60/40 (0.6 SPY + 0.4 TLT), and buy-and-hold SPY.
Performance metrics (monthly frequency, observations):
where is the equity curve.
Statistical Hypothesis Testing
Seven formal hypotheses are evaluated. Key test statistics:
H1 — Flow scores predict returns. Monthly Spearman rank IC between and ; test via one-sample -test across months.
H2 — Leadership persists. Month-over-month repeat rate of argmax; tested vs binomial null.
H3 — Sector leadership → macro. Spearman correlation between energy sector rank and forward inflation-proxy return.
H4 — Credit leads equities. Pearson correlation between HYG–TLT 3M relative strength and next-month SPY return.
H5 — Currency → regional equity. Pearson correlation between CEW 3M strength and forward VWO return.
H6 — Safe-haven lead. Pearson correlation between safe-haven basket return and forward SPY return (expect ).
H7 — Flow portfolio vs 60/40. Compare annualised Sharpe of flow rotation vs traditional 60/40.
Support threshold: two-sided (research default, not production trading significance).
Limitations and Interpretation
Flow scores are inferred proxies, not EPFR-style fund flows. ETFs imperfectly represent underlying economies; Yahoo adjusted data may differ from institutional vendors; regime rules are heuristic; hypothesis tests use overlapping monthly windows; and backtests omit transaction costs.
The framework is best read as a macro allocation research platform — identifying leadership, breadth, regime state, and network structure — rather than a standalone alpha signal. Results update with each npm run data:global-capital-flow refresh.
Interactive Exhibits (below)
The Results section provides the live intelligence dashboard and a Mathematical Methodology panel with the equations above applied to current data:
- Framework coverage — maps each research objective to its dashboard exhibit.
- Mathematical methodology — rendered flow-score, regime, and portfolio equations with live weights.
- Summary cards — top flow leader, current regime, risk-on/risk-off and safe-haven scores.
- Safe haven & risk sentiment engines — dedicated flight-to-quality and aggregate sentiment leaders.
- Research insights — auto-generated findings across layers, breadth, regimes, networks, and backtests.
- Flow score decomposition — -score components for the top asset.
- Global flow rankings & heatmap — composite across the universe.
- Market breadth — by region, sector, and factor.
- Eight layer panels — per-layer rankings and 12M relative strength vs SPY.
- Cross-asset relative strength — pairwise .
- Regime detection — five continuous scores; click legend labels to toggle lines.
- Correlation network — , leadership links, centrality.
- Portfolio backtests — equity curves, Sharpe, subperiod splits.
- Hypothesis testing — all seven hypotheses with test statistics.
Capital Flow Intelligence Dashboard
Top Flow Leader
FLOT
Score 2.53 · 3M 1.20%
Current Regime
risk on
VIX 21.5
Risk-On / Risk-Off
0.68 / 0.32
Safe-haven 0.30
Universe
61 ETFs
As of 2026-06-05
Mathematical Methodology
Core equations implemented in the Python pipeline (2010-01-31 – 2026-06-30). Rebalance frequency: monthly.
Returns and relative strength
Participation and stability features
Cross-sectional standardisation
Composite Capital Flow Score
Regime scores (clipped to [0,1])
Flow rotation portfolio (monthly)
Sharpe ratio (monthly backtest)
Market breadth
Research hypotheses
- H1: Capital flow scores predict future relative returnsH₀: Flow scores possess no predictive power for next-month returns
- H2: Relative strength leadership persists across monthsH₀: Market leadership does not persist month-to-month
- H3: Sector leadership provides information about economic conditionsH₀: Sector rotation has no association with subsequent macro proxies
- H4: Credit market leadership leads equity market shiftsH₀: HYG relative strength does not lead SPY returns
- H5: Currency strength predicts regional equity performanceH₀: Currency leadership has no predictive power for regional ETFs
- H6: Safe-haven demand increases before equity drawdownsH₀: Safe-haven scores do not precede SPY weakness
- H7: Regime-aware flow portfolios outperform static 60/40H₀: Flow-informed allocation does not beat 60/40 on risk-adjusted returns
Safe Haven Flow Engine
UUP
Score 1.16 · flight-to-quality proxy (GLD, TLT, UUP, FXY, FXF)
Risk Sentiment Engine
QQQ
Score 0.84 · SPY, QQQ, IWM, GLD, TLT, VIX synthesis
Research Findings & Insights
- Global capital flow intelligence updated through 2026-06-05 across 61 ETFs spanning equities, bonds, commodities, currencies, sectors, and factors (2010-01-31 to 2026-06-30).
- Strongest inferred capital attraction: FLOT (flow score 2.5341, 3M return +1.2%).
- Weakest inferred flow: ^VIX (flow score -1.3627, 3M -15.6%).
- 7 assets show strong inflow signals; 9 show strong outflow — capital rotation is broad.
- Layer leadership — Global equity: EWT; Fixed income: FLOT; Commodity: DBC; Currency: UUP; Sector: XLK; Factor: VLUE….
- Current regime: risk on (risk-on 0.6776, risk-off 0.3224, safe-haven 0.3035, inflation 0.563).
- Historically dominant regime: inflationary (153 regime transitions in sample).
- Cross-asset 3M leaders: Equities vs Bonds → SPY, Growth vs Utilities → QQQ, India vs China → INDA, Credit vs Treasuries → HYG.
- Cross-asset laggards (3M): EM vs US, Gold vs Equities.
- Market breadth — strongest participation in sectors (6/11 positive); weakest in us equity (0/4).
- Network centrality leader: FEZ (degree 23); average pairwise correlation 0.35.
- Market leadership links: US leads Europe (lag-1 ρ=-0.1233); Credit leads Equities (lag-1 ρ=-0.1234); USD leads EM equities (lag-1 ρ=0.0355).
- H3 sector–macro link: energy sector rank vs forward inflation-proxy return ρ=0.041 (p=0.571, n=194) — not supported.
- H4 credit lead: HYG–TLT 3M relative strength vs next-month SPY ρ=-0.112 (p=0.120) — no significant lead detected.
- H5 currency–regional link: CEW 3M strength vs forward VWO ρ=-0.086 (p=0.234) — not supported.
- Flow-score rank IC vs next-month returns: 0.015 (n=196, p=0.500) — not statistically supportive at 10% threshold.
- Leadership persistence rate 27.6% month-over-month (supported).
- Flow rotation Sharpe 0.41 (max DD -28.5%); multi-layer 0.92; equal-weight 0.85; SPY buy-hold 1.05.
- Style rotation — top sector XLK, top factor MTUM (momentum vs value 3M: next cross-asset panel).
- Geographic flow — SPY leads regional proxies; FM trails (inferred capital preference).
- 1/7 hypotheses show supportive evidence at research thresholds.
- Flow estimates are inferred from price, volume, volatility, and relative-strength behavior — not direct fund-flow data. Results are research-grade and not investment advice.
Framework Coverage (Spec → Dashboard)
Maps research document objectives to interactive exhibits on this page.
| Research objective | Dashboard section |
|---|---|
| Geographic capital allocation | Global Equity layer + breadth |
| Cross-asset allocation | Cross-Asset Relative Strength |
| Sector rotation | Sector layer + breadth |
| Factor rotation | Factor layer |
| Regime detection | Regime Detection (click legend to toggle lines) |
| Composite flow score | Global Rankings + Flow Heatmap |
| Safe-haven flows | Safe Haven layer + safe-haven score |
| Risk sentiment | Risk Sentiment layer + risk-on/off scores |
| Network & correlation | Centrality + rolling correlation + leadership |
| Portfolio construction | Flow-Based Portfolio Backtests |
| Hypothesis testing | Hypothesis Testing table |
| Market breadth | Participation Breadth chart |
Flow Score Decomposition — FLOT
performance
2.21
participation
0.92
stability
0.19
persistence
7.63
Weights: performance 35%, participation 20%, stability 25%, persistence 20%
Global Capital Flow Rankings
Composite flow scores integrate performance, participation, stability, and persistence dimensions.
Capital Flow Heatmap by Layer
Fixed Income
Factor
Sector
Global Equity
Currency
Risk Sentiment
Commodity
Safe Haven
Market Participation Breadth
Share of assets with positive last-month returns by group.
Eight Analytical Layers
| Rank | Ticker | Flow Score | Signal | 3M Return | 12M Return |
|---|---|---|---|---|---|
| 6 | SPY | 0.36 | neutral | 9.00% | 25.80% |
| 3 | QQQ | 0.55 | strong inflow | 16.20% | 35.00% |
| 5 | RSP | 0.38 | neutral | 5.00% | 19.30% |
| 7 | IWM | 0.21 | neutral | 11.20% | 36.50% |
| 13 | FEZ | -0.30 | neutral | 5.00% | 14.90% |
| 10 | EWU | 0.07 | neutral | 0.20% | 19.90% |
| 17 | EWG | -0.46 | neutral | 2.50% | 0.60% |
| 16 | EWQ | -0.41 | neutral | 2.60% | 8.30% |
| 8 | EWJ | 0.19 | neutral | 5.90% | 29.30% |
| 15 | FXI | -0.34 | neutral | -4.70% | -2.70% |
| 19 | KWEB | -1.25 | strong outflow | -13.60% | -18.20% |
| 18 | INDA | -0.76 | strong outflow | -5.30% | -12.60% |
Global Equity — 12M relative strength vs SPY
| Asset | Name | Rel 12M |
|---|---|---|
| EWY | South Korea | 129.20% |
| EWT | Taiwan | 58.30% |
| IWM | Russell 2000 | 11.20% |
| ILF | Latin America | 9.10% |
| QQQ | Nasdaq 100 | 7.90% |
| EWW | Mexico | 6.00% |
| EWJ | Japan | 5.10% |
| EWZ | Brazil | 1.60% |
| SPY | S&P 500 | 0.00% |
| VWO | Emerging Markets | -0.10% |
Cross-Asset Relative Strength
| Pair | 1M | 3M | 6M | Leader |
|---|---|---|---|---|
| Equities vs Bonds | -2.10% | 14.10% | 9.00% | SPY |
| Growth vs Utilities | -4.30% | 25.50% | 10.30% | QQQ |
| EM vs US | -0.60% | -6.00% | -0.50% | SPY |
| India vs China | -1.70% | 4.30% | -3.20% | INDA |
| Credit vs Treasuries | -0.20% | 2.10% | 1.60% | HYG |
| Gold vs Equities | -2.50% | -21.30% | -8.50% | SPY |
| Momentum vs Value | 0.20% | -7.30% | -18.40% | VLUE |
| Energy vs Technology | 8.10% | -41.50% | 4.40% | XLK |
| Europe vs US | 1.00% | -5.70% | -4.40% | SPY |
| USD vs EM FX | 2.30% | -0.60% | 1.80% | CEW |
Regime Detection
Risk-on, risk-off, safe-haven, inflation, and recovery scores through time. Click a legend label to show or hide that line.
Dominant historical regime: inflationary · 153 transitions
Recent regime history
Each block = one month (most recent on the right)
Correlation & Network Analysis
| Leadership link | Contemporaneous ρ | Lag-1 ρ | Lag-2 ρ |
|---|---|---|---|
| US leads Europe | 0.783 | -0.123 | -0.131 |
| Credit leads Equities | 0.788 | -0.123 | -0.083 |
| USD leads EM equities | -0.639 | 0.035 | 0.006 |
| Gold leads Bonds | 0.270 | 0.097 | 0.005 |
| Energy leads Commodities | 0.702 | 0.190 | 0.067 |
Centrality (60-day window) · avg correlation 0.349
| Ticker | Degree |
|---|---|
| FEZ | 23 |
| EWG | 23 |
| EMB | 23 |
| EWQ | 23 |
| VWO | 23 |
| SPY | 23 |
| HYG | 23 |
| IWM | 23 |
| QUAL | 23 |
| RSP | 23 |
| EWU | 23 |
| EWJ | 23 |
Flow-Based Portfolio Backtests
| Strategy | CAGR | Sharpe | Max DD | Vol | Cumulative |
|---|---|---|---|---|---|
| Flow Rotation | 4.40% | 0.41 | -28.50% | 12.60% | 78.60% |
| Regional Rotation | 6.60% | 0.42 | -36.70% | 20.10% | 137.00% |
| Sector Rotation | 15.70% | 1.03 | -16.50% | 15.30% | 606.90% |
| Factor Rotation | 15.80% | 1.01 | -23.70% | 15.80% | 616.50% |
| Equal Weight | 7.70% | 0.85 | -15.80% | 9.40% | 173.40% |
| 60/40 | 9.20% | 0.89 | -26.20% | 10.50% | 228.00% |
| Buy & Hold SPY | 14.90% | 1.05 | -23.90% | 14.30% | 550.50% |
| Multi-Layer Flow | 13.10% | 0.93 | -21.40% | 14.50% | 421.80% |
Subperiod Analysis
Flow rotation Sharpe across macro episodes (GFC recovery, QE, COVID, inflation, AI).
| Period | Flow Rotation Sharpe | Cumulative |
|---|---|---|
| low inflation expansion | -0.01 | -4.50% |
| covid crisis | 0.59 | 10.10% |
| inflation shock | 0.10 | 0.80% |
| ai growth | 1.22 | 68.50% |
Hypothesis Testing
1/7 hypotheses show supportive evidence at research thresholds.
| ID | Hypothesis | Metric | Value | p-value | n | Verdict |
|---|---|---|---|---|---|---|
| H1 | Capital flow scores predict future relative returns | mean_rank_ic | 0.0150 | 0.5000 | 196 | Not supported |
| H2 | Relative strength leadership persists across months | leadership_persistence | 0.2760 | 0.0000 | — | Supported |
| H3 | Sector leadership provides information about economic conditions | energy_rank_vs_fwd_inflation_proxy | 0.0410 | 0.5710 | 194 | Not supported |
| H4 | Credit market leadership leads equity market shifts | hyg_tlt_rel_vs_fwd_spy | -0.1120 | 0.1200 | 194 | Not supported |
| H5 | Currency strength predicts regional equity performance | cew_strength_vs_fwd_vwo | -0.0860 | 0.2340 | 194 | Not supported |
| H6 | Safe-haven demand increases before equity drawdowns | safe_haven_spy_corr | -0.0500 | 0.4860 | — | Not supported |
| H7 | Regime-aware flow portfolios outperform static 60/40 | sharpe_diff_vs_60_40 | -0.4880 | — | — | Not supported |