Skip to main content

Case Study · Flow Regimes as a Cross-Asset Risk Input

Are there identifiable foreign-flow regimes in IDX equities, and how do they line up with rupiah moves, SBN/SRBI flows, and forward index returns?

stocks
case-study
71-month practitioner study (2021–Nov 2026) of split-adjusted KSEI foreign equity flows: Markov-switching & threshold regimes, top-10 concentration, SBN/SRBI/FX alignment, and Newey-West forward IHSG tests.
Published

January 10, 2027

Case studyData as of 2026-11-30 · Window 2021-01-01 → 2026-11-30

Summary

  • H1 confirmed (with a crossing caveat): Stripping out 23 giant crossings and lock-up dematerializations, core secondary-market KSEI equity flows (2021-01 → 2026-11, n = 71 months) exhibit positive 1M persistence (AR(1) = +0.28, Ljung-Box Q(3) p = 0.086) and strong 3M persistence (AR(1) = +0.74). A 2-state Markov-switching model cleanly separates Inflow (mean = +Rp 18.6 T/3M, expected duration 16.7 months, P(stay) = 93.9%) from Outflow (mean = -Rp 22.3 T/3M, expected duration 7.9 months, P(stay) = 90.5%).
  • H2 confirmed for FX, nuanced for bonds: Foreign equity outflows coincide reliably with rupiah depreciation (r = -0.386, p = 0.0009 monthly; r = -0.504 at 3M). During 2-state HMM Outflow months, USD/IDR weakened +0.64%/mo versus +0.28%/mo in Inflow months. Conversely, 3M rolling core equity flows and DJPPR SBN flows correlated negatively (r = -0.300, p = 0.0110), reflecting offshore rotation from IDX equities into high-carry SBN and SRBI during 2022–2023 and Q2–Q4 2026.
  • H3 confirmed: Across 717–962 listed IDX equities, the top 10 stocks carry a median 64.8% of monthly gross absolute foreign flow (59.7% ex-crossings), with median monthly HHI 760 (just 13.2 effective stocks). Big-3 banks (BBCA, BBRI, BMRI) absorbed Rp -104.0 T of cumulative net core foreign selling.

Context

For treasury, FX, and exchange risk teams in Indonesia, cross-border equity flow is one of the highest-visibility capital-account indicators—yet one of the most frequently misread. Daily exchange commentary typically reacts to raw daily net buy/sell prints as if foreign flows were white noise or pure sentiment. In practice, emerging-market equity allocations move in multi-quarter cycles shaped by global dollar funding, MSCI/FTSE weighting shifts, domestic bank earnings expectations, and competing local-currency carry instruments such as Bank Indonesia’s SRBI (Sekuritas Rupiah Bank Indonesia) and SBN (Surat Berharga Negara).

If foreign equity flows cluster into persistent regimes, risk desks need to know three things before embedding them into an operational risk dashboard: (1) how long inflow and outflow spells actually last once distorted corporate-action crossings are separated out, (2) whether equity outflow regimes systematically align with rupiah pressure and bond outflows or instead reflect domestic cross-asset rotation, and (3) how narrow the stock-level liquidity funnel is when offshore funds adjust Indonesia exposure.

Problem

Three empirical traps commonly invalidate naive flow-regime signals on the IDX:

  1. Corporate actions and custody crossings dominate headline totals: Official custody snapshots show giant single-month swings from off-market founder transfers, IPO lock-up dematerializations, and KSEI share-count reporting lags that have nothing to do with secondary-market liquidity demand.
  2. Equity and bond flows do not always move together: Assuming equity outflows always equal broad Indonesian capital flight ignores carry-driven rotation between IDX equities, SBN, and SRBI.
  3. Contemporaneous correlation invites false market timing: Because equity inflows and IHSG returns correlate positively within the same month (r = +0.361), practitioners are tempted to treat trailing flow regimes as forward equity return predictors without checking overlapping-horizon standard errors.

Data

