Infrastructure liverisk-managementtradingposition-sizingeducation

Understanding Position Sizing in Trading

Learn how position sizing determines risk per trade, the math behind it, and practical steps to apply it responsibly across stocks, crypto, futures and

By the Felix team6 min read

Produced with automation, then checked by deterministic quality rules and an independent source-grounded review before publication.

Key takeaways
  • 01Position size is calculated by dividing the dollar amount of risk by the per‑unit loss.
  • 02Using a fixed percentage of account equity for each trade limits exposure as the account grows or shrinks.
  • 03Owner‑signed limits can enforce maximum order size, daily notional, and loss caps to protect capital.
  • 04Backtests provide insight but do not execute trades; real‑world sizing must consider latency and data freshness.
  • 05Emergency stop mechanisms can halt new activity but require separate owner review to close existing positions.

Position sizing determines how many units of an asset you should trade based on the amount of capital you are willing to risk. It translates a risk tolerance-often expressed as a percentage of account equity-into a concrete order size. By applying a consistent sizing method, traders can keep losses bounded and avoid over‑exposure on any single idea.

Why does position sizing matter?

Without disciplined sizing, a single large loss can wipe out a substantial portion of a portfolio, making recovery difficult. Proper sizing aligns each trade with the overall risk budget, ensuring that a series of losing trades does not erode the account faster than the strategy can generate profits.

How do you calculate a basic position size?

  1. 01Determine the dollar amount you are willing to lose on the trade (risk per trade). This is often a fixed percentage of your current equity, such as 1 % or 2 %.
  2. 02Identify the entry price, stop‑loss level, and calculate the per‑unit loss (entry‑stop).
  3. 03Divide the dollar risk by the per‑unit loss to obtain the number of units to trade.
  4. 04Round the result to the nearest tradable lot size and verify that it respects any broker‑imposed minimums.

What role do risk controls play in position sizing?

Risk controls act as safety nets that enforce the sizing rules you set. Owner‑signed limits can cap order size, daily notional exposure, and cumulative loss, providing a programmable guardrail. However, these controls do not eliminate market risk; they only prevent accidental oversizing or policy breaches.

  • Maximum order size limits prevent a single order from exceeding a predefined unit count.
  • Daily notional caps restrict the total dollar value of all trades in a day.
  • Daily loss limits stop new orders once a loss threshold is reached, requiring owner review before trading resumes.
  • Expiry fields can automatically deactivate an agent after a set period, reducing unattended exposure.

How does data quality affect sizing decisions?

Accurate market data-timestamped, sourced, and flagged for freshness-underpins every sizing calculation. If the price feed is delayed or contains gaps, the stop‑loss distance may be misestimated, leading to an order that is larger than intended. Always verify data warnings and treat missing values as unknown rather than zero.

A position size is only as reliable as the price data that defines its risk.

Can backtests replace live sizing checks?

Backtests are valuable for exploring how a sizing rule would have performed historically, but they are read‑only and cannot account for real‑time latency, slippage, or data freshness issues. Transitioning from backtest to live trading requires re‑validating the sizing logic against live market conditions and the same risk controls used in production. For related context, see How to run an AI trading agent with real‑money controls.

What should you do if an order times out?

A timeout does not prove that an order failed; it may still be pending or partially filled. Durable mutation identity and explicit error handling are essential to reconcile the intended size with the actual execution. If uncertainty remains, treat the order as open and monitor until confirmation arrives.

Frequently asked questions

How do I choose the right risk percentage for my account?

Start with a small percentage, such as 1 %, and adjust based on your comfort with drawdowns and the volatility of the assets you trade.

What happens if my daily loss limit is hit?

New orders are blocked until the owner reviews the situation and either raises the limit or resets the daily counter.

Can an emergency stop close my existing positions?

The emergency stop revokes the calling key and halts new activity, but closing existing positions requires a separate owner‑authorized action.

Where can I learn more about building safe AI trading agents?

See the article [How to Build an AI Trading Bot with Robust Risk Controls](/blog/build-ai-trading-bot-risk-controls) for detailed guidance on risk‑control design.

How do I ensure my market data is reliable?

Use feeds that provide source attribution, timestamps, and freshness warnings; treat any missing or unverified values as unknown.

What resources explain the broader context of autonomous agents?

Read [What Is an Autonomous Trading Agent?](/blog/what-is-an-autonomous-trading-agent) for an overview of agentic trading concepts.

Sources and verification

Product claims in this article were checked against these first-party references. Runtime status remains authoritative for current availability.

Build with Felix now.

Felix infrastructure is live through MCP and the API. The full trading app launches September 17.

Keep reading

Not a brokerage, exchange, or investment adviser. Not investment advice. Trading involves risk, including total loss.