/mit-trader-skill:mit-trader [what you want: research, run, scan, a ticker, a question]from mit-trader-skill
Implements MIT's quant finance course (18.S096) as a trading bot: researches strategies overnight using walk-forward tests, clustered t-stats, and false discovery control; scans stocks, ETFs, and crypto; runs backtests, volatility forecasts, Monte Carlo simulations, factor models, Kelly sizing, risk-parity portfolios, VaR, pairs trading, and…
Ships in mit-trader-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
One skill, the whole course. MIT 18.S096 Topics in Mathematics with Applications in Finance (Fall 2013): MIT mathematicians taught the math and Morgan Stanley practitioners showed how a trading floor uses it. Every tool here is a lecture put to work.
${CLAUDE_SKILL_DIR} is this skill's folder. Every tool runs as
python3 "${CLAUDE_SKILL_DIR}/scripts/<tool>.py" ... from the user's project
folder; results go to ./mit/. Plain Python 3.8+, nothing to install, free
Yahoo Finance data (stocks, ETFs and crypto: BTC, ETH...).
mit/config.json is missing, copy ${CLAUDE_SKILL_DIR}/config.example.json
there and ask the user for two numbers: their practice budget and their max
loss per trade. Keep "paper": true.python3 "${CLAUDE_SKILL_DIR}/scripts/autopilot.py" research # overnight: hunt strategies -> mit/strategies.json, mit/research.md
python3 "${CLAUDE_SKILL_DIR}/scripts/autopilot.py" run # the bot: today's signals from approved rules -> tickets
python3 "${CLAUDE_SKILL_DIR}/scripts/autopilot.py" watch # open positions vs stops, targets, time limits
hunt.py tests 51 rule variants from the course
(dips and rips, L3 and L8; trend regressions, L6; breakouts; calm-volatility
uptrends, L9) on the whole universe, over up to 10 years. A rule is
approved only if, after trading costs, it beats ordinary days in-sample
with false discovery controlled (Benjamini-Hochberg, 10%), with errors
clustered by week, AND keeps paying on the last 30% of history that it never
saw. Read references/hunt.md.autopilot.py run looks only for the approved
rules firing today. For each it sets a GARCH stop and target, simulates
10,000 futures with the rule's out-of-sample edge as drift, sizes with half
Kelly under the user's limits, checks the account's VaR and the risk gate,
and leaves tickets for the user's yes. Read references/autopilot.md.autopilot.py run --scan still shows today's
setups and tests each one.| the user wants | tool | read |
|---|---|---|
| strategies that really paid; "research overnight"; "build me a bot" | hunt.py, autopilot.py research | references/hunt.md |
| the daily routine; "run it"; check positions | autopilot.py run / watch | references/autopilot.md |
| what is unusual in the market today | scan.py | references/scanner.md |
| "is this edge real?", "does buying the dip work?" | signal.py | references/signal-lab.md |
| volatility, where to put a stop and target | vol.py | references/volatility.md |
| the odds of a trade; "simulate it" | montecarlo.py | references/montecarlo.md |
| beta, alpha, "is it just the market?", PCA | factors.py | references/factors.md |
| how much to buy (Kelly); portfolio weights (risk parity, Markowitz) | portfolio.py | references/portfolio.md |
| "how much could I lose?" (VaR, expected shortfall) | var.py | references/var.md |
| check an order against the limits | check.py | references/risk.md |
| place, approve, record or close an order; connect Alpaca | ticket.py | references/broker.md |
| pairs trading, cointegration, market neutral | pairs.py | references/pairs.md |
| option prices, Greeks, implied vol, market-implied odds | options.py | references/options.md |
| splitting a big order | execution.py | references/execution.md |
| "explain", "teach me", "which lecture", "quiz me" | the notes | references/professor.md, references/lectures/L01.md..L26.md |
Read only the guides the request needs. For one stock ("should I buy NVDA?"), the usual chain is: signal (has this setup ever paid?) -> vol plan -> montecarlo -> factors -> portfolio size -> var -> risk, explaining each number in plain words.
mit/| file | written by |
|---|---|
config.json | the user (from config.example.json): budget and every limit |
strategies.json, research.md | hunt: the bot's playbook |
candidates.json | scan, or hunt today |
signals.json | signal |
plan.json | vol, pairs; montecarlo adds the odds |
orders.json | portfolio; ticket close; autopilot watch |
var.json, factors.json, targets.json, pairs.json | var, factors, portfolio optimize, pairs |
state/risk.json, state/broker.json | the risk gate's verdicts; every yes, order and fill |
portfolio.json, prices.json | cash and positions; latest prices |
report.md, reports/ | autopilot |
"paper": true). Going live is the user's own decision, in their own config,
with their own keys. Never ask for, read or repeat API keys in the chat.claude_desktop_config.example.json (opens in a new tab)config.example.json (opens in a new tab)references/autopilot.md (opens in a new tab)references/broker.md (opens in a new tab)references/execution.md (opens in a new tab)references/factors.md (opens in a new tab)references/hunt.md (opens in a new tab)references/lectures/L01.md (opens in a new tab)references/lectures/L02.md (opens in a new tab)references/lectures/L03.md (opens in a new tab)references/lectures/L04.md (opens in a new tab)references/lectures/L05.md (opens in a new tab)references/lectures/L06.md (opens in a new tab)references/lectures/L07.md (opens in a new tab)references/lectures/L08.md (opens in a new tab)references/lectures/L09.md (opens in a new tab)references/lectures/L10.md (opens in a new tab)references/lectures/L11.md (opens in a new tab)references/lectures/L12.md (opens in a new tab)references/lectures/L13.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub roan-maverick/mit-trader-skill --plugin mit-trader-skillOther plugins' skills for the same job