Global Capital Flow Intelligence System
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.
Top Flow Leader
FLOT
Score 3.17 · 3M 1.30%
Current Regime
inflationary
VIX 18.8
Risk-On / Risk-Off
0.56 / 0.44
Safe-haven 0.42
Universe
61 ETFs
As of 2026-07-17
Safe Haven Flow Engine
UUP
Score 1.02 · flight-to-quality proxy (GLD, TLT, UUP, FXY, FXF)
Risk Sentiment Engine
IWM
Score 0.34 · SPY, QQQ, IWM, GLD, TLT, VIX synthesis
- Global capital flow intelligence updated through 2026-07-17 across 61 ETFs spanning equities, bonds, commodities, currencies, sectors, and factors (2010-01-31 to 2026-07-31).
- Strongest inferred capital attraction: FLOT (flow score 3.1682, 3M return +1.3%).
- Weakest inferred flow: SLV (flow score -1.2976, 3M -31.0%).
- 8 assets show strong inflow signals; 8 show strong outflow — capital rotation is broad.
- Layer leadership — Global equity: RSP; Fixed income: FLOT; Commodity: DBC; Currency: CEW; Sector: XLF; Factor: VLUE….
- Current regime: inflationary (risk-on 0.5561, risk-off 0.4439, safe-haven 0.4225, inflation 1.0).
- 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 (1/4).
- Network centrality leader: HYG (degree 23); average pairwise correlation 0.27.
- Market leadership links: US leads Europe (lag-1 ρ=-0.1186); Credit leads Equities (lag-1 ρ=-0.1232); USD leads EM equities (lag-1 ρ=0.0321).
- H3 sector–macro link: energy sector rank vs forward inflation-proxy return ρ=0.034 (p=0.635, n=195) — not supported.
- H4 credit lead: HYG–TLT 3M relative strength vs next-month SPY ρ=-0.113 (p=0.117) — no significant lead detected.
- H5 currency–regional link: CEW 3M strength vs forward VWO ρ=-0.084 (p=0.241) — not supported.
- Flow-score rank IC vs next-month returns: 0.014 (n=197, p=0.522) — not statistically supportive at 10% threshold.
- Leadership persistence rate 26.9% month-over-month (supported).
- Flow rotation Sharpe 0.38 (max DD -28.5%); multi-layer 0.90; equal-weight 0.84; 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.
Fixed Income
Currency
Sector
Global Equity
Factor
Commodity
Safe Haven
Risk Sentiment
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.
| 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 |
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:
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
performance
4.17
participation
0.78
stability
0.17
persistence
7.55
Weights: performance 35%, participation 20%, stability 25%, persistence 20%
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.
| Pair | 1M | 3M | 6M | Leader |
|---|---|---|---|---|
| Equities vs Bonds | 1.40% | 3.90% | 8.80% | SPY |
| Growth vs Utilities | -5.20% | 7.20% | 6.20% | QQQ |
| EM vs US | -2.60% | -5.40% | -5.40% | SPY |
| India vs China | -9.00% | 5.50% | 7.70% | INDA |
| Credit vs Treasuries | 1.90% | 0.70% | 1.90% | HYG |
| Gold vs Equities | 0.50% | -16.70% | -25.20% | SPY |
| Momentum vs Value | -6.60% | -7.20% | -11.40% | VLUE |
| Energy vs Technology | 16.40% | -12.80% | -7.80% | XLK |
| Europe vs US | -0.90% | 0.60% | -4.80% | FEZ |
| USD vs EM FX | -0.50% | 3.60% | 5.00% | UUP |
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.
| Rank | Ticker | Flow Score | Signal | 3M Return | 12M Return |
|---|---|---|---|---|---|
| 5 | SPY | 0.43 | neutral | 4.90% | 19.70% |
| 6 | QQQ | 0.17 | neutral | 7.30% | 24.40% |
| 1 | RSP | 1.36 | strong inflow | 5.40% | 17.70% |
| 2 | IWM | 0.67 | strong inflow | 6.90% | 32.70% |
| 13 | FEZ | -0.21 | neutral | 1.80% | 16.60% |
| 7 | EWU | 0.02 | neutral | -1.30% | 21.80% |
| 16 | EWG | -0.50 | neutral | -2.80% | -0.90% |
| 14 | EWQ | -0.27 | neutral | -1.20% | 8.10% |
| 12 | EWJ | -0.17 | neutral | 0.90% | 30.40% |
| 17 | FXI | -0.51 | strong outflow | -8.50% | -7.50% |
| 19 | KWEB | -0.88 | strong outflow | -12.00% | -20.30% |
| 18 | INDA | -0.56 | strong outflow | -4.60% | -11.10% |
Global Equity — 12M relative strength vs SPY
| Asset | Name | Rel 12M |
|---|---|---|
| EWY | South Korea | 109.40% |
| EWT | Taiwan | 55.50% |
| ILF | Latin America | 23.10% |
| EWZ | Brazil | 19.80% |
| IWM | Russell 2000 | 16.50% |
| EWW | Mexico | 10.30% |
| EWJ | Japan | 9.30% |
| QQQ | Nasdaq 100 | 4.80% |
| EWU | United Kingdom | 3.00% |
| FEZ | Eurozone | 1.30% |
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.
Recent regime history
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:
| Leadership link | Contemporaneous Ï | Lag-1 Ï | Lag-2 Ï |
|---|---|---|---|
| US leads Europe | 0.781 | -0.119 | -0.124 |
| Credit leads Equities | 0.788 | -0.123 | -0.082 |
| USD leads EM equities | -0.636 | 0.032 | 0.002 |
| Gold leads Bonds | 0.262 | 0.102 | 0.005 |
| Energy leads Commodities | 0.704 | 0.188 | 0.062 |
Centrality (60-day window) · avg correlation 0.266
| Ticker | Degree |
|---|---|
| HYG | 23 |
| FEZ | 23 |
| EMB | 23 |
| EWQ | 23 |
| IWM | 23 |
| SPY | 23 |
| VWO | 23 |
| EWG | 23 |
| FXA | 23 |
| QUAL | 23 |
| ILF | 23 |
| URA | 23 |
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.
| Strategy | CAGR | Sharpe | Max DD | Vol | Cumulative |
|---|---|---|---|---|---|
| Flow Rotation | 4.10% | 0.38 | -28.50% | 12.70% | 71.50% |
| Regional Rotation | 6.50% | 0.41 | -36.70% | 20.20% | 132.90% |
| Sector Rotation | 15.00% | 0.99 | -16.50% | 15.40% | 561.40% |
| Factor Rotation | 15.50% | 0.99 | -23.70% | 15.90% | 600.30% |
| Equal Weight | 7.70% | 0.84 | -15.80% | 9.30% | 172.70% |
| 60/40 | 9.20% | 0.90 | -26.20% | 10.50% | 229.70% |
| Buy & Hold SPY | 14.90% | 1.05 | -23.90% | 14.30% | 557.20% |
| Multi-Layer Flow | 12.70% | 0.90 | -21.40% | 14.60% | 403.60% |
| 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.09 | 61.80% |
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).
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.0140 | 0.5220 | 197 | Not supported |
| H2 | Relative strength leadership persists across months | leadership_persistence | 0.2690 | 0.0000 | — | Supported |
| H3 | Sector leadership provides information about economic conditions | energy_rank_vs_fwd_inflation_proxy | 0.0340 | 0.6350 | 195 | Not supported |
| H4 | Credit market leadership leads equity market shifts | hyg_tlt_rel_vs_fwd_spy | -0.1130 | 0.1170 | 195 | Not supported |
| H5 | Currency strength predicts regional equity performance | cew_strength_vs_fwd_vwo | -0.0840 | 0.2410 | 195 | Not supported |
| H6 | Safe-haven demand increases before equity drawdowns | safe_haven_spy_corr | -0.0480 | 0.5050 | — | Not supported |
| H7 | Regime-aware flow portfolios outperform static 60/40 | sharpe_diff_vs_60_40 | -0.5160 | — | — | Not supported |
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.
Conclusion
The global capital flow framework synthesizes eight analytical layers into interpretable regime labels, flow rankings, and portfolio backtests. Flow scores are inferred proxies — useful for monitoring leadership and breadth, not for claiming precision about actual fund flows.
Refresh with npm run data:global-capital-flow when market data update. Overlapping windows and heuristic regime rules bound the strength of formal inference.