UNPKG

trading-signals

Version:

Technical indicators to run technical analysis with JavaScript / TypeScript.

17 lines (16 loc) 519 B
import type { HighLow } from '../../base/Candle.type.js'; import { TechnicalIndicator } from '../../base/Indicator.js'; export type AroonResult = { aroonDown: number; aroonUp: number; }; export declare class Aroon extends TechnicalIndicator<AroonResult, HighLow<number>> { #private; readonly interval: number; constructor(interval: number); getRequiredInputs(): number; update(candle: HighLow<number>, replace: boolean): { aroonDown: number; aroonUp: number; } | null; }