以下是通达信新版指标公式源码和截图
通达信新版成交量指标公式源码:
TOTAL:=IF(PERIOD=1,5,IF(PERIOD=2,15,IF(PERIOD=3,30,IF(PERIOD=4,60,IF(PERIOD=5,TOTALFZNUM,1)))));
MTIME:=MOD(FROMOPEN,TOTAL);
CTIME:=IF(MTIME 0.5,TOTAL,MTIME);
V:IF((CURRBARSCOUNT=1ANDDYNAINFO(8) 1),VOL*TOTAL/CTIME,DRAWNULL),NODRAW;
stICKLINE((CURRBARSCOUNT=1ANDDYNAINFO(8) 1),VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
ma30:=MA(VOL,30);
MA120:=MA(VOL,120);
STICKLINE(CLOSE =OPEN,0,VOL,3,0),COLOR000055;
STICKLINE(OPEN CLOSE,0,VOL,3,0),COLOR005500;
STICKLINE(CLOSE =OPENANDVOL =MA120,0,VOL,3,0),COLORRED;
STICKLINE(OPEN CLOSEANDVOL =MA120,0,VOL,3,0),COLORGREEN;
STICKLINE(crOSS(MA30,MA120),0,VOL,3,0),COLORYELLOW;
DRAWTEXT(VOL =2*REF(VOL,1),VOL,'倍量'),COLORYELLOW;
ZZ:=IF(REF(C,1) REF(O,1)ANDO REF(C,1)*1.014ANDC O*1.02,1,3);
V5:=MA(V,5);
V12:=MA(V,12);
V34:=MA(V,34);
C6:=MA(C,6);
DRAWTEXT(VOL MA(VOL,5)*2ANDV V34*3ANDC REF(C,1)*1.05,V,'天'),COLORCYAN;
DRAWTEXT(VOL MA(VOL,5)/2ANDV V12/2,(V5+V)/2,'地'),COLORBLUE;
DRAWTEXT(CROSS(C,C6)ANDV V5*1.2ANDV V12*1.2ANDZZ 2ANDC H*0.975,V,'吸'),COLORRED;
DRAWTEXT(CROSS(C6,C)ANDV V5*1.2ANDV V12*1.2,V,'出'),COLORGREEN;
WJ:=(HIGH+LOW+CLOSE)/3;V1:=IF(HIGH=LOW,1,HIGH-MAX(OPEN,CLOSE));V2:=IF(HIGH=LOW,1,MAX(CLOSE,OPEN)-WJ);
V3:=IF(HIGH=LOW,1,MIN(OPEN,CLOSE)-LOW);V4:=IF(HIGH=LOW,1,WJ-MIN(CLOSE,OPEN));
V5:=VOL/IF(HIGH=LOW,4,HIGH-LOW);V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);
买入量:(V9+V8),STICK,LINETHICK7,COLORRED;
卖出量:-(V6+V7),STICK,LINETHICK7,COLORBLUE;
差:(V9+V8)-(V6+V7),COLORWHITE,STICK,LINETHICK3;日差占流通盘比:买卖差/CAPITAL*100,COLOR0099FF,POINTDOT;
买卖总差:SUM(买卖差,60),COLORYELLOW,LINETHICK2;
通达信新版成交量指标公式截图