Simulator Data as of 2026-11-30
Select a market regime or calendar year, filter by instrument (All, SUN, or SBSN), and set your own stress thresholds for minimum bid-to-cover, minimum awarded-to-target ratio, and maximum acceptable auction tail (weighted-average clearing yield minus interpolated DJPPR secondary benchmark in bps). Everything runs locally in your browser on the study’s frozen CSVs (auctions_summary.csv, auctions_monthly.csv, worst_auctions.csv).
Show code
auctions = FileAttachment ("data/frozen/auctions_summary.csv" ). csv ({typed : true })
monthly = FileAttachment ("data/frozen/auctions_monthly.csv" ). csv ({typed : true })
worstAll = FileAttachment ("data/frozen/worst_auctions.csv" ). csv ({typed : true })
gold = "var(--accent)" ; teal = "var(--chart-teal)" ; grey = "var(--muted)" ; red = "var(--error)" ; grid = "var(--line)"
Show code
viewof period = Inputs. select (
[
"All (Jan 2023 – Nov 2026)" ,
"2026 Full Year (Jan – Nov)" ,
"2026 Stress Shock (Mar, May, Jun)" ,
"2026 Late Repricing (Sep – Nov)" ,
"2025 Calm Bull (Jan – Dec)" ,
"2024 Tightening (Jan – Dec)" ,
"2023 Pre-Funding (Jan – Dec)"
],
{value : "2026 Full Year (Jan – Nov)" , label : "Period / Regime" }
)
viewof instFilter = Inputs. radio (
["All" , "SUN" , "SBSN" ],
{value : "All" , label : "Instrument" }
)
viewof btcFloor = Inputs. range ([1.0 , 3.5 ], {
value : 1.80 ,
step : 0.05 ,
label : "Stress trigger: Bid-to-Cover below (x)"
})
viewof awFloor = Inputs. range ([0.50 , 1.10 ], {
value : 0.95 ,
step : 0.05 ,
label : "Stress trigger: Awarded / Target below"
})
viewof tailCeiling = Inputs. range ([0.0 , 15.0 ], {
value : 3.0 ,
step : 0.5 ,
label : "Stress trigger: Weighted tail above (+bps)"
})
Show code
function runStressDial (rows, worstRows, selPeriod, selInst, minBtc, minAw, maxTail) {
const inPeriod = d => {
const ym = d. year_month ;
if (selPeriod === "2026 Full Year (Jan – Nov)" ) return d. year === 2026 ;
if (selPeriod === "2026 Stress Shock (Mar, May, Jun)" ) return ym === "2026-03" || ym === "2026-05" || ym === "2026-06" ;
if (selPeriod === "2026 Late Repricing (Sep – Nov)" ) return ym >= "2026-09" && ym <= "2026-11" ;
if (selPeriod === "2025 Calm Bull (Jan – Dec)" ) return d. year === 2025 ;
if (selPeriod === "2024 Tightening (Jan – Dec)" ) return d. year === 2024 ;
if (selPeriod === "2023 Pre-Funding (Jan – Dec)" ) return d. year === 2023 ;
return true ;
};
const filtered = rows
. filter (d => inPeriod (d) && (selInst === "All" || d. instrument === selInst))
. map (d => {
const lowBtc = (d. bid_to_cover ?? 0 ) < minBtc;
const lowAw = (d. awarded_to_target ?? 0 ) < minAw;
const wideTail = d. weighted_tail_bps != null && d. weighted_tail_bps > maxTail;
const isStressed = lowBtc || lowAw || wideTail;
const reasons = [];
if (lowBtc) reasons. push ("BTC" );
if (lowAw) reasons. push ("Aw/Tgt" );
if (wideTail) reasons. push ("Tail" );
return {
... d,
dateObj : new Date (d. auction_date ),
isStressed,
reasonStr : reasons. length ? reasons. join (" + " ) : "Normal"
};
});
const n = filtered. length ;
const btcs = filtered. map (d => d. bid_to_cover ). filter (v => v != null ). sort ((a, b) => a - b);
const awTgts = filtered. map (d => d. awarded_to_target ). filter (v => v != null ). sort ((a, b) => a - b);
const tails = filtered. map (d => d. weighted_tail_bps ). filter (v => v != null ). sort ((a, b) => a - b);
const totTgt = d3. sum (filtered, d => d. indicative_target_idr_t );
const totInc = d3. sum (filtered, d => d. incoming_bids_idr_t );
const totAw = d3. sum (filtered, d => d. awarded_idr_t );
const belowCount = filtered. filter (d => d. below_target === true ). length ;
const stressed = filtered. filter (d => d. isStressed );
const rankMap = new Map (worstRows. map (w => [` ${ w. auction_date } _ ${ w. instrument } ` , w]));
const stressedTable = filtered
. map (d => {
const w = rankMap. get (` ${ d. auction_date } _ ${ d. instrument } ` );
return {
... d,
stress_rank : w ? w. stress_rank : 999 ,
stress_score : w ? w. stress_score : 0
};
})
. filter (d => d. isStressed )
. sort ((a, b) => b. stress_score - a. stress_score );
return {
rows : filtered,
n,
totTgt,
totInc,
totAw,
aggBtc : totAw > 0 ? totInc / totAw : 0 ,
aggAwTgt : totTgt > 0 ? totAw / totTgt : 0 ,
medBtc : btcs. length ? d3. quantile (btcs, 0.5 ) : 0 ,
medAwTgt : awTgts. length ? d3. quantile (awTgts, 0.5 ) : 0 ,
medTail : tails. length ? d3. quantile (tails, 0.5 ) : 0 ,
maxTail : tails. length ? tails[tails. length - 1 ] : 0 ,
belowCount,
belowPct : n > 0 ? (belowCount / n) * 100 : 0 ,
stressCount : stressed. length ,
stressPct : n > 0 ? (stressed. length / n) * 100 : 0 ,
stressedTable
};
}
sim = runStressDial (auctions, worstAll, period, instFilter, btcFloor, awFloor, tailCeiling)
Show code
md `** ${ period} ** ( ${ instFilter} · ** ${ sim. n } auctions**) · Aggregate incoming **Rp ${ sim. totInc . toFixed (1 )} T** vs awarded **Rp ${ sim. totAw . toFixed (1 )} T** against **Rp ${ sim. totTgt . toFixed (1 )} T** indicative target (** ${ (sim. aggAwTgt * 100 ). toFixed (1 )} %** fill · aggregate BTC ** ${ sim. aggBtc . toFixed (2 )} x**).
Median BTC ** ${ sim. medBtc . toFixed (2 )} x** · Median Awarded/Target ** ${ sim. medAwTgt . toFixed (2 )} x** · Below indicative target: ** ${ sim. belowCount } / ${ sim. n } ** (** ${ sim. belowPct . toFixed (1 )} %**) · Median weighted tail ** ${ sim. medTail >= 0 ? "+" : "" }${ sim. medTail . toFixed (2 )} bps** (max ** ${ sim. maxTail >= 0 ? "+" : "" }${ sim. maxTail . toFixed (2 )} bps**) · Breaching your dial thresholds: ** ${ sim. stressCount } / ${ sim. n } auctions ( ${ sim. stressPct . toFixed (1 )} %)**.`
Show code
Plot. plot ({
title : `Bid-to-Cover timeline ( ${ period} · ${ instFilter} )` ,
subtitle : `Red points breach your stress dial (BTC < ${ btcFloor. toFixed (2 )} x, Aw/Tgt < ${ awFloor. toFixed (2 )} x, or Tail > + ${ tailCeiling. toFixed (1 )} bps) · Gold = SUN · Teal = SBSN` ,
style : {background : "transparent" , color : "var(--ink)" , fontFamily : "Satoshi, Arial, sans-serif" },
width : 780 ,
height : 310 ,
grid : true ,
x : {label : null },
y : {label : "Bid-to-Cover (x)" , domain : [0 , Math . max (5.5 , d3. max (sim. rows , d => d. bid_to_cover || 0 ) * 1.08 )]},
marks : [
Plot. ruleY ([btcFloor], {stroke : red, strokeDasharray : "5,4" , strokeWidth : 2 }),
Plot. lineY (sim. rows . filter (d => d. instrument === "SUN" ), {x : "dateObj" , y : "bid_to_cover" , stroke : gold, strokeWidth : 1.5 , opacity : 0.7 }),
Plot. lineY (sim. rows . filter (d => d. instrument === "SBSN" ), {x : "dateObj" , y : "bid_to_cover" , stroke : teal, strokeWidth : 1.5 , opacity : 0.7 }),
Plot. dot (sim. rows , {
x : "dateObj" ,
y : "bid_to_cover" ,
fill : d => d. isStressed ? red : (d. instrument === "SUN" ? gold : teal),
r : d => d. isStressed ? 5.5 : 3.5 ,
stroke : d => d. isStressed ? "var(--ink)" : "none" ,
tip : true ,
title : d => ` ${ d. auction_date } ( ${ d. instrument } ) \n BTC: ${ d. bid_to_cover ?. toFixed (2 )} x \n Aw/Tgt: ${ d. awarded_to_target ?. toFixed (2 )} x (Rp ${ d. awarded_idr_t ?. toFixed (1 )} T / ${ d. indicative_target_idr_t ?. toFixed (1 )} T) \n Tail: ${ d. weighted_tail_bps != null ? (d. weighted_tail_bps >= 0 ? "+" : "" ) + d. weighted_tail_bps . toFixed (2 ) + " bps" : "N/A" }\n Flag: ${ d. reasonStr } `
})
]
})
Show code
Plot. plot ({
title : `Auction Tail (bps) vs Bid-to-Cover ( ${ period} · ${ instFilter} )` ,
subtitle : "Positive tail = clearing WAY above interpolated DJPPR secondary benchmark · Red = breached your stress dial" ,
style : {background : "transparent" , color : "var(--ink)" , fontFamily : "Satoshi, Arial, sans-serif" },
width : 780 ,
height : 300 ,
grid : true ,
x : {label : "Bid-to-Cover (x) →" },
y : {label : "Weighted auction tail (bps)" },
marks : [
Plot. ruleY ([0 ], {stroke : grey, strokeWidth : 1 }),
Plot. ruleY ([tailCeiling], {stroke : red, strokeDasharray : "5,4" , strokeWidth : 1.5 }),
Plot. ruleX ([btcFloor], {stroke : red, strokeDasharray : "5,4" , strokeWidth : 1.5 }),
Plot. dot (sim. rows . filter (d => d. weighted_tail_bps != null ), {
x : "bid_to_cover" ,
y : "weighted_tail_bps" ,
fill : d => d. isStressed ? red : (d. instrument === "SUN" ? gold : teal),
r : d => d. isStressed ? 5.5 : 4 ,
stroke : d => d. isStressed ? "var(--ink)" : "none" ,
tip : true ,
title : d => ` ${ d. auction_date } ( ${ d. instrument } ) \n BTC: ${ d. bid_to_cover ?. toFixed (2 )} x \n Tail: ${ (d. weighted_tail_bps >= 0 ? "+" : "" ) + d. weighted_tail_bps . toFixed (2 )} bps \n Aw/Tgt: ${ d. awarded_to_target ?. toFixed (2 )} x`
})
]
})
Auctions Triggering Your Stress Thresholds (${sim.stressCount} matched)
Show code
sim. stressedTable . length === 0
? md `*No auctions breach your current threshold settings in this selection.*`
: Inputs. table (
sim. stressedTable . map (d => ({
Date : d. auction_date ,
Inst : d. instrument ,
"Target (Rp T)" : d. indicative_target_idr_t . toFixed (1 ),
"Incoming (Rp T)" : d. incoming_bids_idr_t . toFixed (1 ),
"Awarded (Rp T)" : d. awarded_idr_t . toFixed (1 ),
BTC : d. bid_to_cover . toFixed (2 ) + "x" ,
"Aw / Tgt" : d. awarded_to_target . toFixed (2 ) + "x" ,
"Tail (bps)" : d. weighted_tail_bps != null ? ((d. weighted_tail_bps >= 0 ? "+" : "" ) + d. weighted_tail_bps . toFixed (2 )) : "—" ,
Trigger : d. reasonStr
})),
{layout : "auto" , rows : 15 }
)
How the model works
Every auction in auctions_summary.csv is evaluated against three primary-market stress conditions chosen by your sliders:
Thin demand coverage: \(\text{BTC} = \frac{\text{Incoming Bids}}{\text{Awarded Nominal}} < \text{Threshold}_{\text{BTC}}\) .
Target shortfall: \(\frac{\text{Awarded Nominal}}{\text{Indicative Target}} < \text{Threshold}_{\text{Aw/Tgt}}\) .
Price concession (tail): \(\text{Weighted Tail} = \sum_i w_i (\text{WAY}_i - y_{\text{bench}}(\tau_i)) \times 100 > \text{Threshold}_{\text{Tail}}\) , where \(w_i\) is series \(i\) ’s share of coupon/PBS awarded volume and \(y_{\text{bench}}(\tau_i)\) is linearly interpolated from DJPPR’s official daily primary-dealer benchmark curve (5Y/10Y/15Y/20Y SUN; 2Y/4Y/13Y/25Y SBSN) on the auction date.
Limits of this simulator
Short bills and ultra-long bonds have null tails: Discount bills (SPN, SPN-S \(\le 1.2\) Y) and 30Y–40Y bonds (FR0102, FR0105) lie outside DJPPR’s 2Y–25Y daily primary-dealer benchmark curve support and are excluded from weighted_tail_bps rather than extrapolated.
Issuer rate-cap discipline vs weak demand: A low Awarded / Target ratio with a negative tail and high BTC (common in late 2023 when DJPPR capped yields below secondary levels) reflects issuer price discipline rather than lack of bids; combine BTC, Aw/Tgt, and Tail together when diagnosing stress.
← Back to the study · Story · Case study