UNPKG

trading-signals

Version:

Technical indicators to run technical analysis with JavaScript / TypeScript.

12 lines (11 loc) 393 B
import { IndicatorSeries } from '../../base/Indicator.js'; import type { HighLow } from '../../base/Candle.type.js'; export type ZigZagConfig = { deviation: number; }; export declare class ZigZag extends IndicatorSeries<HighLow> { #private; constructor(config: ZigZagConfig); getRequiredInputs(): number; update(candle: HighLow<number>, replace: boolean): number | null; }