N:=14;
M:=3;
N1:=84;
LOWV:=LLV(LOW,N);
HIGHV:=HHV(HIGH,N);
RSV:=EMA((CLOSE-LOWV)/(HIGHV-LOWV)*100,M);
K:EMA(RSV,M);
D:MA(K,M);
TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
cci:(TYP-MA(TYP,N1))/(0.015*AVEDEV(TYP,N1));
正100:100;
负100:-100;
正300:300;
负000:-300;
零线:0;