TYP := (IF(ISNULL(HIGH),CLOSE,HIGH) + IF(ISNULL(LOW),CLOSE,LOW) + CLOSE)/3;
CCI:(TYP-MA(TYP,N))/(0.015*AVEDEV(TYP,N));
//CCIi:EMA(CCI,23);
//CCI5:EMA(CCI,5);
s00:-100;
s100:100;
s300:=300;
s111:=-300;
STICKLINE(CCI>s100,CCI,s100,5,0,0),colorred;
STICKLINE(CCI<s00,CCI,s00,5,0,0),colorligreen;
STICKLINE(CCI>s300,CCI,s300,5,0,0),colorwhite;
STICKLINE(CCI<s111,CCI,s111,5,0,0),colorliblue;