一、使用说明:1、实心红柱表示资金注入,空心红柱表示资金开始流出。2、实心淡绿柱表示资金加速流出,空心淡绿柱表示资金减缓流出。3、深绿柱表示资金坚决做空。4、空心红柱+实心红柱+深绿柱组合表示主力底部开始建仓。
二、操作要领:实心红柱+深绿柱组合买入股票持股;空心红柱+深绿柱组合要卖出或清仓持币。
{资金动能}
WY1001:=(2*CLOSE+HIGH+LOW)/3;
WY1002:=EMA(WY1001,3);
WY1003:=EMA(WY1002,3);
WY1004:=EMA(WY1003,3);
XYS0:(WY1004-REF(WY1004,1))/REF(WY1004,1)*100;
STICKLINE(XYS0>=0,XYS0,0,2,1),COLORRED;
STICKLINE(XYS0<0,XYS0,0,2,0),COLORGREEN;
STICKLINE(XYS0>=0 AND XYS0>=REF(XYS0,1),0,XYS0,2,0),COLOR6062DE;
STICKLINE(XYS0>=0 AND XYS0< REF(XYS0,1),0,XYS0,2,1),COLOR6062DE;
STICKLINE(XYS0<0 AND XYS0>=REF(XYS0,1),0,-XYS0,2,1),COLORFFFD5B;
STICKLINE(XYS0<0 AND XYS0< REF(XYS0,1),0,-XYS0,2,0),COLORFFFD5B;
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>=0 AND XYSHSL>=REF(XYSHSL,1),0,XYSHSL,2,0),COLOR6062DE;
STICKLINE(XYSHSL>=0 AND XYSHSL< REF(XYSHSL,1),0,XYSHSL,2,1),COLOR6062DE;
STICKLINE(XYSHSL<0 AND XYSHSL>=REF(XYSHSL,1),0,-XYSHSL,2,1),COLORFFFD5B;
STICKLINE(XYSHSL<0 AND XYSHSL< REF(XYSHSL,1),0,-XYSHSL,2,0),COLORFFFD5B;
XYS1:MA(XYS0,N);
XYS2:MA(XYS0,M);
DRAWICON(CROSS(XYS1,XYS2),XYS2,1);
DRAWICON(CROSS(XYS2,XYS1),XYS1,2);