상품 채널 지수(CCI, Commodity Channel Index)는 주식 및 상품 시장에서 사용되는 기술적 분석 도구 중 하나로, 주식이나 상품의 가격 흐름을 분석하고 그 동안의 가격 움직임이 어떻게 변화하는지를 파악하는 데 도움을 주는 지표입니다. CCI는 주로 주식, 원자재, 외환 등 다양한 금융 상품에서 사용됩니다.
간단하게 설명하면, CCI는 주식 또는 상품의 가격이 통상적인 변동 범위를 벗어날 때 어떻게 되는지를 나타내는 지표입니다. CCI를 계산하기 위한 공식은 다음과 같습니다:
전제조건 1) 주기를 20으로 설정했고
전제조건 2) 상수는 0.015
- 상수가 0.015인 이유는 안정적인 변동치를 나타내기 때문

여기서 각각의 성분들을 살펴보겠습니다.

즉 tp_t라 함은, 당일의 고가, 저가, 종가의 평균

즉 sma_20(tp)_t는 tp_t의 20일치 평균

(표준편차란? 분산의 정도 또는 자료의 산포도를 나타내는 수치)
CCI는 일반적으로 -100에서 +100 사이의 값으로 나타내며, 이러한 범위 안에 있을 때는 주식이나 상품 가격의 일반적인 변동 범위 내에 있음을 나타냅니다.
CCI는 과매수(Overbought) 또는 과매도(Oversold) 상태를 파악하는 데 사용되며,
- 특히 CCI가 +100 이상이면 매도 시점을,
- -100 이하이면 매수 시점을 고려할 수 있습니다. 하지만, CCI 지표 또한 다른 기술적 분석 도구와 함께 사용해야 하며, 개별적인 상황에 따라 해석이 필요합니다.
엑셀로 어떻게 나타낼까?
1) tp_t를 구하기 위해 AVERAGE(D{해당줄}:F{해당줄}) 계산결과값을 G열에 배치시킵니다.

2) sma(20)_t를 구하기 위해 AVERAGE(20{주기}개 G열{tp_t}) 계산결과값을 H열에 나타냅니다.

3) adv(20)_t를 구하기 위해 I열에 AEVDEV(20{주기}개 G열{tp_t})계산 결과 값을 집어넣습니다.

4) 최종적으로 CCI값을 (G열 값 - H열값) / (0.015{상수} * I열값)의 계산결과값을 J열에 입력시켜줍니다.

위의 J열값을 그래프로 나타내면 다음과 같이 나타납니다.
-100 미만인 구간 (과매도 구간)은 매수구간으로 생각해주면 되겠네요.



































