HS:=100*vol/(FINANCE(7)/100);
AA:=crOSS(C,MA(C,5));
MA5:=BArslAST(CROSS(C,MA(C,5)));
BB:=AA AND REF(HS,1)<HS AND HS<1 AND C>REF(C,1) AND REF(C,1)<REF(C,2) ;
DIF:=EMA(CLOSE,12)-EMA(CLOSE,26);
DEA:=EMA(DIF,9);
CC:REF(BB,1) OR REF(BB,2) OR REF(BB,3) AND DIF>DEA;