UNPKG

stock-indicator

Version:

Stock Indicator Library

13 lines (12 loc) 622 B
import { TMixed } from "../common/index"; /** * - Exponential Moving Average (EMA) * @param {number[]} CLOSE - closing prices of the stock * @param {number} M1 - number of periods to calculate the EMA,must be greater than 1 and less than the length of the CLOSE array,default is 12 * @param {number} M2 - number of periods to calculate the initial EMA, default is 1,must be less than N,default is 50 * @returns {{ EMA: TMixed[] }} - object with the EMA values,rounded to 3 decimal places */ export declare function EXPMA(CLOSE: number[], M1?: number, M2?: number): { EMA1: TMixed[]; EMA2: TMixed[]; };