Node reference

Accumulator

A running aggregate of a numeric source across the run.

Rev. 2026.06

Accumulatorindicator
InputsOutputs
Source
source · number
Include When
includeWhen · boolean
Reset When
resetWhen · boolean
Accumulator
Value
main · number
Configure
mode
— How the value is aggregated
default sum

What it does

Maintains a stateful sum, max, min, average, or count of the source, with optional include and reset gates.

What happens

Each candle the value updates per its mode; it persists across bars and only resets when the reset gate fires.

When to use

Cumulative metrics — count signals, running totals, session aggregates.

Gotchas

  • Without a reset gate it accumulates for the whole run.
  • Pick the mode deliberately — sum, avg, and count behave very differently.