Listed from the MCP registry; nobody on Odel publishes it.
Is this yours? Claim itIs a backtest's Sharpe ratio real or luck? Deflated Sharpe Ratio check with green/yellow/red.
One address for any MCP client. No sign-in needed on this server.
1 read1 other
Grouped by tool name. At most: only reads or looks up information.
Odel charges nothing per call. The publisher may charge for its own service.
A free, static, client-side calculator for the Deflated Sharpe Ratio (DSR) — Bailey & López de Prado (2014). All calculations run in the browser; nothing entered into the calculator is ever sent to a server.
src/lib/dsr.ts — the core math (PSR, the deflation benchmark SR*₀, DSR).src/lib/check.ts — pure "backtest check": raw returns + N → DSR and a
green/yellow/red verdict (no React, reusable in a future API).src/lib/parseReturns.ts — parsing of pasted text / CSV return series.src/pages/CheckPage.tsx — the backtest-check UI (default page, #check).src/lib/normal.ts — dependency-free standard normal CDF / inverse CDF.src/lib/evaporationCurve.ts — shared chart geometry (used by both the
on-page SVG chart and the shareable PNG, so they can't drift apart).src/lib/shareImage.ts — canvas-based PNG export.src/pages/CalculatorPage.tsx — the calculator UI.src/pages/ArticlePage.tsx — "Why your backtest is probably lying".src/lib/dsr.test.ts — Vitest unit tests, including a cross-check against
an external Python reference implementation (see below).tools/ — one-off Python scripts: gen_reference_values*.py generate the
test fixtures in tools/reference_values*.json, gen_og_image.py
generates public/og-image.png (requires Pillow and Windows fonts — only
needs rerunning if the share image's design changes). None of these are
part of the shipped site.npm install
npm run dev
Opens at http://localhost:5173.
npm test
npm run build
Output goes to dist/. It's a fully static site — no server, no database,
no build-time secrets.
Only needed if src/lib/dsr.ts changes and you want to re-verify it against
the reference implementations. Requires Python 3 with scipy/numpy.
gen_reference_values.py cross-checks this project's "V unknown" mode
against an external Deflated Sharpe Ratio implementation — it does not
ship or vendor one. Point it at your own local copy (a file defining
deflated_sharpe_ratio(observed_sr, n_trials, n_obs, skew=0.0, kurt=3.0)
per Bailey & López de Prado (2014)) via an environment variable or a
command-line argument:
cd tools
# V-unknown mode: point at your own local reference implementation
REFERENCE_DSR_IMPL=/path/to/deflated_sharpe_ratio.py python gen_reference_values.py
# or: python gen_reference_values.py /path/to/deflated_sharpe_ratio.py
# V-measured mode: independent scipy implementation, no external file needed
python gen_reference_values_v_measured.py
Both scripts only ever write inside tools/ in this repo.
functions/api/check.ts + functions/_lib/checkApi.ts — POST /api/check
(reuses runBacktestCheck, 1 MB / 100,000-value limit, 30 requests/min/IP
in-memory rate limit, open CORS). Returns are never stored or logged.functions/r.ts, functions/badge.svg.ts, functions/_lib/shareApi.ts —
signed result page /r?... and SVG badge /badge.svg?....src/lib/share.ts — HMAC-SHA256 signing of the result summary.SHARE_SECRET, set in the Cloudflare dashboard (never in
the repo): Workers & Pages → dsr-web → Settings → Variables and Secrets →
Add → type Secret. Without it the API still works but returns
shareUrl: null, and every link is shown as "unverified".npm run build, create .dev.vars containing
SHARE_SECRET=anything-for-local-testing (gitignored), then
npx wrangler@4 pages dev dist and open http://localhost:8788.scripts/prerender.mjs),
so crawlers that don't run JavaScript see the text.npm run builddist*.pages.dev URL
immediately; a custom domain can be attached afterwards under
Custom domains.vite.config.ts, set base: '/<your-repo-name>/' (only needed if
deploying to https://<user>.github.io/<repo-name>/ rather than a custom
domain or a root *.github.io repo)..github/workflows/deploy.yml) that runs
npm ci && npm run build and publishes dist/ with
actions/deploy-pages, or simply build locally and push the dist/
folder to a gh-pages branch using a tool like gh-pages (npm i -D gh-pages, then npx gh-pages -d dist).gh-pages
branch (or the Actions workflow, if used).A placeholder exists in the UI copy only — no form, no field, no third-party script. To add a real one later without a custom backend, the simplest options are:
functions/subscribe.ts file) writing
to a KV namespace or forwarding to an email service's API.<form action="..."> pointing at their endpoint; no backend code
needed on this side, but review their privacy terms first since that
reintroduces a third party the current "your numbers never leave your
browser" claim doesn't apply to (the email field only, not the
calculator itself).1 / (T - 1), the variance of
the Sharpe estimator itself evaluated at SR = 0. This implicitly treats
"the typical tried strategy" as pure noise; it's a standard, conservative
fallback, not a precise measurement.