position-sizer SKILL.md skillA
position-sizer from tradermonty/claude-trading-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add tradermonty/claude-trading-skills/position-sizer@git:20261031.c03eafbPins git:20261031.c03eafb in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- tradermonty/claude-trading-skills
- Path
skills/position-sizer/SKILL.md- Versions recorded
- 3
- Latest version
- git:20261031.c03eafb, committed Oct 31, 2026
- First version recorded
- Feb 28, 2026
- Size
- 8,094 bytes
- Repository stars
- 3,682
- License
- MIT
Calculate risk-based position sizes for long stock trades. Use when user asks about position sizing, how many shares to buy, risk per trade, Kelly criterion, ATR-based sizing, fractional-share sizing, or portfolio risk allocation. Supports stop-loss distance calculation, volatility scaling, and sector concentration checks.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Position Sizer ## Overview Calculate the optimal number of shares to buy for a long stock trade based on risk management principles. Supports three sizing methods: - **Fixed Fractional**: Risk a fixed percentage of account equity per trade (default: 1%) - **ATR-Based**: Use Average True Range to set volatility-adjusted stop distances - **Kelly Criterion**: Calculate mathematically optimal risk allocation from historical win/loss statistics All methods apply portfolio constraints (max position %, max sector %) and output a final recommended share count with full risk breakdown. The default output is whole shares. Use `--fractional` only when the user's broker supports fractional shares for the security and order type. ## When to Use - User asks "how many shares should I buy?" - User wants to calculate position size for a specific trade setup - User mentions risk per trade, stop-loss sizing, or portfolio allocation - User asks about Kelly Criterion or ATR-based position sizing - User has a small account where whole-share rounding would under-deploy a defined risk budget - User wants to check if a position fits within portfolio concentration limits ## Prerequisites …
Read the whole file at its exact version.
How to install
mdr add tradermonty/claude-trading-skills/position-sizer@sha256:0d99d088743630f3The line at the top of this page pins the label git:20261031.c03eafb, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_hldekbtvcwhrm6nb)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Feb 28, 2026 and Oct 31, 2026, about one every 123 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261031.c03eafb latest | 2026-10-31 | c03eafb | 8,094 B | A | view · diff |
| git:20260708.5ca6e46 | 2026-07-08 | 5ca6e46 | 7,478 B | A | view · diff |
| git:20260228.a1b01a3 | 2026-02-28 | a1b01a3 | 6,141 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (8094 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
tradermonty/claude-trading-skills · 3,682 stars · license MIT · pushed 2026-11-07 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_hldekbtvcwhrm6nb GET https://markdownregistry.com/api/v1/resolve?ref=tradermonty/claude-trading-skills/position-sizer GET https://markdownregistry.com/api/v1/blob/0d99d088743630f333696eda79c36331172e3efcb4a02cb7e3ffaec5aa9166e0
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from tradermonty/claude-trading-skills
Every file in tradermonty/claude-trading-skills