Node reference

SMA — Simple Moving Average

Unweighted average of the source over the last N candles.

Rev. 2026.06

SMAindicator
InputsOutputs
Source
source · number
SMA
SMA
main · number
Configure
period
— Lookback length, in bars
default 20
range 1–500
SMA119latest
price sma
96.0116136
Period20
2 · fastsmooth · 40

Mid period (20) — moderate smoothing with moderate lag.

What it does

Smooths the source into a trend line by averaging the last period bars equally.

What happens

Recomputed once per candle from its wired source, incrementally (constant work per bar). It emits no value until the warmup period has passed; after that it produces a value every bar.

When to use

A stable, slow trend baseline; pairs well with a faster EMA.

Gotchas

  • Lags more than EMA because every bar in the window counts equally.