WY1001:=(2*CLOSE+HIGH+LOW)/4;
WY1002:=EMA(WY1001,4);
WY1003:=EMA(WY1002,4);
WY1004:=EMA(WY1003,4);
资金动能:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100,COLORMAGENTA,LINETHICK2;
STICKLINE(资金动能 =0,资金动能,0,3,0),COLOR102088;
STICKLINE(资金动能 0,资金动能,0,3,0),COLOR003300;
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);
动能分界:0,COLORLIBLUE,LINETHICK2;
STICKLINE(资金动能 =0,资金动能,0,1.5,0),COLOR0000AA;
STICKLINE(资金动能 0,资金动能,0,1.5,0),COLORGREEN;
STICKLINE(XYSHSL 6.1 AND CYS13 5 ,2 ,0 ,2 ,0 ),COLORGREEN;
STICKLINE(资金动能 -0.7,资金动能,0,1.0,0),COLORGREEN;
STICKLINE(XYSHSL 2.1 AND CYS13 5 ,1 ,0 ,2 ,0 ),COLOR00AA00;
STICKLINE(XYSHSL 1.8 AND CYS13 5 ,0.5 ,0 ,2 ,0 ),COLOR1020BB;
XYS1:=MA(资金动能,2); 五日动能:MA(资金动能,5),COLORBROWN,LINETHICK2;买:CROSS(资金动能,五日动能),LINETHICK;
预警:=资金动能 -0.30 AND 买;
DRAWTEXT(预警,资金动能*1.06,'飘买'),LINETHICK5,COLORYELLOW;