Risk

Position sizing and maximum exposure in automated trading

Learn how quantity rules, contract value, stop distance, margin, and account-wide limits work together in an automated trading risk plan.

·9 min read·All guides
Educational content: this guide explains trading technology and workflow concepts. It is not financial advice, a recommendation, or a promise of trading results.
Position sizing and maximum exposure in automated trading — Risk starts with sizing discipline and exposure limits.

Position sizing determines how much exposure an order creates. In automation, a quantity field should never be treated as an isolated number. The real risk depends on instrument value, contract multiplier, stop distance, volatility, existing positions, margin requirements, and whether several strategies can trade at the same time.

Quantity is not the same as risk

One share, one micro futures contract, and one standard futures contract can represent very different market exposure. Two trades with the same quantity may also have different risk because their stop distances differ.

A practical workflow converts the strategy's intended quantity into an account-aware exposure check. It should verify instrument limits, strategy limits, account limits, and the quantity actually available when closing a position.

Use several layers of limits

Useful controls include maximum quantity per order, maximum open quantity per strategy, maximum exposure per symbol, maximum simultaneous strategies, and a portfolio-wide cap. A daily loss or drawdown condition may pause new entries while still allowing risk-reducing exits.

These controls should be conservative enough to remain useful when volatility or margin requirements change. Broker margin is a minimum requirement, not a recommendation for safe position size.

Account for overlapping signals

Two strategies may appear independent in backtests but create concentrated exposure when they trade the same instrument or correlated markets together. An account-wide view is needed before each new entry.

TradeLuma's workflow model separates strategy instructions from account controls so a valid signal can still be blocked when the resulting account exposure would exceed the user's approved limits.

Frequently asked questions

Should position size be based only on available margin?

No. Available margin indicates what the broker may permit, not what is appropriate for the trader's risk tolerance or strategy.

Can an exit order be blocked by a maximum-position rule?

Risk-reducing exits should generally be treated differently from new exposure, but the exact platform and broker rules must be designed and tested carefully.

Continue learning

Related TradeLuma guides

Build a controlled automation workflow with TradeLuma

Configure alerts, test in paper mode, apply execution controls, and follow broker outcomes from one workspace.