UNPKG

@sunrise1002/tats

Version:

Techincal Indicators written in javascript

21 lines (20 loc) 678 B
import { IndicatorInput, Indicator } from '../indicator/indicator'; export declare class StochasticInput extends IndicatorInput { period: number; low: number[]; high: number[]; close: number[]; signalPeriod: number; } export declare class StochasticOutput { k: number; d: number; } export declare class Stochastic extends Indicator { result: StochasticOutput[]; generator: IterableIterator<StochasticOutput | undefined>; constructor(input: StochasticInput); static calculate: typeof stochastic; nextValue(input: StochasticInput): StochasticOutput; } export declare function stochastic(input: StochasticInput): StochasticOutput[];