import { EMAOptions } from '../../schemas/EMAOptionsSchema'; import { EMAResult } from '../../schemas/EMAResultSchema'; /** * Calculate Exponential Moving Average (EMA) * * EMA is a trend-following indicator that gives more weight to recent prices * and responds more quickly to price changes than SMA. It uses exponential * smoothing to reduce lag. * * Formula: EMA = (Price - Previous EMA) * Smoothing Factor + Previous EMA * Smoothing Factor = 2 / (Period + 1) * * @param options - EMA calculation options * @returns EMA calculation result * * @example * ```typescript * const prices = [10, 12, 11, 13, 14, 12, 15, 16, 14, 13]; * const result = calculateEMA({ prices, period: 3 }); * console.log(result.ema); // [10, 11, 10.67, 11.83, 12.92, 12.46, 13.73, 14.87, 14.43, 13.72] * ``` */ export declare function calculateEMA(options: EMAOptions): EMAResult;