Skip to documentation
Screebits Docs
Flow Editor
Open Screebits
  • Screebits
  • Flow Editor documentation
  • Blueprints
  • Your first steps in Screebits
  • Workspace, strategies and account
  • Get started with the Flow Editor
  • Build an RSI Momentum Alert
  • Flow Editor concepts
  • How a strategy starts and continues
  • Control and data connections
  • Nodes, parameters, outcomes, and ports
  • Plans and feature availability
  • Saves, versions, and checkpoints
  • Tactical and Portfolio strategies
  • Validation and readiness
  • Flow Editor mode guides
  • Build Portfolio strategies
  • Build Tactical strategies
  • Flow Editor guides
  • Add a Quant Hub metric
  • Configure a node
  • Configure Settings and visual preferences
  • Connect nodes
  • Create a strategy
  • Create checkpoints and restore versions
  • Reset a Flow safely
  • Debug and replay a Backtest
  • Fix validation issues
  • Use keyboard shortcuts
  • Manage variables
  • Run a Backtest
  • Save and resolve conflicts
  • Work on tablet and mobile
  • Use Quick add
  • Use the Inspector
  • Add, move, duplicate, and remove nodes
  • Flow Editor examples
  • Portfolio rebalance with risk limits
  • Tactical order and position monitoring
  • Use Backtest Center
  • Read a Backtest result
  • Compare and export Backtests
  • Explore Quant Hub
  • Metric parameters, charts and overlays
  • Flow Editor node reference
  • Position Sizer
  • Flow Editor troubleshooting
  • Troubleshoot activation and validation
  • Troubleshoot Backtests and replay
  • Troubleshoot compact layouts
  • Troubleshoot connections and data types
  • Troubleshoot plans and locked features
  • Troubleshoot Quant Hub in the Flow Editor
  • Troubleshoot save, offline, and conflicts
  • Backtests and responsible use
  • Flow Editor glossary
  1. Screebits
  2. /Flow Editor documentation
  3. /Flow Editor node reference
  4. /Position Sizer
IntermediateLast verified Sep 30, 2026

Position Sizer

Calculates an order quantity from account, price, and risk inputs.

On this page
  1. When to use
  2. Example
  3. Work from a risk budget
  4. Common problems
  5. Next steps

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.

Try it here

Explore Position Sizer

Calculates an order quantity from account, price, and risk inputs.

Exercise steps
  1. Change the method from Fixed to Risk based.
  2. Inspect the newly required price and stop-distance inputs.
Event TriggerPosition Sizer
Graph preview — a diagram of the example

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.

Node facts

These facts come from the current Flow Editor node catalog.

Node type
Position Sizer
Activation role
No activation role
Category
Action
Availability
Tactical only
Modes
Tactical
Required plan
None
Behavior
Transforms a value
Control inputs
0
Output data types
Number

Parameters

NameInput typeRequirementDefaultOptions and constraints
Sizing methodSelection listRequiredfixedOptions: Fixed, Percent equity, Risk based
Fixed sizeNumberOptional when shown1Minimum: 0.000001; Shown when Sizing method is fixed
Percent equityNumberOptional when shown2Minimum: 0.000001; Maximum: 100; Shown when Sizing method is percentEquity
Risk percentNumberOptional when shown1Minimum: 0.000001; Maximum: 100; Shown when Sizing method is riskBased
Stop-loss distance sourceSelection listOptional when shownliteralOptions: Literal, Stop-loss distance port; Shown when Sizing method is riskBased
Stop-loss distanceNumberOptional when shown1Minimum: 0.000001; Shown when Sizing method is riskBased and Stop-loss distance source is literal

Primary parameters

  • Sizing method
  • Fixed size
  • Percent equity
  • Risk percent
  • Stop-loss distance source

Outcomes

None

Data inputs

  • Account BalanceNumber · Required when shownShown when Sizing method is one of percentEquity, riskBased
  • Current Priceprice · Required when shownShown when Sizing method is percentEquity
  • Stop Loss DistanceNumber · Required when shownShown when Sizing method is riskBased and Stop-loss distance source is dataPort

Data outputs

  • Calculated SizeNumber

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.

On this page

1 / 5
  1. When to use
  2. Example
  3. Work from a risk budget
  4. Common problems
  5. Next steps

Practical guidance for strategies, historical simulations and metric research in Screebits.

Responsible useGlossary