UNPKG

stock-indicator

Version:

Stock Indicator Library

15 lines (14 loc) 516 B
import { TMixed } from "../common"; /** * - CCI (Commodity Channel Index) * @param {number[]} CLOSE - closing prices series * @param {number[]} HIGH - highest prices series * @param {number[]} LOW - lowest prices series * @param {number} N - number of periods,default 14 * @returns {{ CCI: TMixed[] }} - CCI values * TYP:=(HIGH+LOW+CLOSE)/3; * CCI:(TYP-MA(TYP,N))*1000/(15*AVEDEV(TYP,N)); */ export declare function CCI(CLOSE: number[], HIGH: number[], LOW: number[], N?: number): { CCI: TMixed[]; };