UNPKG

@sunrise1002/tats

Version:

Techincal Indicators written in javascript

25 lines (24 loc) 879 B
import { Indicator, IndicatorInput } from '../indicator/indicator'; import { CandleData } from '../StockData'; export declare class VolumeProfileInput extends IndicatorInput { high: number[]; open: number[]; low: number[]; close: number[]; volume: number[]; noOfBars: number; } export declare class VolumeProfileOutput { rangeStart: number; rangeEnd: number; bullishVolume: number; bearishVolume: number; } export declare function priceFallsBetweenBarRange(low: any, high: any, low1: any, high1: any): boolean; export declare class VolumeProfile extends Indicator { generator: IterableIterator<number | undefined>; constructor(input: VolumeProfileInput); static calculate: typeof volumeprofile; nextValue(price: CandleData): number | undefined; } export declare function volumeprofile(input: VolumeProfileInput): number[];