M:=89;
N:=14;
TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
cci2:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
CCI3:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
a:100;
b:-100;
M:=89;
N:=14;
TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
cci2:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
CCI3:(TYP-MA(TYP,M))/(0.015*AVEDEV(TYP,M));
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
a:100;
b:-100;