N:=20;M:=32;P1:=80;P2:=100;
VAR1:=(C+H+O+L)/4;
买入:=XMA(VAR1,M)*(1-P2/1000);
YJ1:=CROSS(C,买入);
MTM:=C-REF(C,1);
DX:=100*EMA(EMA(MTM,6),6)/EMA(EMA(ABS(MTM),6),6);
YXF:=IF(LLV(DX,2)=LLV(DX,7) AND COUNT(DX<0,2) AND CROSS(DX,MA(DX,2)),1,0);
YJ2:=IF(FILTER(YXF=1,5),1,0);
YJ3:=CROSS(0.9,1/VOL*1000>0.01 AND "KDJ.J"<0);
XG:YJ1 AND YJ2 AND YJ3;