Skip to content
StatePath
Tool Atlasconstant.number

Tool

Number

constant.number

ConstantLiteral

Inputs

No typed inputs.

Outputs

Scalar

A single fixed number, the same on every bar.

Number emits one fixed value, the same on every bar. It’s the simplest building block — a hard-coded number you can feed anywhere a value or setting is needed.

Number overview diagramconstscalar

How it works

There are no inputs; the node just outputs the number you type into the value setting, repeated on every bar as a single scalar. Pair it with math.broadcast when a tool needs that fixed number stretched into a full line.

Configuration

valuescalar

The fixed number to emit — a price level, a multiplier, a threshold, or any constant your strategy needs. Every bar receives this same value.

value diagramsetscalar

Connects to

Feeds into

Examples

  • Set value to a price level like 1.2500, Broadcast it into a flat line, then Cross price against it to detect a breakout.
  • Feed a fixed multiplier such as 2.0 into the b input of math.arithmetic to scale a series.

Common mistakes

  • Wiring a single number straight into a tool that expects a series — broadcast it first with math.broadcast.
  • Hard-coding a level that ought to track the market (like a moving average), so the value never adapts.

See also