iCCI

Calculates the Commodity Channel Index (CCI) indicator value for any symbol and timeframe.

Syntax

iCCI(
symbol: string,
timeframe: number,
index: number,
period: number
): number

Parameters

Parameter
Type
Description

symbol

string

Symbol name

timeframe

number

Timeframe in minutes

index

number

Index of the bar to calculate CCI for

period

number

CCI calculation period (typically 14 or 20)

Return Value

Returns a number representing the CCI value at the specified bar index. The value typically ranges from -200 to +200, though it can exceed these levels.

Description

Calculates the Commodity Channel Index (CCI) indicator.

Example

Last updated