trading-signals
Version:
Technical indicators to run technical analysis with JavaScript / TypeScript.
14 lines (13 loc) • 570 B
TypeScript
import { TrendIndicatorSeries } from '../../base/Indicator.js';
import type { HighLowClose } from '../../base/Candle.type.js';
export type ERThresholds = {
trending?: number;
};
export declare class ER extends TrendIndicatorSeries<HighLowClose> {
#private;
readonly interval: number;
constructor(interval: number, { trending }?: ERThresholds);
getRequiredInputs(): number;
update(candle: HighLowClose, replace: boolean): number | null;
protected calculateSignalState(result?: number | null | undefined): "BULLISH" | "SIDEWAYS" | "UNKNOWN";
}