TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); MA(C,5)<REF(MA(C,5),1) AND CCI<-200 AND C<REF(C,1) AND CCI>REF(CCI,1);