Node reference

Variable

A constant, or a value that persists across bars.

Rev. 2026.06

Variabledata
InputsOutputs
Write When
writeWhen · boolean
Write Value
writeValue · number
Variable
Value
main · number
Configure
subType
default const
value
— Constant to compare against
default 0
initialValue
default 0
writeWhenNodeId
writeWhenHandle
writeValueNodeId
writeValueHandle

What it does

Holds a fixed number (const) or a mutable value that persists bar-to-bar (var / cvar).

What happens

Read fresh from each candle as the strategy steps — this is the raw market value the rest of your graph builds on.

When to use

Thresholds, tunable constants, or simple state your graph updates itself.

Gotchas

  • const is fixed for the run; var / cvar persist and can be updated.