@ldrick/trade-indicators
Version:
Trade Indicators
10 lines (9 loc) • 485 B
TypeScript
import { either as E, readonlyNonEmptyArray as RNEA } from 'fp-ts/lib';
/**
* The Double Exponential Moving Average (DEMA) uses two Exponential Moving Average (EMA)
* to reduce noise. It can be used to identify support and resistance levels.
* Also prices above the DEMA can indicate uptrends, prices below can indicate downtrends.
*
* @public
*/
export declare const dema: (values: ReadonlyArray<number>, period?: number) => E.Either<Error, RNEA.ReadonlyNonEmptyArray<number>>;