UNPKG

trading-signals

Version:

Technical indicators to run technical analysis with JavaScript / TypeScript.

11 lines (10 loc) 432 B
import { TrendIndicatorSeries } from '../../base/Indicator.js'; export declare class ROC extends TrendIndicatorSeries { #private; readonly prices: number[]; readonly interval: number; constructor(interval: number); getRequiredInputs(): number; update(price: number, replace: boolean): number | null; protected calculateSignalState(result: number | null | undefined): "BEARISH" | "BULLISH" | "UNKNOWN"; }