Fixed-fractional position sizing
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.
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
- Retail traderRisks a fixed 0.5% to 2% of the account per trade, so a losing streak dents the account instead of ending it.
- Execution traderConverts a risk budget into an order size before working it in the market.
- Portfolio managerUses the same idea with volatility in place of the stop: size each position so it contributes the same risk.
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
- Choose the money at risk: .
- Place the stop where the trade idea is proven wrong, and measure the distance from entry.
- Each share loses if the stop is hit, so divide: shares.
- 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\rfloorRather not code the maths yourself? Describe your trading idea and let AI build the bot.
Build a bot with AgenKitThe worked example and the model run the same code, so every number matches. Models simplify markets on purpose. This is education, not financial advice.