DRAWTEXT(D=1,Z*0.95,'▲'),ColorFF8000,ALIGN1;
角度Z:=ATAN((Z/REF(Z,1)-1)*100)*180/3.1416;
var1:4*SMA((CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100,5,1),3.2,1),ColorFF8000,linethick1;
明升: IF(角度Z =0 and CROSS(var1,8),40,0),Color00FF00,stick,linethick3;
{明升选股}
Z:=ZIG(3,50/5);
角度Z:=ATAN((Z/REF(Z,1)-1)*100)*180/3.1416;
{角度Z =0 and 加入此语句为的是去掉下降趋势出现的无用信号}
var1:4*SMA((CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100,5,1)-
3*SMA(SMA((CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100,5,1),3.2,1),ColorFF8000,linethick1;
明升: IF(角度Z =0 and CROS(var1,8),40,0);