What problem does it solve?
Calculate how many shares to buy for a long stock trade to control dollar risk, enforce portfolio and sector limits, and prevent outsized losses due to poor sizing.
Core Features & Use Cases
- Fixed Fractional sizing: Risk a fixed percentage of account equity to compute shares from entry and stop.
- ATR-based volatility sizing: Use ATR and an ATR multiplier to set stop distance and scale position by volatility.
- Kelly Criterion budgeting: Compute Kelly (and half-Kelly) allocations from win rate and payoff to produce risk budgets or convert to share counts.
- Portfolio constraints & reporting: Apply max position and sector limits, identify the binding constraint, compare multiple scenarios, and emit JSON and Markdown reports for audit and record-keeping.
- Use Case: A swing trader wants a side-by-side comparison of fixed-fractional, ATR-based, and Kelly recommendations for a potential trade and needs the final share count that respects a 10% max position and 30% sector cap.
Quick Start
Use the position-sizer to calculate shares for a $100,000 account with entry 155.00, stop 148.50, and 1% risk.