Source Coverage Format & Granularity Notes
PT KSEI BalanceposEfek & StatisEfek (S1 custody substitute) 2020-12-30 → 2026-11-30 (72 month-ends → 71 flow months) Monthly pipe-delimited ZIPs (717–962 IDX equities) Daily IDX broker flow (idx.co.id) is Cloudflare-blocked; uses split-adjusted KSEI equity ownership with denominator-lag guard
DJPPR Tradable SBN Ownership (S6) 2020-12 → 2026-11 (72 months) 5 annual XLSXs (2020–2024) + 23 monthly PDFs (2025–2026) Non-resident nominal par value (Rp T) and month-over-month net SBN flow
BI Monetary Operations Position (S8 supplement) 2021-01 → 2026-11 (71 months) Daily XLSX in ZIP Total SRBI outstanding (from Sep 2023 launch) and Reverse Repo SBN (Rp T)
BI SEKI Table V.7 (BOP) 2021–2023 annual; 2024-Q3–2026-Q3 quarterly Official PDF Portfolio investment liabilities: Central Bank debt (SRBI proxy), Govt IDR debt, Private equity capital (USD M)
Yahoo Finance ^JKSE & Frankfurter USD/IDR (S13 fallback) 2020-12-01 → 2026-11-30 Daily JSON aligned to KSEI month-ends IHSG index returns (1M, 3M, forward 1M/3M) and ECB reference USD/IDR

Data hygiene & transparency notes:

  • Split adjustment & KSEI denominator-lag guard: Standard split-adjusted monthly flow computes \(\Delta(\text{foreign\_total}_{i,t} / \text{sec\_num}_{i,t}) \times (\text{price}_{i,t} \times \text{sec\_num}_{i,t})\). Auditing all ~61,000 stock-month records revealed rare months where KSEI updated sec_num 100× before or after scripless holdings (MFIN Sep 2025, CUAN Jul–Aug 2025, JTPE Jul 2022, ADMF Sep 2025, FORU Sep 2026), which would otherwise inject −Rp 393 T to −Rp 197 T of phantom outflows. Whenever sec_num and total_scripless ratios diverge outside [0.80, 1.25], build.py falls back to scripless-ratio split adjustment or raw share-count change (F_t − F_{t−1}) × P_t.
  • Core vs All-Equity separation: Following Plan 7.7’s requirement to distinguish regular-market from negotiated-market flows, we track both All-Equity KSEI flow (+Rp 429.1 T cumulative) and Core ex-crossings flow (+Rp 139.0 T cumulative), which isolates 23 stock-month events where single-stock absolute flow exceeds Rp 15 T or scripless conversion jumps >25 pp with >Rp 3 T flow (such as GOTO Dec 2022 lock-up dematerialization +83.6 T and BYAN Aug 2024 transfer +122.4 T). Cross-checking against BI SEKI Table V.7 confirms BI’s official Balance of Payments equity portfolio liabilities match Core flows (2024-Q3 +3.7B vs BOP +$2.4B; 2024-Q4 −2.5B vs BOP −$2.1B; 2025-Q1 −2.0B vs BOP −$1.9B), excluding non-market founder custody transfers.

Frozen tables and SHA-256 hashes live in data/frozen/ (manifest.json validated for 2026-11-30).

Approach

  1. Persistence & regime identification (H1): Estimate both (a) Hamilton Markov-switching regressions (statsmodels.tsa.regime_switching.markov_regression.MarkovRegression)—a 2-state model on rolling 3M core flow (AIC = 631.3, BIC = 642.6) and a 3-state model on rolling 3M all-equity flow (AIC = 724.8, BIC = 747.4)—and (b) explicit symmetric threshold regimes (±Rp 10 T on 3M core flow; ±Rp 15 T on 3M all-equity flow), reporting empirical transition matrices and average spell durations.
  2. Cross-asset alignment (H2): Compute Pearson \(r\) and Spearman \(\rho\) across monthly and 3M rolling Equity flows, DJPPR foreign SBN flows, ΔUSD/IDR, and BI SRBI changes, plus quarterly alignment against BI BOP portfolio debt and equity flows (SEKI V.7).
  3. Concentration (H3): Measure monthly Top-5, Top-10, and Top-20 shares of gross absolute stock-level flow, monthly Herfindahl-Hirschman Index (\(\text{HHI}_t\)), effective stock count (\(10{,}000 / \text{HHI}_t\)), and Banks sector share.
  4. Forward IHSG returns: Evaluate next-1M and next-3M ^JKSE returns across regimes using Newey-West HAC standard errors (maxlags = 3 for overlapping 3M windows) and 2,000-draw percentile bootstrap CIs.
  • Split-adjusted stock flow: Let \(s_{i,t} = F_{i,t} / N_{i,t}\) when issued shares \(N_{i,t}\) and total scripless shares \(S_{i,t} = L_{i,t} + F_{i,t}\) satisfy \(0.80 \le (N_{i,t}/N_{i,t-1}) / (S_{i,t}/S_{i,t-1}) \le 1.25\); then \(f_{i,t} = (s_{i,t} - s_{i,t-1}) P_{i,t} N_{i,t}\). Otherwise adjust using \(S_{i,t}/S_{i,t-1}\) during confirmed splits or \((F_{i,t} - F_{i,t-1}) P_{i,t}\).
  • Concentration HHI: \(\text{HHI}_t = 10{,}000 \times \sum_i \left(|f_{i,t}| / \sum_j |f_{j,t}|\right)^2\); effective number of stocks \(N_{\text{eff},t} = 10{,}000 / \text{HHI}_t\).
  • Markov-switching model: \(F_t^{(3)} = \mu_{S_t} + \varepsilon_t\), \(\varepsilon_t \sim \mathcal{N}(0, \sigma^2)\), with latent Markov chain \(P(S_t = j \mid S_{t-1} = i) = p_{ij}\) and expected duration \(1 / (1 - p_{ii})\).

