UNPKG

trading-signals

Version:

Technical indicators to run technical analysis with JavaScript / TypeScript.

22 lines (21 loc) 699 B
import type { HighLowClose } from '../../base/Candle.type.js'; import { TechnicalIndicator } from '../../base/Indicator.js'; export type ChandelierExitResult = { long: number; short: number; }; export type ChandelierExitConfig = { interval?: number; multiplier?: number; }; export declare class ChandelierExit extends TechnicalIndicator<ChandelierExitResult, HighLowClose<number>> { #private; readonly interval: number; readonly multiplier: number; constructor({ interval, multiplier }?: ChandelierExitConfig); getRequiredInputs(): number; update(candle: HighLowClose<number>, replace: boolean): { long: number; short: number; } | null; }