Current location - Trademark Inquiry Complete Network - Futures platform - What is the calculation formula of expert cci index?
What is the calculation formula of expert cci index?
As for the calculation of CCI, most of Baidu's results are wrong. It's really too toxic. I've suffered from it, too. I have compared with the actual calculation of crude oil futures market data, and the following answers are completely consistent.

Let's talk about it first Usually, the median is abbreviated as TYP, not TP. MA is the simple moving average of TYP in N period (default is 14), and MD is the average of absolute deviation of the arithmetic average of TYP in N period, which is simply the average of deviation from the median. The formula is:

CCI =(TYP- Ma) /(MD*0.0 15)

Where typ = (h+l+c)/3.

MA = average (typical 1: typical 14)

MD = ave dev(typ 1:typ 14)

In the calculation of MA and MD, the closing price is not involved.

The wheat language is as follows

TYP:= (close+high+low)/3;

CCI:(TYP- Ma (TYP, north)) /(0.0 15*AVEDEV(TYP, north));

At the same time, in conventional software, such as Mandarin, unlike other indicators, 1 day to 13 day is not counted, which is just a habit.