필터 지우기
필터 지우기

Help on Commodity Channel Index (CCI) computation

조회 수: 1 (최근 30일)
Shaun Ramsumar
Shaun Ramsumar 2016년 7월 12일
Dear Sir/Mam,
I have written a program to calculate the CCI but my values are way under +/-100. Could there be something wrong with my code ? Please see my code below. (JSE is a fints object with open, close high and low prices)
Pt = typprice(JSE);
Pt_vec = fts2mat(Pt,0);
SMA_Pt = tsmovavg(Pt,'s',10);
SMA_Pt_vec = fts2mat(SMA_Pt,0);
CCI_vec = (Pt_vec - SMA_Pt_vec)/(0.015*mad(Pt_vec));
Thank you
Shaun Ramsumar

답변 (0개)

카테고리

Help CenterFile Exchange에서 Financial Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by