position-sizer

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

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/PNWSkyHippy/Trading_Bot_V2 --skill position-sizer-pnwskyhippy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: position-sizer
Source: https://github.com/PNWSkyHippy/Trading_Bot_V2/tree/main/claud-skills/skills/position-sizer
Command: npx skills add https://github.com/PNWSkyHippy/Trading_Bot_V2 --skill position-sizer-pnwskyhippy

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Helps traders determine the correct number of shares to buy for long stock trades by translating risk per trade into a precise position size.

Core Features & Use Cases

  • Fixed Fractional sizing based on a specified risk percentage of account size.
  • ATR-based sizing that adjusts for stock volatility via a given ATR value and multiplier.
  • Kelly Criterion sizing for budget-based or shares-based allocation, with optional constraints like max position and sector exposure.

Quick Start

Provide your account size, entry price, and stop price to get a recommended shares count and risk metrics.

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 sizing based on my account risk percentage?

Position sizing based on fixed fractional risk converts a specified risk percentage of your account size into a precise share count using your entry and stop prices. You provide account size, entry, and stop to get recommended shares and risk metrics.

What is ATR-based position sizing and when should I use it?

ATR-based position sizing adjusts your share count according to stock volatility by applying a given Average True Range value and multiplier. It is useful when you want your risk per trade to dynamically reflect current market volatility.

Can I use the Kelly Criterion for position sizing with portfolio constraints?

Yes, Kelly Criterion sizing supports budget-based or shares-based allocation while applying optional portfolio constraints like maximum position percentage and sector exposure. You need account size and Kelly inputs to calculate final shares and risk metrics.

What inputs do I need to calculate risk-based share counts for long stock trades?

To calculate risk-based share counts for long stock trades you need your account size and either entry and stop prices or Kelly inputs. The sizing output includes final shares, stop levels, and risk metrics.

How do portfolio constraints like max position percentage and sector exposure affect my trade sizing?

Portfolio constraints cap your calculated share count by enforcing a maximum position percentage and limiting sector exposure. This ensures your final risk metrics and allocation stay within predefined portfolio risk budgets.