parameters: (self, n: int, array: bool = False)
return_statement: return result[-1]
docstring: Commodity Channel Index (CCI).
docstring_summary: Commodity Channel Index (CCI).
docstring_tokens: Commodity Channel Index ( CCI ) .
function: def cci(self, n: int, array: bool = False) -> Union[float, np.ndarray]:
          """
          Commodity Channel Index (CCI).
          """
          result = talib.CCI(self.high, self.low, self.close, n)
          if array:
              return result
          return result[-1]
function_tokens: def cci ( self , n : int , array : bool = False ) -> Union [ float , np . ndarray ] : result = talib . CCI ( self . high , self . low , self . close , n ) if array : return result return result [ - 1 ]