UNPKG

@ldrick/trade-indicators

Version:
10 lines (9 loc) 497 B
import { either as E, readonlyNonEmptyArray as RNEA } from 'fp-ts/lib'; /** * The Smoothed Moving Average (SMMA) is like the Exponential Moving Average (EMA), * with just a “smoother” factor. It can be used to identify support and resistance levels. * Also prices above the SMMA can indicate uptrends, prices below can indicate downtrends. * * @public */ export declare const smma: (values: ReadonlyArray<number>, period?: number) => E.Either<Error, RNEA.ReadonlyNonEmptyArray<number>>;