canli-validation-mcp 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "canli-validation-mcp",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Check whether a backtest is real: deflated Sharpe, CSCV probability of backtest overfitting, minimum track record and backtest length, haircut Sharpe and luck-equivalent trials, as an MCP server. Local mode, hosted endpoint, signed receipts.",
5
5
  "keywords": [
6
6
  "mcp",
@@ -456,6 +456,9 @@ export function runBacktest({ prices, family, grid = {}, periods_per_year: ppy =
456
456
  top: shown.map((r) => [...spec.params.map((k) => r.params[k]), r.metrics.sharpe, r.metrics.cagr, r.metrics.max_drawdown, r.metrics.turnover_per_year]),
457
457
  },
458
458
  selected: { params: best.params, metrics: best.metrics },
459
+ // Every variant's annualized Sharpe, best first as in top, so a server that counts trials across a session
460
+ // (canli-mcp's luck) counts each variant run and not one, as with canli-quant-mcp's strategy_sweep.
461
+ every_trial: { sharpes: ranked.filter((r) => r.metrics.sharpe !== null).map((r) => r.metrics.sharpe), periods: evaluated, periods_per_year: Number(ppy) },
459
462
  buy_and_hold: performance(buyHold.returns, ppy),
460
463
  validation,
461
464
  plain_reading: reading(family, runs.length, best, validation, performance(buyHold.returns, ppy)),