Analysis

1. Flow persistence and regime structure (H1)

Figure 1: Core 3M rolling flows cluster into persistent Inflow (+Rp 18.6 T avg) and Outflow (-Rp 22.3 T avg) Markov regimes; smoothed HMM Outflow probability exceeded 50% during 2024-Q2, late-2024/early-2025, and Feb–Nov 2026.
Figure 2: Empirical transition matrices confirm strong regime inertia: under Core 3M thresholds (±Rp 10 T), Inflow stays Inflow 79.0% of the time and Outflow stays Outflow 68.8% (93.9% and 90.5% under the 2-state HMM).
Table 1: Regime summary across all four specifications: counts, average durations, stay probabilities, ΔUSD/IDR, SBN flow, and forward IHSG returns with Newey-West HAC SEs.
Model Regime Mos Avg Dur (m) Stay % ΔUSD/IDR SBN Flow Next 1M Next 3M (NW SE)
Threshold Core 3M (±Rp 10T) Outflow 17 2.8 68.8% +0.37% +7.9 T +1.44% +1.88% (±3.22)
Threshold Core 3M (±Rp 10T) Neutral 16 1.8 43.8% +0.52% +3.9 T -0.53% +0.92% (±0.89)
Threshold Core 3M (±Rp 10T) Inflow 38 4.8 79.0% +0.35% -6.0 T -0.38% -1.19% (±1.71)
Threshold All 3M (±Rp 15T) Outflow 16 3.2 73.3% +0.96% +6.0 T -0.50% +3.44% (±2.36)
Threshold All 3M (±Rp 15T) Neutral 20 1.5 35.0% +0.23% -3.3 T +1.06% +1.02% (±1.73)
Threshold All 3M (±Rp 15T) Inflow 35 3.9 74.3% +0.23% -1.8 T -0.39% -1.96% (±1.74)
HMM 2-State (Core 3M) Outflow (HMM) 22 7.3 (7.9) 90.5% +0.64% +7.2 T +0.04% +0.97% (±3.02)
HMM 2-State (Core 3M) Inflow (HMM) 49 16.3 (16.7) 93.9% +0.28% -3.9 T -0.02% -0.45% (±1.38)
HMM 3-State (All 3M) Outflow (HMM) 18 9.0 (13.4) 94.1% +0.78% +6.5 T -0.70% -0.74% (±3.59)
HMM 3-State (All 3M) Moderate Inflow (HMM) 47 23.5 (28.2) 95.7% +0.34% -4.8 T +0.82% +1.87% (±0.82)
HMM 3-State (All 3M) Crossing Surge (HMM) 6 3.0 (2.9) 66.7% -0.41% +12.6 T -4.42% -13.32% (±3.65)

Both modeling lenses agree in Figure 1, Figure 2, and Table 1. Under the 3-state Markov-switching model on all-equity flows, separating the 6 crossing-surge months (+Rp 147.3 T mean, 3.0m duration) reveals an even starker underlying regime asymmetry: Outflow (HMM) lasts 9.0 months empirically (13.4 months model-implied, 94.1% stay probability), while Moderate Inflow persists for 23.5 months (95.7% stay probability). Under the explicit Threshold All 3M (±Rp 15 T) rule, Outflow months never jumped directly to Inflow (0.0% transition) without passing through Neutral.

2. Flow concentration across IDX stocks (H3)

