trading-signals
Version:
Technical indicators to run technical analysis with JavaScript / TypeScript.
12 lines (11 loc) • 401 B
TypeScript
import { IndicatorSeries } from '../../base/Indicator.js';
import type { HighLow } from '../../base/Candle.type.js';
export type SwingHighConfig = {
lookback: number;
};
export declare class SwingHigh extends IndicatorSeries<HighLow> {
#private;
constructor(config: SwingHighConfig);
getRequiredInputs(): number;
update(candle: HighLow<number>, replace: boolean): number | null;
}