同花顺动能副图指标 源码介绍
同花顺动能副图指标 源码
当指标出现红色区域时,多方动能强烈,当指标出现绿色区域时,空方动能强烈。
n1:=6;
n2:=12;
Aa:=(H+L+O+2*C)/5;
bb1:=MA(Aa,n1);
bb2:=MA(Aa,n2);
V1:=bb1/REF(bb1,1);
V2:=bb2/REF(bb2,1);
Hsl:=VOL/SHGZG*100;
m1:=MA(VOL,n1)*bb1/MA(Hsl,n1);
m2:=MA(VOL,n2)*bb2/MA(Hsl,n2);
始动能:=1/2*m2*V2*V2;
末动能:=1/2*m1*V1*V1;
动能:(末动能-始动能)/10000,coloryellow,LINETHICK2;
FILLRGN(动能,0,动能>0,RGB(255,0,0),动能<0,RGB(0,255,0));
gd46415