All skills
position-sizer
Calculate how many shares to buy for a long stock trade from your account size, entry, and stop.
- Part of tradermonty/claude-trading-skills
- 4.4k installs
- Finance · Quant trading
When to use it
You have a trade setup with an entry and stop price but still need a share count that fits your risk budget.
For example
You say
Use position-sizer on a $100,000 account buying at $155 with a stop at $148.50, risking 1%, and cap the position at 10% of the account.
You get
- Recommended share count
- Dollar risk and percent
- Binding constraint note
How it works
- Compares fixed fractional, ATR-based, and Kelly sizing, and can run several risk levels side by side.
- Whole shares by default; fractional shares only with the --fractional flag.
- When several limits apply, the tightest one sets the final size.
Before installing
Requires Python 3.9+ with only the standard library; no API keys needed.
This skill includes 3 scripts your assistant may run on your computer.
More Quant trading skills
See allAlso in this pack
- backtest-expert4.8kGuides you through backtesting a trading strategy, checking robustness and avoiding overfitting and bias.
- market-news-analyst4.7kReviews recent market-moving news, central-bank decisions and earnings to explain their impact on stocks and commodities.
- technical-analyst4.6kReads weekly price charts to identify trends, support and resistance, and scenario probabilities.
- market-environment-analysis4.4kAnalyzes global markets, forex and commodities to give a risk-on or risk-off view of the trading environment.