VAR1:=EMA(CLOSE,30)-EMA(CLOSE,17);
VAR2:=EMA(VAR1,5);
CROSS(VAR1,VAR2) AND TROUGHBARS(3,7,1)<1;
VARI:=AMOUNT/VOL/100;
VARB:=(3*HIGH+LOW+OPEN+2*CLOSE)/7;
VARC:=SUM(AMOUNT,13)/VARI/100;
VARD:=DMA(VARB,VOL/VARC);
VARE:=(CLOSE-VARD)/VARD*100;
VARF:=(INDEXC-LLV(INDEXL,9))/(HHV(INDEXH,9)-LLV(INDEXL,9))*100;
VARQ:=SMA(VARF,3,1);
VARH:=SMA(VARQ,3,1);
CROSS(VARQ,VARH)*85 AND VARQ<20*85 AND COUNT(VARE<=-21,5)>=1;