Skip to content
Syed Ibrahim Omer edited this page Apr 13, 2026 · 1 revision

SMA (Simple Moving Average)

What it is

SMA is the arithmetic mean of the last (N) closing prices.

Output column

  • sma

Formula

[ SMA_t = \frac{1}{N}\sum_{i=0}^{N-1} close_{t-i} ]

Configuration

  • Config key: sma_window
  • Value: integer window size, keyed by period + timeframe

Notes

  • Larger windows smooth more but react slower to changes.
  • The first (N-1) rows are typically null because the rolling window is not yet full.

Related pages:

Clone this wiki locally