通达信主力资金副图指标
2016-05-27 15:30:00来源:本站整理浏览:400
通达信主力资金副图指标
源码
{资金进出
V1:=(C-REF(C,1))/REF(C,1)*100;
V2:EMA(V1,8)*10,STICK;
V3:EMA(V1,8)*10;
资金进出:V3;
STICKLINE(资金进出,V3,0,2,0),COLORRED;
STICKLINE(资金进出<0,V3,0,2,0),COLORBLUE;
{资金趋势}
A:=VOL*CLOSE;
B:=SUM(A,1)/SUM(VOL,1);
B1:=EMA(B,17);
资金趋势:(B-B1)*100/B;
STICKLINE(资金趋势,资金趋势,0,2,0),COLORGREEN;
STICKLINE(资金趋势<0,资金趋势,0,2,0),COLORCYAN;