WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
XYS0:=(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
STICKLINE(XYS0>=0,XYS0,0,8,0),colorlired;
STICKLINE(XYS0<0,XYS0,0,8,0),colorligreen;
PJGJ:=AMOUNT/VOL/100;
SSRYDJX:=MA(PJGJ,13);
SSRCJL:=EMA(VOL,13);
SSRCJE:=EMA(AMOUNT,13);
SSRCBJX:=SSRCJE/SSRCJL/100;
CYS13:=(CLOSE-SSRCBJX)/SSRCBJX*100;
XYSHSL:=EMA(VOL/CAPITAL*100,13);
STICKLINE(XYSHSL>91 AND CYS13>5,2,0,8,0),colorgreen;
STICKLINE(XYSHSL>38 AND CYS13>5,1.5,0,8,0),coloryellow;
STICKLINE(XYSHSL>21 AND CYS13>5,1,0,8,0),colorcyan;
STICKLINE(XYSHSL>18 AND CYS13>5,0.5,0,8,0),colorblue;
小:MA(XYS0,2),colorred,LINETHICK1;
大:MA(XYS0,1),coloryellow,LINETHICK1;
DRAWICON(CROSS(小,大),小,2);
DRAWICON(CROSS(大,小),大,1);
DRAWTEXT(CROSS(小,大),小+1.2,'卖出'),COLORFFFFFF;
DRAWTEXT(CROSS(大,小),大-0.9,'买入'),COLOR0000FF;