{ 股票指标 }
万手:vol/10000,LINETHICK0;
AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
预测:AA/10000;
BB:=VOL/((HIGH-LOW)*2-Abs(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<open,bb*((high-open)+(close-low)),vol 2));<br="">
主买:=主动买/10000,COLORRED;
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE<open,0-bb*(high-low),0-vol 2));<br="">
主卖:=-主动卖/10000,COLORGREEN;
总额:=主买+主卖;
主买占比%:主买/总额*100,COLORmaGENTA;
V总:=主动买-主动卖;
买卖比:主动买/(-主动卖);
VE:=V总/REF(V总,1);
倍量:VE>2;
倍缩:VE<=0.5;
差额:=(主动买+主动卖)/10000;
MA5:MA(V,5)COLORWHITE;
MA10:=MA(V,10)COLORRED;
MA120:MA(V,60)COLORYELLOW;
持币:IF(SAR(10,2,20)>=H,sar(10,2,20),DRAWNULL);
DRAWICON(持币>0,持币,2 );
持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL);
DRAWICON(持股>0,持股,1 );
stICKLINE(主动买,0,主动买,2.0,0),COLORMAGENTA;
STICKLINE(买卖比>1,主动买,V总,2.0,0),COLORYELLOW;
STICKLINE(买卖比<=1,主动买,V总,2.0,0),COLORBLUE;
STICKLINE(VE>2,0,V总/3,2.0,0),COLORRED;
STICKLINE(VE<=0.5,0,V总/3,2.0,0),COLORGREEN;
VAR3:=(CLOSE-MA(CLOSE,6))/MA(CLOSE,6)*100;
VAR4:=(CLOSE-MA(CLOSE,24))/MA(CLOSE,24)*100;
VAR5:=(CLOSE-MA(CLOSE,32))/MA(CLOSE,32)*100;
VAR6:=(VAR3+VAR4+VAR5)/3;
VAR7:=EMA(VAR6,5);
K:EMA(VAR7,5)*2, ,COLORFF00FF;
D:EMA(K,5), , COLORWHITE;
J:K*3-D*2, ,COLORYELLOW;
DRAWTEXT_FIX(1,0.01,0.05,0,'【粉+黄做多】【粉+蓝做空】【粉色做多】【蓝色做空】【黄色做多】【红色倍量】【绿色缩量】')COLOR00FFFF;
标签:主买,MA,VE,10000,通达信,源码,CLOSE,主动 From: https://www.cnblogs.com/zhibiao/p/18032129