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,3),COLORYELLOW;
买入:IF(crOSS(趋势线,21),50,18.5),LINETHICK1,COLORAAA0FF;
VAR2E:=IF(CROSS(SK,SD),25,18.5);
DRAWTEXT(买入>VAR2E,61,' 短买'),COLORAAAAFF;