dwlf_get_decision_stats
Retrieve a decision-quality ledger joining confirmed takes and replayed skips, with a 2x2 outcome matrix, strategy performance, and per-reason hit rates for a chosen window.
Instructions
The decision-quality ledger: TAKES (confirmed trades, judged by actual outcomes — closed realized R, open marks vs initial risk) and SKIPS (judged by the counterfactual replay) joined into one record. Returns: the 2x2 decision matrix (tookRight/tookWrong/skipRight/skipWrong, with open takes and running skips as unjudged open counts), byStrategy records (W/L, net realized R, net open R, skips + saved R), and per-reason hit rates for BOTH vocabularies (byConfirmReason, bySkipReason) — use these to tell the user which of their stated reasons carry alpha (e.g. "your regime_risk_off skips are 3-for-3, +3R saved"). Honesty: only resolved outcomes are judged; paper trades excluded; legacy trades without a genuine numeric R are judged by P&L sign and counted in rUnknown (they contribute no R magnitude). UI equivalent: https://www.dwlf.co.uk/trades/decisions. Optional recent-window scope — months (last N months) or fromDate (YYYY-MM-DD); omit for all-time. A growing skip history dilutes the current-form read, so scope to e.g. months=12 for "recent" decisions. meta.window echoes the applied scope. Any simulated figure here (a backtest, a strategy's recorded fires, a replayed skip) is hypothetical: worked out on past data, not actual trading. Say so whenever you report one, and pass on hypotheticalLegend when the response carries it.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dwlf_get_decision_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| months | No | Scope the ledger to the last N months (recent-form read). Omit = all-time. | |
| fromDate | No | Scope to decisions on/after this date (YYYY-MM-DD). Takes precedence over months. Omit = all-time. |