N:=8;
M:=20;
GC1:=EMA((C+L+H)/3,6);
GC2:=EMA(EMA((C+L+H)/3,6),5);
FY1:=CROSS(GC1,GC2);
FY2:=COUNT(FY1,2)>0;
KUA:=100-100*(HHV(HIGH,5*N)-CLOSE)/(HHV(HIGH,5*N)-LLV(LOW,5*N));
CFL:=(VOL/REF(VOL,1)>1ANDCOUNT(CLOSE>OPEN,1))OR(LOW>REF(HIGH,1)ANDCOUNT(OPEN>CLOSE,1)ANDVOL/REF(VOL,1)>2);
ERC1:=CROSS(KUA,M)ANDCFLANDCROSS(V,MA(V,5));
ERC2:=COUNT(BETWEEN(KUA,20,50),5)>=3ANDCROSS(KUA,50);
ERC3:=COUNT(BETWEEN(KUA,50,70),5)>=3ANDCROSS(KUA,70);
CROSS(MA(V,3),MA(V,5))ANDFY2AND(ERC1ORERC2ORERC3);