def commodity_channel_index(close_data, high_data, low_data, period):
catch_errors.check_for_input_len_diff(close_data, high_data, low_data)<EOL>catch_errors.check_for_period_error(close_data, period)<EOL>tp = typical_price(close_data, high_data, low_data)<EOL>cci = ((tp - sma(tp, period)) /<EOL>(<NUM_LIT> * np.mean(np.absolute(tp - np.mean(tp)))))<EOL>return cci<EOL>
Commodity Channel Index.

Formula:
CCI = (TP - SMA(TP)) / (0.015 * Mean Deviation)