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