TYP:=(HIGH+LOW+CLOSE)/3; CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); XN:=ZT AND C XG:CROSS(CCI,0) AND BARSLAST (XN) 6 AND BARSLAST (XN) 21 AND COUNT((CCI -100),5)