UNPKG

@ldrick/trade-indicators

Version:
10 lines (9 loc) 526 B
import { either as E, readonlyNonEmptyArray as RNEA } from 'fp-ts'; /** * The Exponential Moving Average (EMA) takes newer values weighted into account * and reacts closer to the prices compared to the Simple Moving Average (SMA). * It can be used to identify support and resistance levels. * Also prices above the EMA can indicate uptrends, prices below can indicate downtrends. * @public */ export declare const ema: (values: readonly number[], period?: number) => E.Either<Error, RNEA.ReadonlyNonEmptyArray<number>>;