Kelly Criterion
Kelly criterion optimal sizing with fractional variants, edge estimation, and practical application for crypto trading
Install
/plugin marketplace add agiprolabs/claude-trading-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add agiprolabs/claude-trading-skills --skill kelly-criteriongit clone --depth 1 https://github.com/agiprolabs/claude-trading-skills.git /tmp/claude-trading-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-trading-skills/skills/kelly-criterion ~/.claude/skills/kelly-criterionPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Kelly Criterion — Optimal Bet Sizing The Kelly criterion is the mathematically optimal bet size that maximizes long-term geometric growth of capital. Developed by John Kelly at Bell Labs in 1956, it answers a precise question: given a known edge, what fraction of your bankroll should you risk to maximize the compounding rate? **Core insight**: Betting too small leaves growth on the table. Betting too large increases ruin risk and actually *reduces* long-term growth. Kelly finds the exact optimum between these extremes. **Practical insight**: You should almost never use full Kelly. Estimation error in your edge means full Kelly will overbets in practice. Use fractional Kelly (0.25x to 0.5x) for real trading. --- ## The Kelly Formula For a binary outcome (win or lose): ``` f* = (p * b - q) / b ``` Where: - `f*` = optimal fraction of bankroll to bet - `p` = probability of winning - `q` = probability of losing (1 - p) - `b` = payoff ratio (average win / average loss) **Equivalent forms**: ``` f* = p - q / b f* = p - (1 - p) / b f* = (p * b - (1 - p)) / b ``` **Edge** = `p * b - q` = expected value per unit risked. Kelly only makes sense when edge > 0. If edge is zero or negative, the optimal bet is zero — do not trade. ### Quick Reference | Win Rate | Payoff 1:1 | Payoff 1.5:1 | Payoff 2:1 | Payoff 3:1 | |----------|-----------|-------------|-----------|-----------| | 40% | -20% | -6.7% | 10% | 20% |
Details
- Skill name
kelly-criterion- Repository
- agiprolabs/claude-trading-skills
- Path
skills/kelly-criterion/SKILL.md- License
- MIT
- Repo updated
- 3 September 2026
FAQ
What does the Kelly Criterion skill do?
Kelly criterion optimal sizing with fractional variants, edge estimation, and practical application for crypto trading
How do I install the Kelly Criterion skill?
Claude Code plugin: /plugin marketplace add agiprolabs/claude-trading-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Kelly Criterion popular?
It lives in agiprolabs/claude-trading-skills, which has 564 GitHub stars and 113 forks.
Related skills
Backtrader
564agiprolabs/claude-trading-skills
Event-driven backtesting with bar-by-bar execution, complex order types, multiple analyzers, and custom indicators
Birdeye API
564agiprolabs/claude-trading-skills
Solana token market data via Birdeye — prices, OHLCV, trades, token metadata, security checks, and trader activity
Coingecko API
564agiprolabs/claude-trading-skills
Broad crypto market data from CoinGecko covering 13,000+ tokens. Global market stats, historical price data going back years, exchange volumes, trending tokens, and category filters. Best for macro analysis and long-term historical data.
Market Microstructure Traditional
564agiprolabs/claude-trading-skills
Traditional market microstructure concepts applied to crypto — order book dynamics, market making theory, price formation models, execution quality measurement, and CEX vs DEX structural differences
Kalshi Crypto Index Markets
564agiprolabs/claude-trading-skills
Kalshi daily and hourly range markets on crypto prices (BTC, ETH) and equity indices (S&P 500, Nasdaq-100) — bracket structure, Gaussian P(YES) modeling on price/vol, close-offset decision timing, longshot-sell edge with honest evidence bounds
Mev Analysis
564agiprolabs/claude-trading-skills
MEV exposure assessment, sandwich attack detection, and protection strategies for Solana DEX trading
Browse the most popular Claude skills, all finance & crypto skills, or write your own with the skills generator.