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
  • Expression
  • 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. /Expression
IntermediateLast verified Sep 30, 2026

Expression

Calculates a numeric formula from connected inputs.

On this page
  1. When to use
  2. Example
  3. Calculate and check a percentage
  4. Common problems
  5. Next steps

Calculates a numeric formula from connected inputs.

When to use

Use it to combine, normalize, or transform up to the supported numeric inputs before a comparison.

Example

Calculate a percentage distance between current price and a reference value, then compare the result.

Try it here

Explore Expression

Calculates a numeric formula from connected inputs.

Exercise steps
  1. Change the formula from $a * 2 to max($a, 60).
  2. Try an invalid formula, inspect the validation, then Undo.
Event TriggerRead VariableExpression
Graph preview — a diagram of the example

Calculate and check a percentage

Use Formula ($a - $b) / $b * 100, connect a current value 110 to A and a reference value 100 to B, and the illustrative Result is 10 percent. Both referenced inputs must be connected or otherwise valid in the execution context. The formula parser accepts a bounded expression language, not arbitrary JavaScript or a function named by a data provider. Check that B cannot be zero before relying on division; a parse-valid formula can still be mathematically invalid for a particular input. Expression produces a number, so a control path must reach the Condition that evaluates it.

Common problems

Keep the formula within the supported syntax and guard against missing inputs or division by zero.

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
Expression
Activation role
No activation role
Category
Data
Availability
Tactical and Portfolio
Modes
Tactical and Portfolio
Required plan
None
Behavior
Transforms a value
Control inputs
0
Output data types
Number

Parameters

NameInput typeRequirementDefaultOptions and constraints
FormulaExpressionRequiredNot setNone

Primary parameters

  • Formula

Outcomes

None

Data inputs

  • ANumber · Required
  • BNumber · Optional
  • CNumber · Optional
  • DNumber · Optional

Data outputs

  • ResultNumber

Related documentation

  • ConditionCompares values and selects Match or No Match.
  • Bar FieldExtracts one scalar value from a connected bar.
  • Configure a nodeEdit required and optional parameters, then review any ports or connections affected by the change.

On this page

1 / 5
  1. When to use
  2. Example
  3. Calculate and check a percentage
  4. Common problems
  5. Next steps

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

Responsible useGlossary