UNPKG

trading-signals

Version:

Technical indicators to run technical analysis with JavaScript / TypeScript.

11 lines (10 loc) 536 B
import { TrendIndicatorSeries } from '../../base/Indicator.js'; import type { SignalThresholds } from '../../base/SignalThresholds.type.js'; export declare class CMO extends TrendIndicatorSeries { #private; readonly interval: number; constructor(interval: number, { overbought, oversold }?: SignalThresholds); getRequiredInputs(): number; update(price: number, replace: boolean): number | null; protected calculateSignalState(result: number | null | undefined): "BEARISH" | "BULLISH" | "SIDEWAYS" | "UNKNOWN"; }