UNPKG

stock-indicator

Version:

Stock Indicator Library

15 lines (14 loc) 603 B
import { TMixed } from "../common"; /** * - MACD (Moving Average Convergence Divergence) * @param {number[]} CLOSE - close prices * @param {number} SHORT - short period,default 12 * @param {number} LONG - long period,default 26 * @param {number} MID - mid period,default 9 * @returns { DIF: TMixed[], DEA: TMixed[], MACD: TMixed[] } - DIF: Difference between fast and slow EMA, DEA: Exponential Moving Average of DIF, MACD: DIF minus DEA */ export declare function MACD(CLOSE: number[], SHORT?: number, LONG?: number, MID?: number): { DIF: TMixed[]; DEA: TMixed[]; MACD: TMixed[]; };