@waveking1314: The most dangerous thing on the internet today might just be this: MIT has put an entire quantitative finance course online for free—over twenty lectures, with MIT math professors teaching the math and Morgan Stanley practitioners explaining how it’s used on the trading desk. I’ve turned the methods from this course that can be applied to trading into a Claude skill and released it completely free. Install it…
Summary
An open-source Claude skill built around MIT’s free quantitative finance course (18.S096), combining GARCH stop-losses, Kelly position sizing, VaR risk management, and three validation gates—out-of-sample testing, luck, and costs—into a trading research tool that runs directly in Claude Code. By default, it records only simulated trades and requires manual confirmation for each trade.
View Cached Full Text
Cached at: 11/24/26, 09:19 AM
The most dangerous thing online today might be this
MIT has put an entire quantitative finance course online for free: more than twenty lectures, with MIT math instructors teaching the mathematics and Morgan Stanley practitioners explaining how it is used on the trading desk
I turned the methods from this course that can be applied to trading into a Claude skill, and released it completely free
Install this one skill, and Claude Fable 5.2 becomes a trading bot that runs around the clock: researching markets for you at night and using the mathematics from MIT’s course to find profitable strategies
First, understand what it is:
The course teaches the mathematics quantitative traders use every day Methods from the course, such as volatility, VaR, and cointegration, are packaged into a skill that Claude runs directly on real data Works with stocks, ETFs, and crypto; the data is free, with no API key required No coding needed; just talk to Claude in plain language Not made by MIT; built based on its publicly available free course
Starting from scratch with Fable 5.2:
1 Paste the repository link into Claude Code and tell Claude “Install the skill.” That’s it. No registration, no API key, no coding; your own AI trading desk is ready
2 Before bed, enter “/mit-trader research,” and it will test momentum, mean reversion, breakout, and cointegration pairs strategies one by one against years of real stock, ETF, and crypto data
3 Every strategy must win on years it has never seen (walk-forward testing), pass a test for luck, and survive real trading costs; otherwise, it goes straight to REJECTED
4 Every morning, enter “/mit-trader today.” It first checks whether any surviving strategies have triggered today, then uses a GARCH volatility model (Lecture 9) to place stop-losses beyond the reach of normal fluctuations
5 Next, it runs tens of thousands of Monte Carlo simulations for each trade, then uses Ed Thorp’s Kelly formula to calculate how much to stake. If the result is zero, it won’t put in a cent
6 It checks how much the entire account might lose on its worst day (VaR), checks every limit you set, and finally puts the completed trade tickets in front of you for approval
7 By default, it only records trades in a paper trading ledger and does not connect to a broker. Unless you type “yes” for a trade, it won’t buy anything
8 Set up the schedule just once: for example, research every night at 2 a.m., run today once after the market opens on weekdays, and check crypto every 2 hours. Then it runs around the clock
9 If you don’t understand a number, ask “/mit-trader explain Kelly so a 15-year-old can understand it.” It will explain in plain language and tell you which lecture or paper it comes from
Its most valuable feature is its willingness to say no: I ran it on real data today, and all 36 candidates were REJECTED. It didn’t produce a single trade ticket
Grab it for free before everyone starts using it: https://github.com/Allencake/mit-trader-skill…
Allencake/mit-trader-skill
Source: https://github.com/Allencake/mit-trader-skill
mit-trader: Turning MIT’s open quantitative finance course into a Claude skill
MIT has made 18.S096, “Topics in Mathematics with Applications in Finance” (Fall 2013), freely available on OpenCourseWare: MIT instructors teach the mathematics, while industry practitioners teach the applications, including several from Morgan Stanley.
This repository turns methods from the course that can be applied to trading into a Claude skill:
/mit-trader research: Tests the strategy library one by one overnight; a strategy is APPROVED only after passing all three checks: out-of-sample performance, luck testing, and trading costs/mit-trader today: Checks whether approved strategies have signals today, uses GARCH for stop-losses, Monte Carlo + Kelly for position sizing, and VaR for portfolio risk, then produces trade tickets for your approval/mit-trader explain <concept>: If you don’t understand a number, have it explain in plain language and identify the corresponding lecture
By default, it only writes to a paper trading ledger. Each trade requires you to reply yes before it is recorded. This version does not connect to a real broker.
Not an official MIT product; simply based on its publicly available free course.
Installation
Easiest: Paste this repository’s link into Claude Code and say “Install the skill.” It will follow the steps in SKILL.md to install it.
Manual:
bash 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 # Offline self-check; just look for smoke tests passed
Claude Code reads ~/.claude/skills/mit-trader/SKILL.md. If you only want to use it in a particular project, put the repository in that project’s .claude/skills/mit-trader.
Requires Python 3.10 or later. Data is free, with no API keys required:
- Stocks, ETFs: yfinance
- Crypto: ccxt public market data, using OKX by default. If it is inaccessible in your region, change
crypto_exchangeinconfig.yamlto binance, kraken, or coinbase
Commands
Just tell Claude what to do, and it will run the commands for you; you can also run them yourself in a terminal (python below refers to .venv/bin/python):
| What you say | What actually runs |
|---|---|
| /mit-trader research | python -m mit_trader research |
| /mit-trader today | python -m mit_trader today |
| yes to this trade | python -m mit_trader approve <trade-ticket-ID> --answer yes |
| reject this trade | python -m mit_trader reject <trade-ticket-ID> |
| show the paper trading ledger | python -m mit_trader ledger |
| /mit-trader explain Kelly | python -m mit_trader explain kelly |
To first check whether the entire workflow works correctly, add --planted: it runs on a synthetic test market where only one series contains a planted, real momentum edge and everything else is noise. The expected result is that only that series is identified.
bash python -m mit_trader research --planted python -m mit_trader today --planted
Three checks
| Check | Method | Default threshold (config.yaml) |
|---|---|---|
| 1 Out-of-sample | Walk-forward: select parameters using an initial training window of 3 years or more, then divide the following data into 5 segments, scoring each on unseen data | Out-of-sample Sharpe ≥ 0.5, with ≥ 60% of segments positive |
| 2 Luck test | Shuffle positions in 20-day blocks, run 2,000 permutations, then apply Benjamini-Hochberg correction; also use the deflated Sharpe ratio | FDR ≤ 10%, DSR ≥ 0.95 |
| 3 Costs | Deduct fees and slippage; test again with doubled costs | Net Sharpe ≥ 0.3, and > 0 after costs ×2 |
Having everything REJECTED is a very common result. It means nothing held up in this round. Don’t loosen the thresholds just to generate trades.
How today calculates a trade ticket
1 First, check stop-losses on existing positions in the paper trading ledger 2 Proceed only if an approved strategy has a signal today 3 Stop-loss: GARCH(1,1) forecasts one-day volatility σ; stop-loss distance = 2 × σ × √5 (Lecture 9) 4 Position size: sample the strategy’s out-of-sample daily returns to simulate 10,000 five-day holding periods, accounting for stops when hit, and calculate Kelly. If Kelly ≤ 0, do not trade; otherwise, use 1/4 Kelly, then cap it by the per-trade position limit, per-trade risk limit, and total exposure 5 Portfolio risk: calculate one-day 99% VaR after adding this trade (historical and parametric methods, Lecture 7). If it exceeds the limit, reduce the position; if it cannot be reduced enough, do not trade 6 Output trade tickets and wait for you to reply yes to each one
All limits are under limits in config.yaml, clearly explained with Chinese comments.
Strategy library
| Strategy | Basis |
|---|---|
| Time-series momentum | Lecture 1 notes list momentum as a category of systematic strategies |
| Mean reversion | Lecture 8, Time Series Analysis I (stationarity, autoregression) |
| Channel breakout | Not part of the course; included as a control |
| Cointegration pairs trading | Lecture 12, Time Series Analysis III (cointegration) |
The parameter grids are defined in mit_trader/strategies.py. Parameters are selected by walk-forward testing within the training windows, rather than across the full sample.
Course references
Only lectures verified against the OCW notes are listed:
- Lecture 1 Introduction, Financial Terms and Concepts
- Lecture 7 Value At Risk (VAR) Models
- Lecture 8 Time Series Analysis I
- Lecture 9 Volatility Modeling
- Lecture 12 Time Series Analysis III
- Lecture 14 Portfolio Theory
- Lecture 25 Ross Recovery Theorem (the notes cite Kelly 1956)
Course homepage: https://ocw.mit.edu/courses/18-s096-topics-in-mathematics-with-applications-in-finance-fall-2013/
Sources outside the course: Kelly (1956); Benjamini & Hochberg (1995); Bailey & López de Prado (2014), The Deflated Sharpe Ratio.
Scheduling examples
The following are crontab examples. Adjust the times for your time zone and markets (crontab -e):
``cron
Example: run research every night at 2 a.m.
0 2 * * * cd ~/.claude/skills/mit-trader && .venv/bin/python -m mit_trader research >> ~/.mit-trader/research.log 2>&1
Example: run today at 9:50 a.m. on weekdays (after the U.S. stock market opens; convert to your server’s time zone)
50 9 * * 1-5 cd ~/.claude/skills/mit-trader && .venv/bin/python -m mit_trader today >> ~/.mit-trader/today.log 2>&1
Example: check crypto every 2 hours
0 */2 * * * cd ~/.claude/skills/mit-trader && .venv/bin/python -m mit_trader today >> ~/.mit-trader/today.log 2>&1 ``
Scheduled jobs only generate trade tickets; they do not approve them for you.
Where files are stored
~/.mit-trader/ (can be changed with the MIT_TRADER_HOME environment variable):
cache/: Market data cache (CSV); no repeat downloads within 12 hoursruns/: Complete results of each research runapproved.json: Strategies that passed all three checks in the latest runtickets/: Daily trade ticketspaper_ledger.json: Paper trading ledger
Known limitations
- Daily data only; signals are calculated using closing prices, and simulated fills use reference prices plus slippage, so they will differ from actual fills
- Monte Carlo only samples historical out-of-sample returns; it becomes inaccurate if the market’s behavior changes
- Stop-losses for pairs trades are based on the spread. The paper trading ledger does not yet automatically trigger pairs stop-losses; today will flag them
- Only supports paper trading
Does not constitute investment advice. Not officially affiliated with MIT.
Similar Articles
@waveking1314: Someone compiled all the tools commonly used by quantitative funds into a free GitHub repository. Pricing engines, backtesting frameworks, order books, real-time quotes, risk models – almost a complete set. The projects included are absurdly numerous: Options pricing library for calculating option and derivative values, covering multiple pricing models and risk metrics. Complete backtesting framework…
A user curated a free GitHub repository aggregating numerous open-source quantitative finance tools, including pricing engines, backtesting frameworks, order book simulators, and risk models, making institutional-grade research tools accessible to individuals at minimal cost.
@geekbb: A Chinese quantitative finance tutorial for absolute beginners, using Jupyter Notebook format, each chapter can be run through in about 30 minutes. The first installment includes 4 chapters: quantitative cognition, return analysis, dual moving average strategy, and strategy backtesting. Uses yfinance to fetch real market data. https://github.c…
A Chinese quantitative finance tutorial for absolute beginners, using Jupyter Notebook format, containing 4 chapters (quantitative cognition, return analysis, dual moving average strategy, and strategy backtesting). Uses yfinance to fetch real data, each chapter can be run through in about 30 minutes.
tradermonty/claude-trading-skills
Claude Trading Skills 是一个基于 Claude Skills 的开源交易工作流工具包,为时间有限的个人投资者提供市场回顾、风险管理、交易规划和复盘的结构化流程,而非自动化交易信号服务。
@laobaishare: The most dangerous thing on the internet just showed up — someone built an AI that reads candlestick charts the way GPT reads English, and released it 100% free. Plug it into TradingView, pair it with Opus 5.5, and your AI trading system reads every single candle and predicts the next move before the market even gets there...
Someone open-sourced the KRONOS model, which treats each candlestick as a token to predict the next candle (pre-trained on 12 billion candlesticks). It can be integrated 100% free into Claude Code and TradingView to build a full AI crypto trading and prediction system.
@bkdgiffug: Many people want to get into quant trading, but what trips them up isn't really the strategy itself — it's that all the tools are scattered and hard to piece together. Here are 6 GitHub projects that can basically connect the whole chain of learning → strategy → backtesting → live trading interfaces: awesome-quant: a central entry point for quant tools, with data, backtesting, risk…
A collection of 6 GitHub quant trading projects that connect the learning → strategy → backtesting → live trading pipeline: awesome-quant, machine-learning-for-trading, quant-trading, backtrader, zipline, and ccxt.