# forge.ta.sma

```python
forge.ta.sma(source: ArrayLike, period: int = 20) -> np.ndarray
```

Mean of the last ``period`` values, each window summed from scratch.

NaN until ``period`` bars exist, and for any window that holds a missing value.

Since Forge API 1.

## Class forge.ta.SMA

```python
forge.ta.SMA(**inputs: Any) -> None
```

Average of the last N values, each weighted equally.

SMA[i] = (x[i] + x[i-1] + ... + x[i-period+1]) / period

No value until period bars exist. A window holding a missing value has no value.

Since Forge API 1.
