TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,13))/(0.015*AVEDEV(TYP,13));
ROC:=100*(CLOSE-REF(CLOSE,13))/REF(CLOSE,13);
MAROC:=cross(roc,6.5);
DIF:=EMA(CLOSE,13)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
a1:=dif>dea;
DIF1:=EMA(CLOSE,2)-EMA(CLOSE,26);
DEA1:=EMA(DIF,9);
MACD:=(DIF-DEA)*2>0;
VA:=IF(CLOSE>REF(CLOSE,1),VOL,-VOL);
OBV:=SUM(IF(CLOSE=REF(CLOSE,1),0,VA),0);
MAOBV:=MA(OBV,2);
a2:=maobv>ref(maobv,1);
ROC1:=100*(CLOSE-REF(CLOSE,2))/REF(CLOSE,2);
MAROC1:=MA(ROC,6);
a3:=MAROC1>ref(MAROC1,1);
xg:CCI>100 and MAROC and a1 and a2 and a3;