position-sizer

Calculate risk-based position sizes for long stock trades using Fixed Fractional, ATR, or Kelly Criterion methods.

2|Updated Mar 4, 2026
One-click install
npx skills add https://github.com/Fabio29T/Trading-Skills --skill position-sizer-fabio29t
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: position-sizer
Source: https://github.com/Fabio29T/Trading-Skills/tree/main/skills/position-sizer
Command: npx skills add https://github.com/Fabio29T/Trading-Skills --skill position-sizer-fabio29t

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps traders determine the optimal number of shares to buy for a long stock trade, ensuring risk is managed according to established principles and portfolio constraints.

Core Features & Use Cases

  • Multiple Sizing Methods: Supports Fixed Fractional, ATR-Based, and Kelly Criterion calculations.
  • Portfolio Constraints: Applies limits for maximum position size and sector concentration.
  • Use Case: A trader wants to enter a new stock at $155 with a stop-loss at $148.50. They have a $100,000 account and want to risk 1% per trade. This Skill will calculate the exact number of shares to buy (153 shares) and provide a full risk breakdown.

Quick Start

Use the position sizer skill to calculate position size for an account of $100,000, entry price $155, and stop price $148.50, risking 1% per trade.

Frequently Asked Questions about position-sizer

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

FAQPage Schema
How do I calculate position size for a stock trade based on my account risk percentage?

Calculate risk-based position size by inputting your total account value, entry price, stop-loss price, and desired risk percentage. The tool determines the exact number of shares to buy so your maximum loss matches your risk limit.

What is the best way to size trades using ATR and volatility scaling?

ATR-based position sizing uses the Average True Range to measure volatility and scale your trade size accordingly. This method adjusts the number of shares based on current market volatility to maintain consistent risk exposure.

Can I apply portfolio constraints like maximum position size and sector concentration limits?

Yes, the position sizing calculation applies portfolio constraints including maximum position percentage and sector concentration limits. This ensures individual trades do not exceed your predefined portfolio exposure boundaries.

How does the Kelly Criterion method work for stock position sizing?

The Kelly Criterion calculates optimal position size by evaluating your win probability and win-loss ratio. It determines the fraction of your account to allocate to maximize long-term growth while controlling risk.

Does fixed fractional position sizing support stop-loss distance calculation for long stock trades?

Yes, fixed fractional sizing calculates the exact stop-loss distance between your entry and stop prices. It divides your total allowed risk amount by the per-share stop-loss distance to output the precise number of shares for long stock trades.