trading-signals
Version:
Technical indicators to run technical analysis with JavaScript / TypeScript.
15 lines (14 loc) • 572 B
TypeScript
import { TrendIndicatorSeries, type TradingSignals } from '../../base/Indicator.js';
type TDSState = {
closes: number[];
lastBarCompletedSetup: boolean;
setupCount: number;
setupDirection: 'bullish' | 'bearish' | null;
};
export declare class TDS extends TrendIndicatorSeries<number, TradingSignals, TDSState> {
protected state: TDSState;
getRequiredInputs(): number;
update(close: number, replace: boolean): number | null;
protected calculateSignalState(result?: number | null | undefined): "BEARISH" | "BULLISH" | "UNKNOWN";
}
export {};