UNPKG

trading-signals

Version:

Technical indicators to run technical analysis with JavaScript / TypeScript.

13 lines (12 loc) 581 B
import type { HighLowCloseVolume } from '../../base/Candle.type.js'; import { TrendIndicatorSeries, type TradingSignals } from '../../base/Indicator.js'; type PVTState = { candles: HighLowCloseVolume[]; }; export declare class PVT extends TrendIndicatorSeries<HighLowCloseVolume, TradingSignals, PVTState> { protected state: PVTState; getRequiredInputs(): number; update(candle: HighLowCloseVolume, replace: boolean): number | null; protected calculateSignalState(result: number | null | undefined): "BEARISH" | "BULLISH" | "SIDEWAYS" | "UNKNOWN"; } export {};