Select any of 905 active IDX equities, set your position size, max ADV participation, and square-root impact parameter to estimate exit horizon and market impact live.
stocks
simulator
Interactive IDX equity exit-horizon and square-root market-impact simulator across 905 listed stocks.
Published
January 20, 2027
SimulatorData as of 2026-11-30 · Window 2026-01-02 → 2026-11-30
Search or pick any of the 905 IDX equities (>= 120 trading days in 2026-01-02 → 2026-11-30), set your position size (Rp B), maximum daily participation rate (% of median ADV), and square-root impact coefficient (Y). Everything computes locally in your browser from data/frozen/idx_scorecard.csv.
Defaults: Q = Rp 25 B (~$1.5M), 10% median ADV participation, Y = 0.60. Days-to-exit = Q / (participation × median ADV). Square-root impact = Y × σ_daily × sqrt(Q / median ADV).
daysTxt = exitRes.tradable? (exitRes.daysToExit>=1000?`${Math.round(exitRes.daysToExit).toLocaleString()} trading days`:`${exitRes.daysToExit.toFixed(1)} trading days`):`Unexecutable on median day (Median ADV = Rp 0; mean ADV = Rp ${sel.mean_adv_b.toFixed(3)}B)`impactTxt = exitRes.tradable?`**${exitRes.impactBps.toFixed(1)} bps** (**Rp ${exitRes.impactRpB.toFixed(2)} B** / Rp ${(exitRes.impactRpB*1000).toFixed(0)} M)`:`N/A (zero median volume)`flagsList = [ sel.dormant_flag?`Dormant (${sel.zero_vol_pct.toFixed(1)}% zero-vol days)`:null, sel.floor_price_flag?`Floor-price <= Rp 50 (${sel.floor_price_days_pct.toFixed(1)}% of days)`:null, sel.limit_prone_flag?`Limit-prone (${sel.ara_hits} ARA / ${sel.arb_hits} ARB hits, ${sel.limit_hit_pct.toFixed(1)}%)`:null].filter(Boolean)flagSummary = flagsList.length>0? flagsList.join(" · ") :"None (no distress flags triggered)"md`**Selected:** **${sel.code}** (${sel.issuer}) · **${sel.sector}** · **${sel.cap_tier}** (Mcap **Rp ${sel.mcap_t.toFixed(2)} T**, Last close **Rp ${sel.last_close_idr.toLocaleString()}**) **Scorecard:** Rank **#${sel.rank} / 905** · Decile **${sel.decile}** · Composite Score **${sel.score.toFixed(1)} / 100** · Foreign ownership **${sel.foreign_own_pct.toFixed(1)}%** **Exit estimate (Rp ${posSizeB} B at ${partPct}% ADV, Y=${impactY.toFixed(2)}):** **${daysTxt}** · Square-root market impact: ${impactTxt}**Microstructure:** Median ADV **Rp ${sel.median_adv_b.toFixed(3)} B** · Amihud **${sel.amihud_illiquidity!=null? sel.amihud_illiquidity.toFixed(5) :"N/A"}** · CS spread **${sel.cs_spread_bps!=null? sel.cs_spread_bps.toFixed(1) +" bps":"N/A"}** · Daily σ **${sel.daily_vol_pct.toFixed(2)}%** (${sel.realized_vol_ann_pct.toFixed(1)}% ann.) **Tradability flags:** ${flagSummary}**Universe feasibility for Rp ${posSizeB} B:** **${canExit5d} / 905** stocks exit in ≤ 5 days · **${canExit20d} / 905** exit in ≤ 20 days · **${under100bps} / 905** keep estimated impact ≤ 100 bps.`
1. Peer Liquidity Landscape (Median ADV vs Composite Score)
Show code
Plot.plot({title:`${sel.code} vs 856 Active IDX Peers (Median ADV > 0): Gold = Clean · Red = Distress Flagged`,subtitle:`Highlighted ring marks ${sel.code} (${sel.decile}, score ${sel.score.toFixed(1)}) · Vertical dashed line = ADV needed to exit Rp ${posSizeB}B in 5 days at ${partPct}% participation`,style: {background:"transparent",color: ink,fontFamily:"Satoshi, Arial, sans-serif"},width:820,height:430,marginLeft:56,grid:true,x: {type:"log",label:"Median daily value traded (Rp Billion, log scale)",domain: [0.001,1500]},y: {label:"Composite Liquidity & Tradability Score (0–100)",domain: [0,100]},color: {domain: [false,true],range: [gold, red],legend:true,tickFormat: d => d ?"Flagged (Floor / Dormant / Limit-Prone)":"Clean" },marks: [ Plot.ruleX([posSizeB / (5* (partPct /100))], {stroke: teal,strokeDasharray:"4,4",strokeWidth:1.5}), Plot.dot(peerData.filter(d =>!d.is_selected), {x:"median_adv_b",y:"score",fill:"has_flag",fillOpacity:0.65,r:3.5,tip:true,title: d =>`${d.code} (#${d.rank} · ${d.decile})\nScore: ${d.score.toFixed(1)}\nMed ADV: Rp ${d.median_adv_b.toFixed(2)}B\nDays to exit Rp ${posSizeB}B: ${d.live_days.toFixed(1)}d\nEst. impact: ${d.live_impact_bps.toFixed(1)} bps\nFlags: ${d.flag_status}` }), Plot.dot(peerData.filter(d => d.is_selected), {x:"median_adv_b",y:"score",fill: teal,stroke: ink,strokeWidth:2.5,r:8,tip:true,title: d =>`SELECTED: ${d.code} (#${d.rank} · ${d.decile})\nScore: ${d.score.toFixed(1)}\nMed ADV: Rp ${d.median_adv_b.toFixed(2)}B\nDays to exit: ${d.live_days.toFixed(1)}d\nEst. impact: ${d.live_impact_bps.toFixed(1)} bps` }), Plot.text(peerData.filter(d => d.is_selected), {x:"median_adv_b",y:"score",text: d => d.code,dx:12,dy:-8,fill: ink,fontWeight:"bold",fontSize:12 }) ]})
49 stocks with median_adv_b = 0 (zero volume on more than half of 2026 trading days) are excluded from the log-scale scatter (D9–D10 tail). Teal vertical dashed line marks ADV = Rp {(posSizeB / (5 * (partPct / 100))).toFixed(1)} B required to exit in 5 trading days.
2. Estimated Square-Root Market Impact vs Exit Horizon (Rp ${posSizeB} B clip)
Show code
impactPlotData = peerData.filter(d => d.live_days<=250&& d.live_impact_bps<=2000)Plot.plot({title:`Days to Exit vs Estimated Square-Root Impact (for Q = Rp ${posSizeB} B at ${partPct}% ADV)`,subtitle:"Stocks capped at <= 250 days to exit and <= 2,000 bps impact for readability",style: {background:"transparent",color: ink,fontFamily:"Satoshi, Arial, sans-serif"},width:820,height:380,marginLeft:60,grid:true,x: {type:"log",label:"Days to exit (log scale)",domain: [0.05,250]},y: {label:"Estimated square-root impact (bps)",domain: [0,1000]},color: {domain: [false,true],range: [gold, red] },marks: [ Plot.ruleX([5], {stroke: teal,strokeDasharray:"4,4"}), Plot.ruleY([100], {stroke: grey,strokeDasharray:"3,3"}), Plot.dot(impactPlotData.filter(d =>!d.is_selected), {x:"live_days",y:"live_impact_bps",fill:"has_flag",fillOpacity:0.65,r:3.5,tip:true,title: d =>`${d.code} (${d.decile})\nDays to exit: ${d.live_days.toFixed(1)}d\nEst. impact: ${d.live_impact_bps.toFixed(1)} bps (Rp ${d.live_impact_b.toFixed(2)}B)\nDaily vol: ${d.daily_vol_pct.toFixed(2)}%` }), Plot.dot(impactPlotData.filter(d => d.is_selected), {x:"live_days",y:"live_impact_bps",fill: teal,stroke: ink,strokeWidth:2.5,r:8 }), Plot.text(impactPlotData.filter(d => d.is_selected), {x:"live_days",y:"live_impact_bps",text: d => d.code,dx:10,dy:-8,fill: ink,fontWeight:"bold",fontSize:12 }) ]})
3. Live Filtered IDX Scorecard Table
Show code
tableRows = matchingStocks.map(d => {const res =computeExitMetrics(d, posSizeB, partPct, impactY);return {...d,live_days: res.tradable? res.daysToExit:null,live_impact_bps: res.tradable? res.impactBps:null,live_impact_b: res.tradable? res.impactRpB:null };})Inputs.table(tableRows, {columns: ["rank","code","decile","score","sector","mcap_t","median_adv_b","live_days","live_impact_bps","cs_spread_bps","zero_vol_pct","limit_hit_pct","flag_status" ],header: {rank:"Rank",code:"Ticker",decile:"Decile",score:"Score",sector:"Sector",mcap_t:"Mcap (Rp T)",median_adv_b:"Med ADV (Rp B)",live_days:"Days to Exit",live_impact_bps:"Impact (bps)",cs_spread_bps:"CS Spread (bps)",zero_vol_pct:"0-Vol (%)",limit_hit_pct:"ARA/ARB (%)",flag_status:"Flags" },format: {score: d => d.toFixed(1),mcap_t: d => d.toFixed(2),median_adv_b: d => d.toFixed(3),live_days: d => d ==null?"∞": (d >=1000?Math.round(d).toLocaleString() : d.toFixed(1)),live_impact_bps: d => d ==null?"—": d.toFixed(1),cs_spread_bps: d => d ==null?"—": d.toFixed(1),zero_vol_pct: d => d.toFixed(1),limit_hit_pct: d => d.toFixed(1) },rows:18})
How the model works
Exit horizon:\(\text{Days to Exit} = \frac{Q}{p \times \text{ADV}_{\text{med}}}\), where \(Q\) is your target position in IDR billions, \(p \in [0.05, 0.30]\) is your maximum daily participation rate, and \(\text{ADV}_{\text{med}}\) is the stock’s 2026 median daily IDR value traded (close × volume). Using the median rather than the arithmetic mean prevents one-off crossing days or pump spikes from overstating everyday capacity.
Square-root market impact:\(\text{Impact (bps)} = Y \cdot \sigma_{\text{daily, bps}} \cdot \sqrt{Q / \text{ADV}_{\text{med}}}\), where \(\sigma_{\text{daily}}\) is the stock’s 2026 daily close-to-close return standard deviation and \(Y \in [0.30, 1.00]\) is a dimensionless impact constant calibrated around standard institutional execution benchmarks (\(Y \approx 0.5\text{–}0.7\)). Total IDR impact cost is \(Q \times \text{Impact} / 10{,}000\).
Microstructure flags: Because idx.co.id UMA and Papan Pemantauan Khusus notices are Cloudflare-blocked (HTTP 403), flags are computed directly from verified 2026 OHLCV: Dormant (>= 20% zero-volume days), Floor <= Rp 50 (closing at or below Rp 50 on >= 20% of trading days), and Limit-Prone (top decile of ARA/ARB limit-hit frequency, >= 4.1% of trading days).
Limits of this simulator
The square-root formula is a reduced-form single-metaorder heuristic; when Days to Exit > 1, multi-day execution spreads impact across sessions and interacts with overnight news, price limits (ARA/ARB), and orderbook replenishment.
Yahoo Finance daily volume aggregates all IDX boards, so negotiated crossings (pasar negosiasi) can inflate ADV on individual days; median ADV reduces but does not eliminate regular-vs-negotiated distortions.
Stocks with median_adv_b = 0 (49 equities) cannot be exited reliably at any fixed participation cap on a typical session.