@ldrick/trade-indicators
Version:
Trade Indicators
11 lines (10 loc) • 534 B
TypeScript
import { either as E, readonlyNonEmptyArray as RNEA } from 'fp-ts/lib';
/**
* The Weighted Moving Average (WMA) 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 WMA can indicate uptrends, prices below can indicate downtrends.
*
* @public
*/
export declare const wma: (values: ReadonlyArray<number>, period?: number) => E.Either<Error, RNEA.ReadonlyNonEmptyArray<number>>;