Figure 3: Top-10 equities carried a median 64.8% of monthly absolute foreign flow (59.7% ex-crossings), while the effective number of active stocks averaged just 13.2 out of 717–962 listings.
Table 2: Top 10 IDX equities by cumulative gross absolute foreign flow (2021-01 → 2026-11), showing net core flow vs crossing-inclusive flow.
Rank Code Sector Cum Net All Cum Core Cum Abs Flow % Mkt Abs End F% End MCap
1 TPIA Basic Materials +36.4 T +21.8 T 172.6 T 5.74% 24.0% 117.7 T
2 BBCA Banks -46.5 T -46.5 T 169.9 T 5.65% 28.9% 733.5 T
3 BBRI Banks -41.7 T -41.7 T 162.7 T 5.41% 25.3% 465.3 T
4 BYAN Energy & Coal +113.9 T -8.5 T 132.9 T 4.42% 43.5% 322.5 T
5 BMRI Banks -15.9 T -15.9 T 111.5 T 3.71% 25.5% 385.5 T
6 GOTO Technology +75.4 T -8.2 T 107.1 T 3.56% 61.1% 31.0 T
7 MORA Infrastructure & Telecom +26.3 T +12.4 T 103.4 T 3.44% 16.6% 47.8 T
8 AMMN Basic Materials +56.2 T +5.5 T 87.0 T 2.89% 13.4% 257.4 T
9 TLKM Infrastructure & Telecom +15.8 T +15.8 T 71.9 T 2.39% 36.2% 206.1 T
10 TBIG Infrastructure & Telecom +43.7 T +5.9 T 55.7 T 1.85% 86.0% 29.9 T

Figure 3 and Table 2 confirm H3 across every month of the 6-year sample. Even at its lowest point (39.7%), the top 10 stocks captured nearly two-fifths of all cross-border equity reallocation; during crossing or index-rebalance months, Top-10 share reached 91.1%. In cumulative core flows, the Big-3 banks (BBCA −46.5 T, BBRI −41.7 T, BMRI −15.9 T) represent the primary transmission channel through which offshore portfolio reductions hit Jakarta’s tape, while TLKM (+15.8 T) and TPIA (+21.8 T core) led net inflows.

3. Cross-asset alignment: Equities, SBN, SRBI, and USD/IDR (H2)

Figure 4: Quarterly foreign equity and SBN flows frequently diverged (e.g., Q2–Q4 2026 saw -Rp 54.7 T core equity outflows alongside +Rp 89.6 T SBN inflows and +$8.5B Q2 BOP central-bank debt inflows), while broad equity outflows weighed on USD/IDR.
Table 3: Cross-asset correlation matrix (2021-01 → 2026-11): monthly & 3M rolling foreign flows vs ΔUSD/IDR, SBN, SRBI, and IHSG.
Series X Series Y n Pearson r p-value Spearman ρ p-value
All Equity Flow (1M) ΔUSD/IDR (1M %) 71 -0.386 0.0009 -0.289 0.0146
Core Equity Flow (1M) ΔUSD/IDR (1M %) 71 -0.314 0.0076 -0.297 0.0119
All Equity Flow (3M) ΔUSD/IDR (3M %) 69 -0.504 0.0000 -0.356 0.0027
Core Equity Flow (3M) ΔUSD/IDR (3M %) 69 -0.320 0.0073 -0.270 0.0251
DJPPR SBN Flow (1M) ΔUSD/IDR (1M %) 71 -0.396 0.0006 -0.332 0.0047
All Equity Flow (1M) DJPPR SBN Flow (1M) 71 +0.168 0.1622 +0.073 0.5450
Core Equity Flow (1M) DJPPR SBN Flow (1M) 71 -0.041 0.7355 -0.037 0.7569
Core Equity Flow (3M) DJPPR SBN Flow (3M) 71 -0.300 0.0110 -0.341 0.0037
Core Equity Flow (1M) ΔSRBI Outstanding (1M) 70 +0.008 0.9488 +0.186 0.1238
Core Equity Flow (1M) IHSG Return (1M %, same mo) 71 +0.361 0.0020 +0.390 0.0008

Figure 4 and Table 3 expose a vital distinction for Indonesian cross-asset risk models:

  • FX transmission is consistently negative: Both foreign equity flows (r = -0.386 at 1M, r = -0.504 at 3M) and foreign SBN flows (r = -0.396) move inversely with ΔUSD/IDR. When foreign equity flows fall into the Threshold All 3M Outflow regime (< -Rp 15 T), USD/IDR weakens at +0.96%/mo on average—more than four times the +0.23%/mo drift seen in Inflow or Neutral months.
  • Asset-class substitution dominates at 3M: Contrary to a naive “risk-on / risk-off” assumption, 3M rolling core equity flows and SBN flows are negatively correlated (r = -0.300, p = 0.0110). BI SEKI Table V.7 BOP data confirm this rotation quantitatively: in 2026-Q2, while private equity portfolio liabilities saw -$3,135M of outflows, foreign investors added +$8,508M in Central Bank debt securities (SRBI) and +$1,823M in rupiah government bonds. Treating equity outflows alone as total capital flight therefore overstates BOP stress when domestic money-market carry is elevated.

