通达信目前最理想的成交量指标公式(源码)
LC:=REF(C,1);
VVA:=IF(C>REF(C,1),V,-V);
OBV18:=SUM(IF(C=REF(C,1),0,VVA),18);
XXV:=IF(C>LC,SUM(V,18),0),COLOR0000CC;
YYV:=IF(C
SS1:=IF(C
RSI:=SMA(MAX(C-LC,0),6,1)/SMA(ABS(C-LC),6,1)*150-30,COLORCC9900;
K9:=SMA((C-LLV(L,9))/(HHV(H,9)-LLV(L,9))*100,3,1),COLOR00CCCC;
D9:=SMA(K9,3,1),COLOR00CC00;
J:=3*K9-2*D9,COLORFF3399,LINETHICK1;
VAR01:=DYNAINFO(17)*REF(MA(V,5),1);
VAR02:=DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT;
预V1:=IF(DYNAINFO(7)=C AND DYNAINFO(10)=AMOUNT,VAR01,VAR02);
预量:=IF(V>=预V1,V,预V1);
VA:=IF(C>REF(C,1),预量,-预量);
换手率:10000*VOL/FINANCE(7),NODRAW,COLORRED;
周换手率:SUM(VOL/CAPITAL*100,5);
月换手率:SUM(VOL/CAPITAL*100,20);
WOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,WOL,0,3,-1),COLORFFFFFF;
VVOL:=IF(CURRBARSCOUNT=1 AND PERIOD=5,VOL*240/FROMOPEN,DRAWNULL),NODRAW;
STICKLINE(CURRBARSCOUNT=1 AND PERIOD=5,VVOL,0,-1,-1),COLOR00C0C0;
VOLUME:VOL,VOLSTICK;
主力启动线:MA(VOLUME,5),COLORRED;
主力洗盘线:MA(VOLUME,35),COLORYELLOW;
生命线:=MA(VOLUME,10);
资金异动线:MA(VOLUME,135),COLORGREEN;
AA:=VOL>=REF(V,1)*1.91 && C>REF(C,1);
AAA:=VOL>=REF(V,1)*4 && C>REF(C,1);
AA1:=VOLAA2:=VOLAA3:=ABS(VOL-REF(VOL,1))/REF(VOL,1)<=0.06;
AA4:=VOL<=REF(V,1)*0.51 ;
AA5:=COUNT(CLOSE>REF(CLOSE,1),2)=2 AND COUNT(VOLSTICKLINE(AA,0,V,2,0),COLORYELLOW;
STICKLINE(AAA,0,V,1,0),COLORMAGENTA;
STICKLINE(AA1,0,V,2,0),COLORMAGENTA;
STICKLINE(AA2,0,V,2,0),COLORRED;
STICKLINE(AA3,0,V,2,0),COLORWHITE;
STICKLINE(AA4,0,V,2,0),COLOR22A6E6;
STICKLINE(AA5,0,V,2,0),COLORGREEN;
地量:=VOL<=REF(LLV(VOL,13),1);
XG:=COUNT(地量>0,3)=3;
DRAWTEXT(XG ,VOL*0.5,'买'),COLORYELLOW;
VAR2:=1*AMOUNT;
三十日天量:=HHV(VAR2,30)=VAR2;
六十日天量:=HHV(VAR2,60)=VAR2;
百日天量:=HHV(VAR2,100)=VAR2;
一年天量:=HHV(VAR2,250)=VAR2;
STICKLINE(三十日天量,VOLUME,VOLUME*0.7,1,0),COLORMAGENTA;
DRAWTEXT(三十日天量,VOL*0.70,'----30'),COLORMAGENTA;
STICKLINE(六十日天量,VOLUME,VOLUME*0.7,1.5,0),COLORWHITE;
DRAWTEXT(六十日天量,VOL*0.8,'----60'),COLORWHITE;
STICKLINE(百日天量,VOLUME,VOLUME*0.7,1.5,0),COLORGREEN;
DRAWTEXT(百日天量,VOL*0.88,'----100'),COLORGREEN;
STICKLINE(一年天量,VOLUME,VOLUME*0.7,1,0),COLORRED;
DRAWTEXT(一年天量,VOL*1.0,'----250'),COLORRED;
获利盘:=WINNER(C)*100;
VARA2:=LLV(LOW,10);
VARA3:=HHV(HIGH,25);
动力线:= EMA((CLOSE-VARA2)/(VARA3-VARA2)*4,4);
BB5:=获利盘<=1;
STICKLINE(BB5,0,V,0.5,0),COLORBLUE;