/** * Utility functions for indicator calculations */ import type { OHLCV } from "../types/index.js"; /** * Extract close prices from OHLCV data */ export declare function getClosePrices(data: OHLCV[]): number[]; /** * Extract high prices from OHLCV data */ export declare function getHighPrices(data: OHLCV[]): number[]; /** * Extract low prices from OHLCV data */ export declare function getLowPrices(data: OHLCV[]): number[]; /** * Extract volumes from OHLCV data */ export declare function getVolumes(data: OHLCV[]): number[]; /** * Calculate average of an array */ export declare function average(values: number[]): number; /** * Calculate standard deviation */ export declare function standardDeviation(values: number[]): number; /** * True Range calculation for ATR */ export declare function trueRange(data: OHLCV[]): number[]; /** * Detect crossover (fast crosses above slow) */ export declare function crossover(fast: number[], slow: number[]): boolean; /** * Detect crossunder (fast crosses below slow) */ export declare function crossunder(fast: number[], slow: number[]): boolean; /** * Calculate slope of values (recent trend) */ export declare function slope(values: number[], period?: number): number; //# sourceMappingURL=indicators.d.ts.map