How to Size Trades for Consistent Risk Management
Learn how to calculate trade size using risk percent, stop loss distance and volatility, and see how owner‑signed limits keep automated agents safe.
Produced with automation, then checked by deterministic quality rules and an independent source-grounded review before publication.
- 01Trade size is set by the dollar risk divided by the stop loss distance.
- 02Using a fixed percentage of equity per trade caps loss to a predictable level.
- 03Volatility measures such as ATR adjust stop distance and keep exposure steady.
- 04Owner‑signed limits let an agent enforce order size, daily notional and loss caps.
- 05Verified market data and proper error handling prevent accidental over‑allocation.
Position sizing determines how many units of an asset to buy or sell in a single trade. By converting a trader's risk tolerance into a concrete order amount, it aligns potential reward with the possibility of loss and keeps each trade within a predefined portion of the portfolio. This fundamental discipline works across stocks, crypto, futures, options and other markets, and it is the first line of defense against large, unexpected drawdowns.
Why does trade sizing matter?
Without disciplined sizing a single losing trade can erode a large share of capital, making recovery difficult. Proper sizing preserves capital, smooths equity curves and aligns daily activity with long term financial goals. It also reduces emotional pressure because each trade represents a known, manageable slice of the overall account rather than an all‑or‑nothing gamble.
How do I calculate a basic trade size?
- 01The first step is to decide the maximum percent of equity you are willing to risk on any trade, commonly 1 to 2 percent.
- 02Multiply that percent by total account equity to get the dollar amount at risk.
- 03Identify the stop loss distance in price units or percent for the specific trade.
- 04Divide the dollar risk by the stop loss distance; the result is the number of shares, contracts or tokens to trade.
What role does volatility play in sizing?
Instruments that move sharply require smaller positions because price swings can exceed a planned stop loss. Traders often use the Average True Range (ATR) to set a wider stop distance, which in turn reduces the number of units calculated by the basic formula. By tying stop width to recent volatility, the risk per trade remains consistent even when market conditions change rapidly.
Example of volatility adjusted sizing
- Account equity: $100,000
- Risk per trade: 1 percent ($1,000)
- ATR based stop loss: 2 percent of price
- Position size = $1,000 ÷ 2 percent = $50,000 worth of the asset
How can automated agents enforce size limits?
Owner signed limits can be attached to an agent key, restricting order size, daily notional or daily loss. These controls are evaluated at runtime and any order that would exceed a limit is rejected before it reaches the market. The limits do not replace careful monitoring; an emergency stop only revokes the calling key and does not automatically close existing positions. This separation ensures that the agent cannot withdraw funds, and that any withdrawal still requires a distinct owner‑authorized intent.
A well configured limit is a safety net, not a guarantee of profit.
What common pitfalls should I avoid?
- Assuming market data is always fresh - always verify timestamps and source warnings before acting.
- Relying on a single stop distance without accounting for slippage or latency, which can turn a planned exit into a larger loss.
- Neglecting to update limits when equity changes, which can unintentionally raise risk exposure on subsequent trades.
- Treating a trade scoped agent key as a withdrawal path - withdrawals need separate owner authority and a signed intent.
Where can I learn more about related controls?
- Read about daily notional limits in the article Understanding What a Daily Notional Limit Controls for a Trading Agent.
- Explore how owner and agent permissions differ in How Owner and Agent Permissions Differ in Trading Automation.
- Review practical guidance on assigning capital safely in Assigning Funds to a Trial Trading Agent: Limits, Monitoring, and Safety Controls.
Frequently asked questions
Risk per trade in dollars divided by the stop loss distance in dollars gives the number of units to trade.
Yes, but a percentage automatically scales with account growth or drawdown, keeping risk proportional.
Limits are evaluated before an order is sent; if the order would breach a limit it is rejected regardless of the stop loss setting.
Treat missing or stale data as uncertain; pause trading or use a conservative fallback size until reliable data is restored.
No, it only revokes the calling key. Closing positions requires a separate owner review and explicit action.
Sources and verification
Product claims in this article were checked against these first-party references. Runtime status remains authoritative for current availability.
- Felix documentationfirst party
- Felix machine referencefirst party
Build with Felix now.
Felix infrastructure is live through MCP and the API. The Felix V1 retail quant-desk private beta is planned for September 22.
AI trading bots continuously process market data, use trained models to create trade signals, and convert those signals into signed orders while enforcing strict risk controls and safety checks.
Choosing the right API is essential for reliable algorithmic trading. This guide details data quality, permission models, latency, error reporting and risk controls to help you evaluate options.