UNPKG

@ldrick/trade-indicators

Version:
17 lines (16 loc) 667 B
import { either as E, readonlyNonEmptyArray as RNEA } from 'fp-ts'; import { HighLowClose } from '../types.js'; interface ADXReturn { adx: RNEA.ReadonlyNonEmptyArray<null | number>; mdi: RNEA.ReadonlyNonEmptyArray<number>; pdi: RNEA.ReadonlyNonEmptyArray<number>; } /** * The Average Directional Index (ADX) determines trend strength. * It also delivers Plus Directional Movement Indicator (PDI) * and Minus Directional Movement Indicator (MDI). * Crossings of these three values can be used to determine trend changes. * @public */ export declare const adx: (values: HighLowClose<number>, period?: number) => E.Either<Error, ADXReturn>; export {};