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