Skip to main content

Simulator · IDX Foreign Flow Regime Explorer

Choose a rolling flow window and threshold to define Inflow, Neutral, and Outflow regimes—and inspect live transitions, rupiah moves, and forward IHSG returns.

stocks
simulator
Published

January 8, 2027

SimulatorData as of 2026-11-30

Pick a rolling flow window (1M, 3M, or 6M), choose whether to analyze core secondary-market flows (excluding 23 mega-crossings and lock-up dematerializations) or all-equity KSEI flows, and drag the regime threshold (±Rp T). Everything runs locally in your browser on the frozen monthly dataset (2021-01 → 2026-11, n = 71 months).

Regime Statistics Summary

How the model works

  1. Split-adjusted KSEI flow: Each month-end from December 2020 through November 2026 (72 snapshots → 71 flow months), stock-level equity foreign flows are computed from PT KSEI BalanceposEfek + StatisEfek using \(\Delta(\text{foreign\_total}_{i,t} / \text{sec\_num}_{i,t}) \times \text{mcap}_{i,t}\) with a denominator-lag guard when sec_num and scripless shares temporarily desynchronize.
  2. Core vs All-Equity scope: Core (ex-crossings) strips 23 stock-month events where a single stock’s flow exceeds Rp 15 T or reflects a >25 pp scripless lock-up dematerialization with >Rp 3 T flow (e.g., GOTO Dec 2022, BYAN Aug 2024, TPIA Jan–Feb 2026, MORA Dec 2025/Apr 2026).
  3. Threshold rule: Let \(F_{t}^{(w)}\) be the rolling \(w\)-month sum (1M, 3M, or 6M) of the chosen flow series and \(\theta\) be your slider threshold (Rp T). Month \(t\) is classified as Inflow if \(F_t^{(w)} > \theta\), Outflow if \(F_t^{(w)} < -\theta\), and Neutral otherwise.
  4. Conventions: Positive ΔUSD/IDR means rupiah depreciation (more IDR per USD). Forward IHSG (^JKSE) returns exclude tail months whose horizon extends beyond the 2026-11-30 cutoff.

Limits of this simulator

  • Hindsight vs real-time signals: Thresholds are evaluated across the frozen 2021–2026 sample; setting \(\theta\) after seeing the history risks overfitting, and rolling 3M/6M sums react with a lag at turning points.
  • Monthly granularity: Because daily IDX broker flow (idx.co.id) is Cloudflare-blocked, intra-month washouts and rebounds within a single calendar month are netted out.
  • No trading-rule endorsement: As detailed in the case study, overlapping 3M forward IHSG returns have wide Newey-West standard errors and actually mean-revert after extreme inflow or outflow spikes—treat flow regimes as a contemporaneous FX and liquidity risk gauge, not a market-timing signal.

← Back to the study · Story · Case study