code: def commodity_channel_index(close_data, high_data, low_data, period):
      
      catch_errors.check_for_input_len_diff(close_data, high_data, low_data)
      catch_errors.check_for_period_error(close_data, period)
      tp = typical_price(close_data, high_data, low_data)
      cci = ((tp - sma(tp, period)) /
             (0.015 * np.mean(np.absolute(tp - np.mean(tp)))))
      return cci
docs: Commodity Channel Index.
  
      Formula:
      CCI = (TP - SMA(TP)) / (0.015 * Mean Deviation)