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,2,0),colorred;
STICKLINE(XYS0<0,XYS0,0,2,0),colorgreen;
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);
ZZX:0,colorwhite;
STICKLINE(XYSHSL>6.1 AND CYS13>5 ,2 ,0 ,2 ,0 ),colorgreen;
STICKLINE(XYSHSL>3.8 AND CYS13>5 ,1.5 ,0 ,2 ,0 ),coloryellow;
STICKLINE(XYSHSL>2.1 AND CYS13>5 ,1 ,0 ,2 ,0 ),colorcyan;
STICKLINE(XYSHSL>1.8 AND CYS13>5 ,0.5 ,0 ,2 ,0 ),colorblue;
XYS1:MA(XYS0,2),colorgreen;
XYS2:MA(XYS0,1),coloryellow;
XC1:=CROSS(0,XYS1);
XC2:=CROSS(XYS1,0);
T1:=BARSLAST(XC1);
T2:=BARSLAST(XC2);
T3:=T2+REF(T1,T2);
JC:=CROSS(XYS2,XYS1);
A1:=COUNT(JC,T1)=2;
A2:=COUNT(JC,T3)=2;
XG:=JC AND (A1 OR A2);
T2gang:=BARSLASTCOUNT(XYS1>0);
杠上二花:=COUNT(JC,T2gang)=2;
杠上二花XG:=JC AND 杠上二花;
T1shen:=BARSLASTCOUNT(XYS1<0);
深水3浪:=COUNT(JC,T1shen)=3;
深水4浪:=COUNT(JC,T1shen)=4;
深水5浪:=COUNT(JC,T1shen)=5;
深水6浪:=COUNT(JC,T1shen)=6;
深水N浪XG:=JC AND (深水3浪 OR 深水4浪 OR 深水5浪 OR 深水6浪 );
TT1:=BARSLAST(JC);
TT2:=REF(BARSLAST(JC),TT1 +1);
零轴头炮abs:=ABS(REF(XYS1,TT2+1));
零轴双响炮XG:=JC AND (零轴头炮abs < 0.10);
DRAWTEXT(JC,1,'b'),colorred;
DRAWTEXT(XG,0,'B'),colorred;
DRAWTEXT(杠上二花XG,1.5,'杠'),colorred;
DRAWTEXT(深水N浪XG,-0.5,'深'),colorred;
DRAWTEXT(零轴双响炮XG,0,'炮'),colorred;
妖叉:=CROSS(XYS0,2.50);
DRAWTEXT(妖叉,XYS0 +0.5,'妖'),colorred;