Skip to content

Commit 515c390

Browse files
luisleo526claude
andauthored
chore(verify): emit report-only entry/exit p99 deltas (#55)
Add an entry/exit price p99 delta line to verify_corpus's report-only (not gated) block, alongside the existing p100. Gating is unchanged (still p90), so corpus tiers are byte-identical; this only surfaces the tail of the price-delta distribution for diagnostics and for the scraped-strategy tracking dashboard (grade-corpus-tiers parses it into entryP99/exitP99). Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 0a662ed commit 515c390

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

scripts/verify_corpus.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ def _split_interior(pairs: list[tuple[TradePair, TradePair]]) -> list[tuple[Trad
703703
f" PnL p90 delta: {pnl_p90 * 100:8.4f}% ({check(pnl_ok)})\n"
704704
f" MAE p90 delta: {mae_p90 * 100:8.4f}% ({check(mae_ok)})\n"
705705
f" -- report-only (not gated) --\n"
706+
f" Entry/Exit p99 delta: {percentile(entry_deltas,0.99)*100:.4f}% / {percentile(exit_deltas,0.99)*100:.4f}%\n"
706707
f" Entry/Exit/PnL p100: {entry_p100*100:.4f}% / {exit_p100*100:.4f}% / {pnl_p100*100:.4f}%\n"
707708
f" Qty p90/p100 delta: {percentile(qty_deltas,0.90)*100:.4f}% / {qty_p100*100:.4f}%\n"
708709
f" PnL% p90/p100 (pts): {percentile(pnlpct_deltas,0.90):.4f} / {pnlpct_p100:.4f}\n"

0 commit comments

Comments
 (0)