ClaudeMap

mit-trader

A Claude skill that turns MIT's free 18.S096 quantitative-finance course into a paper-trading pipeline: walk-forward validation, permutation-based luck tests and cost stress gates before any strategy is approved

Skills & Commandsskillsquantbacktestingpython

mit-trader packages the trading-applicable methods of MIT OpenCourseWare's 18.S096 "Topics in Mathematics with Applications in Finance" (Fall 2013, free) as a Claude skill with three commands. /mit-trader research runs the strategy library through three gates — walk-forward out-of-sample scoring (Sharpe ≥ 0.5 and ≥ 60% positive segments), a luck test (2,000-shuffle permutation with Benjamini-Hochberg correction plus a deflated Sharpe, FDR ≤ 10% and DSR ≥ 0.95), and transaction-cost stress (net Sharpe ≥ 0.3, still positive at doubled costs) — and only all-three-pass strategies reach APPROVED. /mit-trader today checks approved strategies for signals and emits tickets you approve one by one, sizing via Monte Carlo quarter-Kelly from out-of-sample returns, stopping at 2×σ×√5 from GARCH(1,1) and gating the book with a one-day 99% VaR check. /mit-trader explain <concept> explains any number in plain language and names the lecture it came from. Every entry goes to a paper ledger only and no real broker is connected; data is free (yfinance for stocks and ETFs, ccxt public crypto feeds, OKX by default); Python 3.10+.

What it does

  • /mit-trader research: a strategy is APPROVED only after all three gates — walk-forward out-of-sample, a 2,000-permutation luck test with Benjamini-Hochberg correction and deflated Sharpe, and a doubled-cost stress retest
  • /mit-trader today: GARCH(1,1) stop distances, Monte Carlo quarter-Kelly sizing from out-of-sample returns, a 99% VaR portfolio check, and tickets that wait for your yes
  • /mit-trader explain <concept>: plain-language explanation of any number, with the lecture it came from
  • Strategy library of four — momentum, mean reversion, cointegrated pairs from verified lecture numbers, plus a non-course channel-breakout control — with parameters picked on training windows only
  • Paper ledger only: every entry needs your yes and no real broker is connected; --planted runs a synthetic market with one planted edge as a pipeline self-check
  • Free data with no API key: yfinance for stocks and ETFs, ccxt public crypto feeds defaulting to OKX (switchable to binance, kraken or coinbase)

When to use it

For traders and engineers who want a disciplined, course-grounded research loop instead of vibes: run research nightly on a schedule, review the day's tickets over coffee, and let the three gates reject everything that doesn't hold up.

Getting started

git clone https://github.com/Allencake/mit-trader-skill ~/.claude/skills/mit-trader
cd ~/.claude/skills/mit-trader
python3 -m venv .venv && .venv/bin/pip install -r requirements.txt
.venv/bin/python tests/test_smoke.py

Things to know

Not an official MIT product — built on the free public course — and not investment advice. Daily-level data only: signals use closing prices and simulated fills add slippage, so results differ from real execution; the Monte Carlo draws only from historical out-of-sample returns. Pair-trade stops are computed on the spread but the paper ledger does not auto-trigger them yet (today flags it). Easiest install: paste the repo link into Claude Code and ask it to follow SKILL.md. All-rejected research rounds are common by design — the README says not to loosen thresholds to force tickets.

Repository

Allencake/mit-trader-skill

Charted

Related on the map

  • An instruction-only skill that makes agents research before they ask, plan before they build, and verify before they call anything done.

    • workflow
    • verification
    • quality
    • skill
  • Guizang's agent skill turns your repo's recent updates into a finished promo video — real components, code-rendered animation, an original code-written soundtrack — no video editor involved.

    • agent-skill
    • video
    • promo
    • marketing
  • An agent skill that geolocates a photo with nothing readable in it — OSM geometry, elevation skylines and satellite tiles turn “where was this taken?” into a measured answer with an error radius.

    • agent-skill
    • geolocation
    • osint
    • openstreetmap
  • A skill that makes AI coding agents map the architecture and declare the blast radius before they touch a line of code — rendered as one standalone HTML page.

    • skill
    • architecture
    • code-visualization
    • change-scope
  • Anthropic's official K-12 teaching skills — lesson planning, differentiation, prep and formative checks, with an eval framework.

    • official
    • anthropic
    • education
    • skills
  • Production-grade engineering skills for AI coding agents — 25 skills and 9 lifecycle slash commands, from spec to ship.

    • skills
    • engineering
    • slash-commands
    • best-practices