The Claude Quant PlaybookDownload ebookDownload ebook

Fixed-fractional position sizing

beginnerRisk and portfolio12 of 13

Decide how much money you are willing to lose if the trade fails, then buy exactly enough shares that hitting your stop loses that amount. The stop sets the size, not the other way round.

Build a trading system with Claude.Download ebook

01The formula

your account equity
the share of equity you are willing to lose on this trade, such as 1%
the stop distance: entry price minus stop price, per share
round down to a whole number of shares

02See it move

03Where it is used

04Why traders use it

It makes every trade cost the same when it goes wrong, whatever the stock or the stop. Wide stops get small positions and tight stops get large ones, so no single trade can do outsized damage.

05Worked example

With $100,000 in the account, risking 1.00% per trade with a stop $2.00 below the entry, you buy 500 shares. If the stop is hit you lose $1,000. At an entry price of $50 the position is worth $25,000, or 25.0% of the account.

06How it is built

  1. Choose the money at risk: .
  2. Place the stop where the trade idea is proven wrong, and measure the distance from entry.
  3. Each share loses if the stop is hit, so divide: shares.
  4. Round down, then check the position value against your buying power.

07The common mistake

Forgetting gaps and leverage. A stock can open far beyond your stop, so the real loss can exceed . And a tight stop on an expensive stock can produce a position larger than the whole account.

08In Python and LaTeX

E, r, stop, price = 100_000, 0.01, 2.0, 50
shares = int(E * r // stop)
print(shares, shares * stop, shares * price)  # 500 1000.0 25000
\text{shares} = \left\lfloor \frac{E \times r}{d} \right\rfloor

Rather not code the maths yourself? Describe your trading idea and let AI build the bot.

Build a bot with AgenKit

The worked example and the model run the same code, so every number matches. Models simplify markets on purpose. This is education, not financial advice.