CCI
Type:
cci
• Category:indicators
Description
Commodity Channel Index
Parameters
Name | Type | Description | Required | Default |
---|---|---|---|---|
high | string | List of highest prices | no | |
low | string | List of lowest prices | no | |
close | string | List of closing prices | no | |
timeperiod | number | no | 14 |
Help
CCI (Commodity Channel Index)
================================
Description
The Commodity Channel Index (CCI) is a technical indicator used to assess the price action of a financial instrument. It measures the difference between the price change and its average price change over a given period.
What does this worker do?
This worker calculates the Commodity Channel Index (CCI) for a given set of high, low, and closing prices over a specified time period. The CCI is a momentum indicator that helps identify overbought and oversold conditions in the market.
How to interpret the results
The CCI values can be interpreted as follows:
- CCI values above 100 indicate overbought conditions, suggesting that the price may be due for a correction or decline.
- CCI values below -100 indicate oversold conditions, suggesting that the price may be due for a bounce or increase.
- CCI values between -100 and 100 indicate a neutral market condition.
Parameters
The following parameters are required to calculate the CCI:
Parameters Schema (JSON)
{
"high": {
"type": "string",
"description": "List of highest prices"
},
"low": {
"type": "string",
"description": "List of lowest prices"
},
"close": {
"type": "string",
"description": "List of closing prices"
},
"timeperiod": {
"type": "number",
"default": 14
}
}
Parameters List
- high: string - List of highest prices. This should be a comma-separated string of values.
- low: string - List of lowest prices. This should be a comma-separated string of values.
- close: string - List of closing prices. This should be a comma-separated string of values.
- timeperiod: number - The time period used to calculate the CCI. Default value is 14.
Example usage:
{
"high": "10.5, 11.2, 10.8, 11.5",
"low": "9.8, 10.1, 9.5, 10.2",
"close": "10.2, 10.9, 10.5, 11.1",
"timeperiod": 14
}