以下是通达信一个不错实用量指标源码
万手:VOL/10000,LINETHICK0,NODRAW;
AA:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL);
预测:AA/10000;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,AA,0,2,1),COLORYELLOW;
BB:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主动买:=IF(CLOSE>OPEN,BB*(HIGH-LOW),IF(CLOSE<OPEN,
BB*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2));
主买:主动买/10000,COLORRED,NODRAW;
主动卖:=IF(CLOSE>OPEN,0-BB*((HIGH-CLOSE)+(OPEN-LOW)),
IF(CLOSE<OPEN,0-BB*(HIGH-LOW),0-VOL/2));
主卖:-主动卖/10000,COLORGREEN,NODRAW;
差额:(主动买+主动卖)/10000,NODRAW;
CC:=(2*C+H+L)/4;
STICKLINE(CC>REF(CC,1),0,VOL,2,DRAWNULL),COLORRED;
STICKLINE(CC<REF(CC,1),0,VOL,2,DRAWNULL),COLORCYAN;
STICKLINE(CC=REF(CC,1),0,VOL,2,DRAWNULL),COLORWHITE;
{STICKLINE(C>-1,0,VOL,3,1),COLORRED;
STICKLINE(C<O ,0,VOL,3,1),COLORFFFF00;
STICKLINE(C=O AND C<REF(C,1),0,VOL,2,1),COLORFFFF00;
STICKLINE(C=O AND C>REF(C,1),0,VOL,2,1),COLORRED;}
STICKLINE(主动买>0,0,主动买,1,0),COLORBROWN;
STICKLINE(主动卖<0,VOL,主动买,1,0),COLOR808000;
持币:IF(SAR(10,2,20)>=H,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORGREEN;
持股:IF(SAR(10,2,20)<=L,SAR(10,2,20),DRAWNULL),CIRCLEDOT,COLORMAGENTA;
五日: MA(V,5) COLORWHITE,LINETHICK2;
陆拾日: MA(V,60) COLORYELLOW,LINETHICK2;
壹佰叁五日: MA(V,135)COLORRED,LINETHICK2;
{指数收阳(翻红)、收阴(翻绿),要避免假阴(假翻绿)、假阳(假翻红)。
这个问题太重要了,很多人都容易弄混了。
今日收盘价比昨日收盘价高叫收阳线,比昨日收盘价低叫收阴线。
今日收盘价比今日开盘价高并且比昨日收盘价低叫假阳线,反之叫假阴线。
很多软件都是为了叫股民把钱扔进股市,就是就高不就低。
今日预测:是今日即时成交量预测,它会跟据现量,做即时修正,没有未来函数。
主动买入:为估算值。主动卖出:亦为估算值。
下部园球为经典的 SAR 抛物线指标。};
倍量:STICKLINE(VOL>REF( VOL,1)*2,0,VOL,2,0),COLOR5290FF,LINETHICK1;
五倍量:STICKLINE(VOL>MA(VOL,5)*2,0,VOL,2,0),COLORGREEN,LINETHICK1;
VVOL:IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
A:=REF(C,1);P:=REF(O,1);S:=(A+P)/2;
STICKLINE((A+P),S,S,3,5),COLORWHITE;
地量:=LLV(V,20); Q3:=IF(V=地量,1,0); STICKLINE(Q3=1,VOL,0,2,0),COLORWHITE;
获利比例:WINNER(C)*100COLORWHITE;
Q1:=IF(VOL>=REF(VOL,1)*2,1,0) OR V=HHV(V,10) AND C>=REF(C,1);
STICKLINE(Q1=1,VOL,0,2,0) ,COLORYELLOW;