Var1:=1;
趋势线:=((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)-50)*1.032+50),COLORRED;
Var2:=(2*CLOSE+HIGH+LOW+OPEN)/5;
Var3:=LLV(LOW,34);
Var4:=HHV(HIGH,34);
SK:=EMA((Var2-Var3)/(Var4-Var3)*100,13)*Var1;
SD:=EMA(SK,2);
Var2E:=IF(crOSS(SK,SD),25,18.5);
买入:=IF(CROSS(趋势线,21),50,18.5);
短买:买入>var2E;