VAR0:=((((CLOSE * 2) + HIGH) + LOW) / 4);
VAR1:=(EMA(VAR0,1) - EMA(VAR0,40));
VAR2:=EMA(VAR1,5);
VAR3:=((VAR1 - VAR2) * 100);
VAR4:=IF((VAR3 < -20),-20,IF((VAR3 > 100),100,VAR3));
VAR5:=(((CLOSE - LLV((1.02 * LOW),20)) / (HHV(HIGH,20) - LLV(LOW,20))) * 100);
VAR6:=IF((VAR5 > 100),100,IF((VAR5 < 0),0,VAR5));
VAR7:=(((HHV(HIGH,5) - CLOSE) / (HHV(HIGH,5) - LLV(LOW,5))) * 20);
VAR8:=(((3 * VAR7) - (2 * SMA(VAR7,3,1))) * 1);
VAR9:=IF((VAR8 > 100),100,IF((VAR8 < -5),-5,VAR8));
VAR10:=(((HHV(HIGH,13) - CLOSE) / (HHV(HIGH,13) - LLV(LOW,13))) * 120);
VAR11:=IF((VAR10 > 100),100,VAR10);
VAR12:=CROSS(VAR9,VAR4);
VAR13:=((VAR11 = 0) AND CROSS(VAR4,40));
VAR14:=((VAR11 = 0) AND (VAR9 < 0));
VAR15:=CROSS(VAR4,40);
VAR16:=(VAR4 = 100);
VAR17:=((CLOSE / REF(CLOSE,1)) > 1.095);
VAR18:=(VAR11=100);
VAR19:=((((((VAR12 + VAR13) + VAR14) + VAR15) + VAR16) + VAR17) - VAR18);
VAR20:=C>O AND REF(C,1)<REF(O,1);
VAR21:=REF(VAR19,1)<0 AND VAR19>=0 AND VAR20;
VVAR1:=LLV(LOW,13);
VVAR2:=HHV(HIGH,13);
VVAR3:=SMA((CLOSE-VVAR1)/(VVAR2-VVAR1)*100,5,1);
VVAR4:=SMA((VVAR2-CLOSE)/(VVAR2-VVAR1)*100,5,1);
VVAR5:=SMA(MAX(CLOSE-REF(CLOSE,1),0),5,1)/SMA(ABS(CLOSE-REF(CLOSE,1)),5,1)*100;
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);
底部:=IF(CROSS(VVAR5,VVAR3),1,0);
走强:=IF(CROSS(VVAR3,VVAR4),1,O);
加仓:=IF(FILTER(YXF=1,5),1.5,0);
底买:(加仓 AND 底部) AND (VAR19<0 OR VAR21) AND KDJ.J<20;