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,colorwhite;
SD:=EMA(SK,2),coloryellow;
买入:=IF(crOSS(趋势线,21),50,18.5),linethick1,coloraaa0ff;
Var2E:=IF(CROSS(SK,SD),25,18.5);
短买:买入>var2E;