trading-signals
Version:
Technical indicators to run technical analysis with JavaScript / TypeScript.
12 lines (11 loc) • 637 B
TypeScript
import type { HighLowClose } from '../../base/Candle.type.js';
import { TrendIndicatorSeries } from '../../base/Indicator.js';
import type { SignalThresholds } from '../../base/SignalThresholds.type.js';
export declare class CCI extends TrendIndicatorSeries<HighLowClose<number>> {
#private;
readonly interval: number;
constructor(interval: number, { overbought, oversold }?: SignalThresholds);
getRequiredInputs(): number;
update(candle: HighLowClose<number>, replace: boolean): number | null;
protected calculateSignalState(result?: number | null | undefined): "BEARISH" | "BULLISH" | "SIDEWAYS" | "UNKNOWN";
}