4. Forward IHSG returns: why flow regimes are not a timing rule

Figure 5: Rolling 3M core foreign equity flow correlates negatively with next-3M IHSG return (r = -0.322, Newey-West SE = 0.044); extreme outflow spells frequently marked capitulation troughs rather than further index declines.
WarningCaution against market-timing claims

Trailing foreign equity flows are not a reliable directional equity timing signal. While contemporaneous monthly core flows move with the index (r = +0.361), rolling 3M core flows relate negatively to next-3M ^JKSE returns (r = -0.322, Newey-West HAC(3) slope -0.110%/T, p = 0.027), and 95% bootstrap confidence intervals for Outflow ([-3.8%, +6.9%]) and Inflow ([-3.4%, +0.9%]) overlap zero widely. Notably, crossing-driven inflow surges (HMM 3-State Crossing Surge) were followed by -13.3% average 3M index returns (n = 6), because mega-crossings often reflect major shareholder restructurings near local valuation peaks rather than broad-based institutional accumulation.

Limitations

  1. Monthly custody frequency masks intra-month dynamics: Because daily IDX broker foreign flow (idx.co.id) is blocked by Cloudflare, this study relies on PT KSEI’s official month-end BalanceposEfek snapshots (72 files). Rapid two-week sell-offs that reverse before month-end cannot be observed.
  2. Negotiated crossings and corporate-action artifacts: KSEI snapshots record custody changes regardless of whether shares traded on the regular orderbook, crossed off-market, or converted from scrip on lock-up expiry. Even after isolating 23 mega-crossings (eq_core_flow_idr_t) and guarding against KSEI sec_num reporting lags, smaller negotiated blocks (<Rp 15 T) remain inside core flows.
  3. Nominee and offshore-entity blurring: KSEI classifies holders by registered legal domicile (foreign_* vs local_*). Domestic Indonesian conglomerates holding shares through Singapore or Cayman vehicles appear as “foreign”, while foreign funds trading via domestic swap/broker structures may appear local.
  4. Hindsight regime identification & overlapping forward windows: Both Markov-switching smoothed probabilities (which condition on the full 71-month sample) and threshold choices reflect full-sample estimation rather than strictly real-time out-of-sample filtering, and 3M forward returns share overlapping months.

What would change my view

  • Daily regular-market orderbook flow access: Re-running the Markov-switching and FX alignment tests on daily IDX regular-board foreign flows (excluding negotiated NG crossings) could uncover sharper intra-month duration or lead-lag dynamics between flows and USD/IDR.
  • Sustained simultaneous equity + SBN outflows: If a future global rate shock drove both foreign equity and foreign SBN/SRBI holdings down simultaneously for two or more quarters (pushing the 3M cross-asset correlation from -0.30 to positive territory), the hedging buffer seen in 2026 would disappear and FX sensitivity per Rp 10 T of equity outflow would likely steepen.
  • Broadening outside Big-3 banks: If domestic pension/retail liquidity depth shifts foreign equity execution meaningfully beyond BBCA, BBRI, and BMRI (driving median Top-10 concentration below 45% and effective stocks above 25), sector-level banking shocks would decouple from headline flow regimes.

Reproduce this

git clone https://github.com/alfajr666/studies && cd studies
uv sync
just pull 2027-01-08-idx-foreign-flow-regimes   # fetch KSEI, DJPPR, BI & FX into data/raw/
just build 2027-01-08-idx-foreign-flow-regimes  # offline build -> data/frozen/ + hero.png
just check 2027-01-08-idx-foreign-flow-regimes  # verify SHA-256 hashes & cutoff
QUARTO_PYTHON=.venv/bin/python quarto render studies/2027-01-08-idx-foreign-flow-regimes

← Back to the study · ▶ Simulator · Story


Research and education only. Not investment advice or an offer to buy or sell any security or digital asset. Data comes from public sources as of the stated cutoff and may contain errors — check primary sources before relying on any figure. Views are the author’s own and not those of any current or former employer.