Skip to content
StatePath
Tool Atlasmath.broadcast

Tool

Broadcast (SCALAR → BUFFER)

math.broadcast

MathConvert

Inputs

aScalar

The single number to repeat — for example a fixed price level, a setting, or the result of math.last.

Outputs

Buffer (time series)

A number line that holds the same value on every bar — a flat horizontal line.

Broadcast takes a single number and stretches it into a full line, repeating that one value on every bar. It’s the adapter you use when a tool wants a series but all you have is one fixed number.

Broadcast (SCALAR → BUFFER) overview diagramscalarbroadseries

How it works

Many tools (like Cross) compare two number lines bar-by-bar, but a single value such as a price level or a constant is just one number. Broadcast copies that value across the whole chart so it becomes a flat horizontal line the rest of the pipeline can read like any other series. It has no settings — it simply repeats input a.

Connects to

Reads from
Feeds into

Examples

  • Wire a fixed level like 1.2500 through Broadcast, then feed that flat line into Cross so price crossing the level fires a signal.
  • Broadcast a constant.number into the b input of math.arithmetic to add or scale a series by a fixed amount.

Common mistakes

  • Forgetting that Broadcast only repeats one value — it can’t turn a list of different numbers into a series; it makes a flat line, nothing more.
  • Broadcasting a value that should have stayed a single number, then wondering why a scalar-only input refuses the now-series connection.

See also