Position Sizer
Calculates an order quantity from account, price, and risk inputs.
Calculates an order quantity from account, price, and risk inputs.
When to use
Use it before Order when quantity should be derived from explicit risk sizing rather than a fixed value.
Example
Calculate quantity from account balance, current price, and stop distance, then feed it to Order.
Work from a risk budget
Select Risk based, provide Account Balance and Current Price, set Risk Percent to 1, and choose the source of Stop Loss Distance. For an illustrative balance of 10,000 units, the risk budget is 100 units. With a simple price-distance assumption of 2 units per unit held, an unconstrained arithmetic size would be 50 units. The node's Calculated Size must still respect instrument units, tick/lot rules, available margin and the exact stop-distance semantics. It is a data output, not an Order submission. Connect it to the proposed Quantity input and check Margin Check before the control path reaches Order.
Common problems
Missing or zero risk inputs can produce unusable results. Review units and do not treat the calculated size as a margin approval.
Next steps
Review the generated Parameters, Outcomes, and Data Ports on this page, then open the related guides for the complete workflow.
Related documentation
- Margin CheckChecks a proposed Tactical order against available margin before submission.
- OrderSubmits a configured Tactical order and produces a ticket for lifecycle tracking.
- Tactical order and position monitoringUnderstand a Tactical pattern that sizes an order, checks margin, tracks its lifecycle, and monitors the position.