import { ATROptions } from '../../schemas/ATROptionsSchema'; import { ATRResult } from '../../schemas/ATRResultSchema'; /** * Calculate Average True Range (ATR) * * ATR is a volatility indicator that measures the degree of price volatility. * It shows the average range of price movement over a specified period. * * True Range is the greatest of: * 1. Current High - Current Low * 2. |Current High - Previous Close| * 3. |Current Low - Previous Close| * * ATR is calculated as the moving average of True Range values. * * @param options - ATR calculation options * @returns ATR calculation result * * @example * ```typescript * const high = [12, 13, 14, 15, 16, 15, 14, 13, 12, 11]; * const low = [10, 11, 12, 13, 14, 13, 12, 11, 10, 9]; * const close = [11, 12, 13, 14, 15, 14, 13, 12, 11, 10]; * const result = calculateATR({ high, low, close, period: 3 }); * console.log(result.atr); // [1.33, 1.33, 1.33, 1.33, 1.33, 1.33, 1.33, 1.33] * ``` */ export declare function calculateATR(options: ATROptions): ATRResult;