cci
Calculate the Commodity Channel Index (CCI).
The CCI is designed to detect beginning and ending market trends. The range of 100 to -100 is the normal trading range. CCI values outside of this range indicate overbought or oversold conditions. You can also look for price divergence in the CCI. If the price is making new highs, and the CCI is not, then a price correction is likely.
Parameters
- standard
data
: list[openbb_core.provider.abstract.data.Data]
The data to use for the CCI calculation.
• Optional: False
index
: str
Index column name to use with data
, by default 'date'.
• Default: date
• Optional: True
length
: int
The length of the CCI, by default 14.
• Default: 14
• Optional: True
scalar
: float
The scalar of the CCI, by default 0.015.
• Default: 0.015
• Optional: True
Returns
results
: list[Data]
Serializable results.
provider
: None
Provider name.
warnings
: Optional[list[Warning_]]
list of warnings.
chart
: Optional[Chart]
Chart object.
extra
: dict[str, Any]
Extra info.