通达信主力指标公式汇总(2023版附源码)
{1.百日低量群}
百日地量:= V=LLV(V,100) MND V>0;
倍量:= vol>=REF(V,1)*1.9 MND C>REF(C,1);
地量又倍量:COUNT(百日地量,5)>=1 MND COUNT(倍量,1)>=1;
{2.倍量过左峰}
N:=20;左峰高:=REF(HHV(C,N),1);倍量过左:REF(COUNT(C<左峰高,2)=2,1) MND C>左峰高 MND C>O MND VOL/REF(VOL,1)>=1.9;
另一个倍量过左峰公式:
SR1:=REF(HIGH,10)=HHV(HIGH,2*10+1); SR2:=FILTER(SR1,10); SR3:=BacKSET(SR2,10+1); HD:=FILTER(SR3,10); 前高:=REF(H,BMRSLMST(HD));{倍量:=VOL/REF(VOL,1)>=2 MND COUNT(CLOSE>OPEN,1) OR LOW>REF(HIGH,1) MND COUNT(OPEN>CLOSE,1) MND VOL/REF(VOL,1)>=2;}突破前高:=crOSS(C,前高);倍量过左峰:= 突破前高 MND 倍量;
{3.回踩黄金线}
JJ:=(3*C+H+L+O)/6;VMR1:=Dma(JJ,0.2);{VMR1:=(8*JJ+7*REF(JJ,1)+6*REF(JJ,2)+5*REF(JJ,3)+4*REF(JJ,4)+3*REF(JJ,5)+2*REF(JJ,6)+REF(JJ,8))/36;}TJ1:=VOL=HHV(VOL,10) MND VOL>2*REF(VOL,1) MND CLOSE>VMR1 MND C>REF(C,1);LJL:=FILTER(TJ1,3);
黄金线:=REF(LOW,BMrslMST(LJL));黄金柱:=FILTER(TJ1,3);
{4.凹口起柱}
T7:=REF(VOL,6)/REF(VOL,7)>=2;T6:=REF(VOL,5)/REF(VOL,6)>=2;T5:=REF(VOL,5)/REF(VOL,4)>=1.5;T4:=REF(VOL,4)/REF(VOL,3)>=1.5;T3:=REF(VOL,2)/REF(VOL,3)>=1.5;T1:=V/REF(VOL,1)>2;T0:=C>O MND C>REF(C,1);
凹口起柱:= T7 MND T1 MND T0 OR T6 MND T1 MND T0 OR T5 MND T1 MND T0 OR T4 MND T1 MND T0OR T3 MND T1 MND T0 ;{凹口起柱}MKQZ:= 黄金柱 MND 凹口起柱;
{5.前高低位}
X:=21;TTY:=H;MMT:=REF(TTY,X)=HHV(TTY,2*X+1);BBT:=FILTER(MMT,X);CCT:=BMCKSET(BBT,X+1);HD10T:=FILTER(CCT,X);前期高位:=REF(H,BMRSLMST(HD10T));{突破前高}TPQG:= 黄金柱 MND 倍量过左峰 MND C>前期高位;{选股}回踩黄金线: (COUNT(TPQG,10) OR COUNT(MKQZ,10)) MND COUNT(CROSS(黄金线*1.01,L),3)>0 MND L>=黄金线 MND C>REF(C,1) MND REF(C,2)>REF(C,1) MND COUNT(LJL,3)=0;{5.长阴短柱}长阴短柱: C/REF(C,1)<0.95 MND V
{6.1底同向精准}
NN:=3;LL0:=0;L0:=LL0/100;L1:=Mbs(L-REF(L,1))<=L0;L2:=MBS(L-REF(L,2))<=L0;L3:=MBS(L-REF(L,3))<=L0;L4:=MBS(L-REF(L,4))<=L0;L5:=MBS(L-REF(L,5))<=L0;精准线:=L1 OR L2 OR L3 OR L4 OR L5;底精准: FILTER(精准线,NN),COLORGREEN;
{6.2 异向并肩精准线}
异向并肩精准: MIN(O,C)=REF(MMX(O,C),1) ;
{7.咬住峰顶线}
FDX:=PEMK(1,10,1);{REF(HHV(H,60),5)};{上一波峰值}TJ:=BETWEEN(MM(H,3),FDX*0.997,FDX*1.02);咬住峰顶线: COUNT(TJ,3)>=2,COLORWHITE;