通达信系统指标公式 下载本文

主力买量:LARGEINTRDVOL,COLORRED,NODRAW;

主力卖量:LARGEOUTTRDVOL,COLORGREEN,NODRAW; STICKLINE(1,0,IF(主力买量>0,VOL,0),2,0),COLORBROWN; STICKLINE(1,0,IF(主力卖量>0,-VOL,0),2,0),COLORBROWN; STICKLINE(1,0,主力买量,2,0),COLORRED;

STICKLINE(1,0,(-1*主力卖量),2,0),COLORGREEN;

SUPH 主力活跃度

TMP:=LARGEINTRDVOL-LARGEOUTTRDVOL;

主力活跃度:(LARGEINTRDVOL+LARGEOUTTRDVOL)*10000/(2*FINANCE(7)),NODRAW; STICKLINE(TMP>0,0,主力活跃度,2,0),COLORLIRED; STICKLINE(TMP<0,0,主力活跃度,2,0),COLORLIGREEN;

SUPAMO 主力资金线

主力资金线:(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0,LINETHICK2;

DDE排序 DDE用于排序

DDX:(LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7);

DDY:IF(TRADENUM>0,(TRADEOUTNUM-TRADEINNUM)*100/TRADENUM,0);

DDZ:IF(TRADENUM>0,(LARGETRDINNUM-LARGETRDOUTNUM)/TRADENUM*100,0);

SUP排序SUP用于排序

SUPL:SUM((LARGEINTRDVOL-LARGEOUTTRDVOL)*10000/FINANCE(7),0); SUPV:(LARGEINTRDVOL-LARGEOUTTRDVOL);

SUPH:(LARGEINTRDVOL+LARGEOUTTRDVOL)*10000/(2*FINANCE(7)); SUPAMO:(L2_AMO(0,0)+L2_AMO(1,0)-L2_AMO(0,1)-L2_AMO(1,1))/10000.0;

DDE力度 DDE力度用于排序

主力买力度:LARGEINTRDVOL*100/VOL; 主力卖力度:LARGEOUTTRDVOL*100/VOL;

43

第二章 条件选股公式

第一节 指标条件选股

BIAS买入 乖离率买入条件选股

(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)*100+LL<0;

KD买入 KD买入条件选股

RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,M1,1); D:=SMA(K,M2,1);

KD:CROSS(K,D)&&K<20;

W&R买入 威廉指标买入条件选股

CROSS(LL,WR(N,N));

MTM买入 MTM买入条件选股

IMTM:CROSS(MTM(N,N),0);

44

KDJ买入 KDJ买入条件选股

RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100; K:=SMA(RSV,N2,1); D:=SMA(K,N3,1); J:=3*K-2*D; CROSS(J,0);

BIAS卖出 乖离率卖出条件选股

100*(CLOSE-MA(CLOSE,N))/MA(CLOSE,N)>M;

BOLL买入 布林带买入条件选股

MID := MA(CLOSE,N);

UPPER:= MID+S*STD(CLOSE,N); LOWER:= MID-S*STD(CLOSE,N); CROSS(CLOSE,LOWER);

BOLL卖出 布林带卖出条件选股

MID := MA(CLOSE,N);

UPPER:= MID+PP*STD(CLOSE,N); LOWER:= MID-PP*STD(CLOSE,N); CROSS(UPPER,CLOSE);

45

KD卖出 KD卖出条件选股

RSV:= (CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100; K:=SMA(RSV,N1,1); D:=SMA(K,N2,1);

CROSS(D,K) AND D>N3;

KDJ卖出 KDJ卖出条件选股

RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100; K:=SMA(RSV,N2,1); D:=SMA(K,N3,1); J:=3*K-2*D; CROSS(100,J);

MA买入 均线买入条件选股

CROSS(MA(CLOSE,SHORT),MA(CLOSE,LONG));

MA卖出 均线卖出条件选股

RSV:=(CLOSE-LLV(LOW,N1))/(HHV(HIGH,N1)-LLV(LOW,N1))*100; K:=SMA(RSV,N2,1);

D:=SMA(K,N3,1); J:=3*K-2*D; CROSS(100,J);

46