fast-technical-indicators
Version:
High-performance technical indicators with zero dependencies - compatible with technicalindicators package
22 lines (21 loc) • 539 B
TypeScript
import { CandleData } from '../types';
export interface RenkoInput {
candles: CandleData[];
brickSize: number;
}
export interface RenkoOutput {
open: number;
close: number;
high: number;
low: number;
trend: 1 | -1;
}
export declare function renko(input: RenkoInput): RenkoOutput[];
export declare class Renko {
private brickSize;
private candles;
constructor(input: RenkoInput);
nextValue(candle: CandleData): RenkoOutput[];
getResult(): RenkoOutput[];
static calculate: typeof renko;
}