以下是通达信源码和截图
通达信成交量换手率源码:
均换手率:ma(/CAPITAL*100,5),COLORFFFFFF,NODRAW;
虚拟成交量:IF(CURRBARSCOUNT=1ANDPERIOD=5,VOL*210/FROMOPEN,DRAWNULL),NODRAW;
stICKLINE(CURRBARSCOUNT=1ANDPERIOD=5,虚拟成交量,0,2,-1),COLOR00C0C0;
总量:VOL,NODRAW;
TJ1:=H=LANDC REF(C,1)ORC REF(C,5)ORC REF(C,9)ORC REF(C,17);
TJ2:=H=LANDC REF(C,1)ORC REF(C,5)ORC REF(C,9)ORC REF(C,17);
EE:=IF(TJ1,0.0001,IF(TJ2,-0.0001,0)){对付一字,并求极限};
JGL_DTC:=(C-OPEN+EE)/(2*(H-L)+Abs(C-O)+3*0.0001);
主买:VOL*(1+JGL_DTC)/2,COLORRED,NODRAW{主动买};
主卖:VOL*(1-JGL_DTC)/2,COLORFFFF80,NODRAW{主动卖};
MAVOL1:MA(V,5)COLORWHITE;
MAVOL2:MA(V,55)COLORYELLOW;
MAVOL3:MA(V,135)COLORGREEN;
DG1:=(crOSS(MAVOL1,MAVOL2));DG2:=(CROSS(MAVOL1,MAVOL3));
DRAWICON(DG1,VOL*1.05,1);
DRAWICON(DG2,VOL*1.1,13);
STICKLINE(C =REF(C,1)ANDMAVOL1 MAVOL3ANDV MAVOL1,VOL,0,7,0),COLOR333333;
STICKLINE(C REF(C,1)ANDMAVOL1 MAVOL3ANDV MAVOL1,VOL,0,7,0),COLOR333333;
STICKLINE(IF(BARSCOUNT(C)=1,C O,C REF(C,1)),0,VOL,2,0),COLOR880000;
STICKLINE(IF(BARSCOUNT(C)=1,C O,C REF(C,1)),0,VOL,1,0),COLORBB0000;
STICKLINE(IF(BARSCOUNT(C)=1,C O,C REF(C,1)),0,VOL,0.5,0),COLORDD0000;
STICKLINE(IF(BARSCOUNT(C)=1,C O,C REF(C,1)),0,VOL,0.25,0)COLORFF0000;
STICKLINE(IF(BARSCOUNT(C)=1,C =O,C =REF(C,1)),0,VOL,2,0),COLOR008800;
STICKLINE(IF(BARSCOUNT(C)=1,C =O,C =REF(C,1)),0,VOL,1,0),COLOR00AA00;
STICKLINE(IF(BARSCOUNT(C)=1,C =O,C =REF(C,1)),0,VOL,0.5,0),COLOR00DD00;
STICKLINE(IF(BARSCOUNT(C)=1,C =O,C =REF(C,1)),0,VOL,0.25,0),COLOR00FF00;
STICKLINE(主买 0,0,主买,2,0),COLOR000088;
STICKLINE(主买 0,0,主买,1,0),COLOR0000AA;
STICKLINE(主买 0,0,主买,0.5,0),COLOR0000DD;
STICKLINE(主买 0,0,主买,0.25,0),COLOR0000FF;
IF(VOL/MA(VOL,60)*100 100,VOL,VOL/0),STICK,COLORWHITE;
量增价平转阳:=VOL REF(V,1)ANDABS(C-REF(C,1))/REF(C,1) =0.005;
量增价升买入:=VOL REF(V,1)ANDC REF(C,1);
量平价升续买:=ABS(VOL-REF(VOL,1))/REF(VOL,1) =0.05ANDC REF(C,1);
量减价升持有:=VOL REF(V,1)ANDC REF(C,1);
量减价平警戒:=VOL REF(V,1)ANDABS(C-REF(C,1))/REF(C,1) =0.005;
量减价跌卖出:=VOL REF(V,1)ANDC REF(C,1);
量平价跌续卖:=ABS(VOL-REF(VOL,1))/REF(VOL,1) =0.05ANDC REF(C,1);
量增价跌弃卖:=VOL REF(V,1)ANDC REF(C,1);
量梯级递增上:=VOL REF(V,1)ANDREF(V,1) REF(VOL,2);
量梯级递减下:=VOL REF(V,1)ANDREF(V,1) REF(VOL,2);
ZGD:=HHV(V,80)*1;
ZGD2:=CONST(ZGD);
情况1:=CONST(IF(量增价平转阳,1,0));
情况2:=CONST(IF(量增价升买入,1,0));
情况3:=CONST(IF(量平价升续买,1,0));
情况4:=CONST(IF(量减价升持有,1,0));
情况5:=CONST(IF(量减价平警戒,1,0));
情况6:=CONST(IF(量减价跌卖出,1,0));
情况7:=CONST(IF(量平价跌续卖,1,0));
情况8:=CONST(IF(量增价跌弃卖,1,0));
情况9:=CONST(IF(量梯级递增上,1,0));
情况10:=CONST(IF(量梯级递减下,1,0));
DRAWTEXT(情况1=1ANDCURRBARSCOUNT=60,ZGD2-(ZGD2*0.1),'量增价平'),COLORMAGENTA;
DRAWTEXT(情况2=1ANDCURRBARSCOUNT=60,ZGD2-(ZGD2*0.4),'量增价升'),COLORMAGENTA;
DRAWTEXT(情况3=1ANDCURRBARSCOUNT=60,ZGD2-(ZGD2*0.2),'量平价升'),COLORMAGENTA;
DRAWTEXT(情况4=1ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.3),'量减价升'),COLORMAGENTA;
DRAWTEXT(情况5=1ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.1),'量减价平'),COLORMAGENTA;
DRAWTEXT(情况6=1ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.3),'量减价跌'),COLORMAGENTA;
DRAWTEXT(情况7=1ANDCURRBARSCOUNT=60,ZGD2-(ZGD2*0.2),'量平价跌'),COLORMAGENTA;
DRAWTEXT(情况8=1ANDCURRBARSCOUNT=60,ZGD2-(ZGD2*0.4),'量增价跌'),COLORMAGENTA;
DRAWTEXT(情况9=1ANDCURRBARSCOUNT=60,ZGD2-(ZGD2*0.5),'量梯递增'),COLORMAGENTA;
DRAWTEXT(情况10=1ANDCURRBARSCOUNT=70,ZGD2-(ZGD2*0.5),'量梯递减'),COLORMAGENTA;
V,VOLSTICK;
换手:VOL/CAPITAL*100,COLORYELLOW;
预计换手:IF(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1))/CAPITAL*100,0);
STICKLINE(DYNAINFO(7)=CLOSEANDDYNAINFO(10)=AMOUNT,VOL,MAX(VOL,DYNAINFO(17)*REF(MA(VOL,5),1)),7,-21),color66cccc;
十日换手:SUM(换手,10);
VAR1:=VOL/((HIGH-LOW)*2-ABS(CLOSE-OPEN));
主买:IF(CLOSE OPEN,VAR1*(HIGH-LOW),IF(CLOSE OPEN,VAR1*((HIGH-OPEN)+(CLOSE-LOW)),VOL/2)),COLORRED,POINTDOT;
主卖:IF(CLOSE OPEN,VAR1*((HIGH-CLOSE)+(OPEN-LOW)),IF(CLOSE OPEN,VAR1*(HIGH-LOW),VOL/2)),COLOR00FF00,POINTDOT;
买比:主买/Vol*100,COLORRED;
STICKLINE(C ref(c,1),0,v,8,0),COLOR999900;
STICKLINE(C =ref(c,1),0,v,8,0),COLOR0000E5;
STICKLINE(vol,0,vol,6,0),COLOR555500;
STICKLINE(vol,0,vol,5,0),COLOR888800;
STICKLINE(vol,0,vol,4,0),COLORAAAA00;
STICKLINE(vol,0,vol,3,0),COLORCCCC00;
STICKLINE(vol,0,vol,2,0),COLOREEEE00;内容来自dedecms
STICKLINE(vol,0,vol,1,0),COLORFFFF00;
STICKLINE(主买,0,主买,6,0),COLOR000055;
STICKLINE(主买,0,主买,5,0),COLOR000088;
STICKLINE(主买,0,主买,4,0),COLOR0000AA;
STICKLINE(主买,0,主买,3,0),COLOR0000CC;
STICKLINE(主买,0,主买,2,0),COLOR0000EE;
STICKLINE(主买,0,主买,1,0),COLOR0000FF;
STICKLINE(换手 25,0,V*-1.1,5,0),COLORGREEN;
STICKLINE(换手 2AND换手 =3,0,V*-1,7,0),colorwhite;
STICKLINE(换手 3AND换手 =5,0,V*-1,7,0),colorFF0000;
STICKLINE(换手 5AND换手 =8,0,V*-1,7,0),coloryellow;
STICKLINE(换手 8AND换手 =15,0,V*-1,7,0),colorFF22EE;
STICKLINE(换手 15,0,V*-1,7,0),color0000FF;
换手率
温和:2%——3%
活跃:3%——5%
带量:5%——8%
放量:8%——15%
巨量:15%——25%
神经:大于25%
N:=5;M:=13;
获利%:WINNER(CLOSE)*100,NODRAW,COLORWHITE;
V1:=ABS((2*CLOSE+HIGH+LOW)/4-MA(CLOSE,20))/MA(CLOSE,20);
V2:=(1-7/100)*(DMA(CLOSE,V1));
V3:=(1+7/100)*(DMA(CLOSE,V1));
V5:=MA((LOW+HIGH+CLOSE)/3,5);
支撑:REFDATE(V2,DATE),POINTDOT,LINETHICK3,COLORCC66FF;
阻力:REFDATE(V3,DATE),POINTDOT,LINETHICK3,COLORGREEN;
MA1:=MEMA(CLOSE,5);
MA2:=ATAN((MA1/REF(MA1,1)-1)*100)*180/3.1416;
MA3:=IF(MA2 0,MA2,MA2);
MA5:MA(CLOSE,N),COLOR888899;
MA13:MA(CLOSE,M),COLORFF9900,LINETHICK2;
VAR1:=CLOSE=HHV(C,4)AND(REF(C,1) =REF(C,2)ORREF(C,1) =REF(C,3))ORREF(C,1)=HHV(C,4)ANDCLOSE =REF(C,2)ORREF(C,2)=HHV(C,4)ANDREF(C,3)=LLV(C,4)ANDC =REF(C,1)ORREF(C,3)=HHV(C,4)ANDC =REF(C,1)ANDC =REF(C,2);
VAR2:=CLOSE=HHV(C,4)ANDREF(C,1)=LLV(C,4);
VAR3:=CLOSE=LLV(C,4)AND(REF(C,1) REF(C,2)ORREF(C,1) REF(C,3))ORREF(C,1)=LLV(C,4)ANDC REF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1)=HHV(C,4)ANDC REF(C,1)ORREF(C,3)=LLV(C,4)ANDC REF(C,1)ANDC REF(C,2);
VAR4:=REF(C,1)=LLV(C,4)ANDC =REF(C,2)ORREF(C,2)=LLV(C,4)ANDREF(C,1) =REF(C,3)ANDREF(C,2) REF(C,4)ANDC =REF(C,1);
VAR5:=REF(C,1)=HHV(C,4)ANDC REF(C,2)OR(REF(C,2)=HHV(C,4)ANDREF(C,1) REF(C,3)ORREF(C,3)=HHV(C,4)ANDREF(C,1) REF(C,2))ANDREF(C,2) =REF(C,4)ANDC REF(C,1);
通达信成交量换手率截图