← Back to Blog
Education

Position Sizing for Trading Bots: How Much to Risk Per Trade

Master position sizing for automated trading. Learn fixed dollar, percentage-based, and risk-adjusted sizing methods with practical examples for trading bots.

VibeTrader Team March 10, 2026 9 min read

Why Position Sizing Is the Most Overlooked Edge

Ask a trader about their strategy and they'll talk for 20 minutes about RSI thresholds and MACD crossovers. Ask about position sizing and you get a shrug — "I just buy $500 every time."

This is backwards. Position sizing has a larger impact on your long-term returns than your entry signal. Two traders can run the exact same strategy with the same indicators and the same stocks — but if one sizes positions correctly and the other doesn't, their results will be dramatically different.

Position sizing determines:

  • How much you lose on bad trades (survival)
  • How much you make on good trades (growth)
  • How many positions you can hold simultaneously (diversification)
  • How quickly you recover from drawdowns (resilience)

For trading bots, position sizing is even more critical because the bot will execute your sizing rules perfectly, every time. Get it right and the bot compounds gains. Get it wrong and it compounds losses.


Method 1: Fixed Dollar Amount

The simplest approach. Every trade uses the same dollar amount regardless of the stock price, portfolio size, or market conditions.

How It Works

  • Portfolio: $10,000
  • Fixed amount: $500 per trade
  • Every trade buys exactly $500 worth of stock

Pros

  • Simple to implement — no calculations needed
  • Easy to understand — you always know how much each trade costs
  • Predictable — consistent exposure per trade

Cons

  • Doesn't scale — $500 is 5% of a $10,000 portfolio but only 1% of a $50,000 portfolio
  • Ignores volatility — $500 of a calm stock like JNJ carries different risk than $500 of TSLA
  • Doesn't adapt — after a drawdown, you're still risking the same dollar amount on a smaller portfolio

Best For

Beginners, small accounts, and strategies where simplicity matters more than optimization.

Bot Setup

> "Buy $500 of AAPL when RSI drops below 30. Sell when RSI goes above 65. Stop loss 3%."

Risk per trade: $500 × 3% stop = $15 maximum loss


Method 2: Percentage of Portfolio

Each trade uses a fixed percentage of your current portfolio value. As the portfolio grows, position sizes grow. As it shrinks, they shrink.

How It Works

  • Portfolio: $10,000
  • Allocation: 5% per trade
  • Position size: $500 (5% of $10,000)
  • After portfolio grows to $12,000: position size becomes $600
  • After portfolio drops to $8,000: position size drops to $400

Pros

  • Scales automatically — positions grow with your portfolio
  • Self-correcting — after losses, you trade smaller (protecting capital). After wins, you trade larger (compounding)
  • Professional standard — most hedge funds size positions as a percentage of AUM

Cons

  • Requires portfolio tracking — the bot needs to know your current portfolio value
  • Can shrink too aggressively — after a drawdown, smaller positions make recovery harder
  • Percentages need choosing — what's the right percentage?

Recommended Percentages

| Risk Level | Per Trade % | Max Positions | Total Exposure |

|-----------|------------|--------------|---------------|

| Conservative | 2-3% | 5-10 | 20-30% |

| Moderate | 4-5% | 5-8 | 30-40% |

| Aggressive | 8-10% | 3-5 | 30-50% |

Best For

Intermediate to advanced traders with portfolios above $5,000 who want their strategy to scale.


Method 3: Risk-Based Position Sizing (The Kelly Criterion Lite)

Instead of fixing the dollar amount or portfolio percentage, you fix the amount you're willing to lose per trade. Then calculate the position size based on your stop loss distance.

How It Works

  • Decide maximum risk per trade: 1% of portfolio = $100 (on a $10,000 portfolio)
  • Determine stop loss distance: 3%
  • Calculate position size: $100 / 3% = $3,333

If your stop loss is wider:

  • 5% stop loss → $100 / 5% = $2,000 position
  • 2% stop loss → $100 / 2% = $5,000 position

The Math

Position Size = Risk Amount / Stop Loss Percentage

Where Risk Amount = Portfolio Value × Risk Percentage Per Trade

Why This Is Superior

Every trade risks the exact same dollar amount regardless of the stop loss distance. A tight-stop trade gets a larger position (more upside if right). A wide-stop trade gets a smaller position (same downside if wrong). This normalizes risk across all trades.

The 1-2% Rule

Professional traders and quantitative funds nearly universally follow the 1-2% rule:

  • 1% risk per trade: Conservative. Allows 50+ consecutive losing trades before account is halved. Nearly impossible to blow up
  • 2% risk per trade: Standard. Allows 25+ consecutive losses before halving. Still very robust
  • 3%+ risk per trade: Aggressive. 15 consecutive losses halves the account. Possible during drawdowns

Example

Portfolio: $20,000

Risk per trade: 1.5% = $300

| Trade | Stop Loss | Position Size | Shares (at $200/share) |

|-------|----------|--------------|----------------------|

| AAPL | 3% | $10,000 | 50 shares |

| TSLA | 5% | $6,000 | 30 shares |

| SPY | 2% | $15,000 | 75 shares |

