Skip to content

API Reference


API Reference / sma

Function: sma()

sma(data, period?): IndicatorSeries

Defined in: src/ta/indicators.ts:20

Simple moving average.

Parameters

data

number[]

period?

number = 20

Returns

IndicatorSeries

Community project — not affiliated with Dhan. MIT License.