A1:=REF(C,1);
A2:=CLOSE;
A3:=(A2-A1)/A1*100;
东方动能星:A3*VOL/10000,NODRAW;
累计动能:EMA(EMA(东方动能星,20),3)*3,COLORRED,LINETHICK3;
五日均能:MA(累计动能,5),COLORFF00FF;
十日均能:MA(累计动能,10),COLORWHITE;
DD:0.02;
DJ:-0.04;
VAR0:=VOL/CLOSE/2;
VAR1:=SUM(IF(VAR0 > 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);
VAR2:=SUM(IF(VAR0 > 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);
VAR3:=SUM(IF(VAR0 < 100 AND CLOSE > REF(CLOSE,1),VAR0,0),0);
VAR4:=SUM(IF(VAR0 < 100 AND CLOSE < REF(CLOSE,1),VAR0,0),0);
VAR5:=VAR1 + VAR2 + VAR3 + VAR4;
VAR6:=IF(BARSTATUS=2,100 * VAR1/VAR5,0);
VAR7:=IF(BARSTATUS=2,100 * VAR2/VAR5,0);
VAR8:=IF(BARSTATUS=2,100 * VAR3/VAR5,0);
VAR9:=IF(BARSTATUS=2,100 * VAR4/VAR5,0);
机构买盘:=VAR1+VAR3;
机构卖盘:=VAR2+VAR4;
KK:=机构买盘-机构卖盘;
DRAWICON(CROSS(累计动能,0.02) AND KK>0,累计动能,9);
DRAWICON(CROSS(-0.02,累计动能),累计动能,2);