UNPKG

trading-signals

Version:

Technical indicators to run technical analysis with JavaScript / TypeScript.

6 lines (5 loc) 159 B
export type Streak = { length: number; percentage: number; }; export declare function getStreaks(prices: number[], keepSide: 'up' | 'down'): Streak[];