Skip to content

API Reference


API Reference / ema

Function: ema()

ema(data, period?): IndicatorSeries

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

Exponential moving average. The first value is seeded with the SMA of the opening window, which is the convention the rest of this module assumes.

Parameters

data

number[]

period?

number = 20

Returns

IndicatorSeries

Community project — not affiliated with Dhan. MIT License.