fast-technical-indicators
Version:
High-performance technical indicators with zero dependencies - compatible with technicalindicators package
17 lines (16 loc) • 528 B
TypeScript
import { IndicatorInput } from '../types';
export interface TypicalPriceInput extends IndicatorInput {
high: number[];
low: number[];
close: number[];
}
export declare function typicalprice(input: TypicalPriceInput): number[];
export declare class TypicalPrice {
private highValues;
private lowValues;
private closeValues;
constructor(input?: TypicalPriceInput);
nextValue(high: number, low: number, close: number): number;
getResult(): number[];
static calculate: typeof typicalprice;
}