TYP:=(HIGH+LOW+CLOSE)/3; v1:=ma(v,5); v2:=ma(v,20); CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14)); XG:CCI -200 AND REF(CCI,1) ref(CCI,2) and v1