VAR2:=LLV(LOW,33);
VAR3:=HHV(HIGH,21);
VAR4:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*100,10)*-1+100;
趋势:=100-EMA(0.191*REF(VAR4,1)+0.809*VAR4,1);
VAR1Y:=(CLOSE-LLV(LOW,36))/(HHV(HIGH,36)-LLV(LOW,36))*100;
VAR2Y:=SMA(VAR1Y,3,1);
VAR3Y:=SMA(VAR2Y,3,1);
VAR4Y:=SMA(VAR3Y,3,1);
波:=VAR3Y;
段:=VAR4Y;
趋势Y:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
VAR9Y:=crOSS(趋势,VAR2Y) AND 趋势Y<20 AND 趋势Y<段;
分批买入:VAR9Y;