Each trade risks exactly $300. The volatile stock (TSLA) gets a smaller position. The stable stock (SPY) gets a larger one. Risk is equalized.

Best For

Serious traders running multiple bots across different stocks and strategies. This is the professional standard.


Method 4: Volatility-Adjusted Sizing (ATR-Based)

Similar to risk-based sizing, but uses ATR (Average True Range) to determine the "natural" stop loss distance, which then drives position size.

How It Works

  • Calculate ATR(14) for the stock
  • Set stop loss at 2x ATR
  • Calculate position size based on that stop distance

Example:

  • AAPL ATR = $4, price = $200
  • Stop loss = 2 × $4 = $8 below entry
  • Risk per trade = $200 (1% of $20,000 portfolio)
  • Position size = $200 / $8 = 25 shares = $5,000

For a more volatile stock:

  • TSLA ATR = $15, price = $250
  • Stop loss = 2 × $15 = $30 below entry
  • Risk per trade = $200
  • Position size = $200 / $30 = ~7 shares = $1,750

Why It Works

The bot automatically trades smaller positions in volatile stocks and larger positions in calm stocks. Every trade has normalized risk regardless of the underlying stock's volatility.

Best For

Multi-stock strategies where the bot trades across different volatility profiles. This prevents a single volatile stock from dominating your risk.


Position Sizing Mistakes That Destroy Accounts

1. Risking 10%+ Per Trade

With 10% risk per trade, three consecutive losers cost you 30% of your portfolio. Five losers cost 50%. Losing streaks of 3-5 trades are common for any strategy. Keep risk at 1-2%.

2. Same Size for Every Stock

$500 of JNJ (daily range 1%) is not the same risk as $500 of COIN (daily range 5%). If you use fixed amounts, at least vary them by volatility class.

3. Not Accounting for Multiple Positions

If your bot can hold 5 positions at 5% each, that's 25% of your portfolio deployed. If all five stocks drop 3%, you've lost 3.75% of your portfolio. Make sure your maximum total exposure aligns with your risk tolerance.

4. Ignoring Portfolio-Level Risk

Position sizing per trade is necessary but not sufficient. You also need:

  • Maximum portfolio exposure: Total percentage in active trades (e.g., 50%)
  • Maximum sector concentration: No more than 20% in any one sector
  • Maximum correlation: Don't size five positions in stocks that move together

5. Increasing Size After Losses

The urge to "make it back" by doubling position size after a loss is the fastest path to account destruction. If anything, reduce size after losses — your risk capital is shrinking.

6. Martingale Strategies

Doubling down on losers (martingale) works until it doesn't — and when it doesn't, you lose everything. Never program a bot to increase position size on a losing trade. Every trade should be independent.


Position Sizing by Strategy Type

| Strategy | Sizing Method | Per Trade Risk | Max Positions |

|----------|--------------|---------------|--------------|

| DCA | Fixed dollar | N/A (no stop) | 1-3 |

| Mean Reversion | Fixed dollar or risk-based | 1-2% | 2-4 |

| Trend Following | Risk-based or ATR | 1-2% | 3-5 |

| Scalping | Fixed dollar (small) | 0.5-1% | 1-2 |

| Swing Trading | Risk-based | 1-2% | 3-5 |

| Day Trading | Fixed dollar or risk-based | 0.5-1% | 1-3 |


The Position Sizing Cheat Sheet

  • Decide your risk tolerance: 1% per trade (conservative) or 2% (standard)
  • Calculate risk amount: Portfolio × risk percentage = dollars at risk per trade
  • Set your stop loss: Based on strategy (2-5% for most swing trades)
  • Calculate position size: Risk amount / stop loss percentage = maximum position
  • Check total exposure: All positions combined shouldn't exceed your portfolio exposure limit
  • Verify it makes sense: Is the position size reasonable for the stock's liquidity and your account size?

Example walkthrough:

  • Portfolio: $15,000
  • Risk tolerance: 1.5% = $225 per trade
  • Strategy stop loss: 4%
  • Position size: $225 / 4% = $5,625
  • Maximum 3 positions = $16,875 maximum exposure (over 100% — need to reduce)
  • Adjusted: Maximum 2 positions or reduce to 1% risk ($150 → $3,750 per position → 2 positions = $7,500 = 50% exposure)

Key Takeaways

  • Position sizing matters more than entry signals — it determines survival and compounding
  • The 1-2% rule — never risk more than 1-2% of your portfolio on a single trade
  • Risk-based sizing is the professional standard — fix the dollar amount at risk, calculate position from stop loss
  • Fixed dollar sizing works for beginners — simple and predictable, just not optimal
  • Volatility-adjusted sizing normalizes risk across different stocks
  • Check total exposure — individual trade sizes are meaningless if total exposure exceeds your comfort level
  • Never increase size after losses — reduce size or keep it constant
  • Start conservative — you can always increase later once you've validated the strategy

Ready to configure proper position sizing for your trading bot? Create your bot on VibeTrader — set your position size, risk controls, and maximum exposure, then let the AI handle the execution.


*Building the future of AI-powered trading at VibeTrader. Come vibe with us.*

Ready to Automate Your Trading?

VibeTrader lets you create trading bots using plain English. No coding required.

Create Your First Bot Free →