S2:=SMA(C,3,1);
S6:=SMA(C,5,1);
DK:=2*(S2-S6);
AA:=DK>0;
AB1:=MA(CLOSE,20);
AB2:=(CLOSE>MA(CLOSE,5));
AB3:=(MA(CLOSE,5)>MA(CLOSE,10));
AB4:=(CLOSE>MA(CLOSE,10));
AB5:=(MA(CLOSE,5)>MA(CLOSE,20));
AB6:=(CLOSE>MA(CLOSE,20));
AB7:=REF(AB1,1);
AB8:=(AB1> AB7);
AVX:=(((((IF(AB2,10,(0 - 10)) + IF(AB3,10,(0 - 10))) + IF(AB4,10,(0 -10))) +
IF(AB5,10,(0 - 10))) + IF(AB6,10,(0 - 10))) + IF(AB7,10,(0 - 10)) + IF(AB8,10,(0 -10)))+40;
BB:=AVX>=50;
B:=CLOSE*0;
转折线:=IF(B=-1,MA(HIGH,4),MA(LOW,4));
DD:=C>转折线;
TP:=REF(EMA(C,14),1);
A1X:=(EMA(C,10)-TP)/TP*100;
JZ:=IF(A1X>=0,REF(EMA(C,10),BArslAST(crOSS(A1X,0))+1),REF(EMA(C,10),BARSLAST(CROSS(0,A1X))+1));
EE:=A1X>=0;
N1:=IF(BARSCOUNT(C)>=8,8,BARSCOUNT(C));
AMOV:=vol*(C+L+H)/3;
MN:=SUM(AMOV,N1)/SUM(VOL,N1);
FF:=C> MN;
XG1:=AA AND BB AND DD AND EE AND FF;
XG:CROSS(XG1,0.3);