Position Sizer

Calculate optimal trade position sizes using ATR, Kelly Criterion, and volatility-adjusted methods.

38|9|Updated Oct 30, 2025
One-click install
npx skills add https://github.com/IgorGanapolsky/trading --skill position-sizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Position Sizer
Source: https://github.com/IgorGanapolsky/trading/tree/main/.claude/skills/position_sizer
Command: npx skills add https://github.com/IgorGanapolsky/trading --skill position-sizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires src/core/risk_manager.py, src/agents/risk_agent.py, and includes scripts (resource) components.

What problem does it solve?

This Skill calculates position sizes using volatility-adjusted sizing, Kelly Criterion, ATR-based sizing, and portfolio heat management to balance risk and return.

Core Features & Use Cases

  • Volatility-adjusted sizing: adapt size to asset risk.
  • Kelly Criterion: optimize long-term growth with risk constraints.
  • ATR-based sizing: calibrate for volatility.
  • Portfolio heat: monitor total exposure.
  • Dynamic sizing: adjust with changing market conditions.

Quick Start

Run the position_sizer tool to compute a position for a given symbol, account value, current price, and stop price.

Frequently Asked Questions about Position Sizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate optimal position sizes for trading based on volatility?

Position sizing adjusts trade size to asset volatility, balancing risk and return. This Skill computes volatility-adjusted sizes by analyzing price data and risk inputs, returning primary sizing recommendations and alternatives suited to your account value and stop price.

What is the Kelly Criterion and how does it apply to position sizing?

Kelly Criterion optimizes long-term portfolio growth by calculating the fraction of capital to risk per trade. This Skill applies Kelly Criterion with risk constraints to generate position sizes that maximize compounded returns while respecting your risk tolerance and account constraints.

How do I use ATR-based sizing to calibrate positions for market volatility?

ATR-based sizing scales position size inversely to Average True Range, reducing exposure when volatility spikes. This Skill computes ATR-adjusted positions for individual securities, ensuring consistent risk per trade across changing market conditions.

Can I monitor total portfolio exposure across multiple positions?

Portfolio heat management tracks cumulative risk exposure across all open positions. This Skill integrates with RiskManager and RiskAgent to monitor total portfolio heat, ensuring individual position sizes keep aggregate exposure within defined limits.

What inputs do I need to generate a position size recommendation?

Position sizing requires account value, security symbol, current price, and stop price as core inputs. This Skill processes these parameters along with price history and volatility data to return structured sizing decisions with risk metrics and integration references.

How does dynamic sizing adjust when market conditions change?

Dynamic sizing recalculates position sizes as volatility and price data evolve. This Skill recomputes sizing decisions in response to changing market conditions, allowing traders to maintain optimal risk-adjusted exposure without manual recalculation.