dif:= ema(c,12) - ema(c,26);
dea:= ema(dif,9);
crOSS(C,ma(c,30))
and count(c<ref(c,1),3)=1 and c>ref(c,1)*1.01
and c=hhv(c,4) and c>SAR(4,2,20) and c>amount/100/v
and v/capital<0.08 and dif>dea
and c/ref(c,20)/(indexc/ref(indexc,20))>=1