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