Skip to content

Calculates risk-based long stock position sizes using fixed fractional, ATR, or Kelly methods with constraint checks.

CCM score
67 of 100
skills.sh installs
4.8K
GitHub stars
8.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers three sizing methods: Fixed Fractional at 1% default risk, ATR-Based with a 2.0x default multiplier, and Kelly Criterion from win/loss statistics
  • Includes position_sizer.py as a CLI with JSON and Markdown reports saved to reports/, plus a methodology reference file
  • Enforces max position %, max sector %, and portfolio heat limits, with the tightest constraint setting the final share count
  • Designed for traders who need whole-share sizing by default and optional fractional shares when the broker supports them

Install

$ npx -y skills add tradermonty/claude-trading-skills --skill position-sizer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Position Sizer

Overview

Calculate the optimal number of shares to buy for a long stock trade based on risk management principles. Supports three sizing methods:

  • Fixed Fractional: Risk a fixed percentage of account equity per trade (default: 1%)
  • ATR-Based: Use Average True Range to set volatility-adjusted stop distances
  • Kelly Criterion: Calculate mathematically optimal risk allocation from historical win/loss statistics

All methods apply portfolio constraints (max position %, max sector %) and output a final recommended share count with full risk breakdown. The default output is whole shares. Use --fractional only when the user's broker supports fractional shares for the security and order type.

When to Use

  • User asks "how many shares should I buy?"
  • User wants to calculate position size for a specific trade setup
  • User mentions risk per trade, stop-loss sizing, or portfolio allocation
  • User asks about Kelly Criterion or ATR-based position sizing
  • User has a small account where whole-share rounding would under-deploy a defined risk budget
  • User wants to check if a position fits within portfolio concentration limits

Prerequisites

Details

Repository
github.com/tradermonty/claude-trading-skills
Category
Finance & Trading
First seen
Jun 3, 2026

More from tradermonty/claude-trading-skills

All 54

Similar to Position Sizer

More Finance & Trading