通达信精准选股公式:
条件选股公式源码: 年认同价:=MA(C,240);
价格中枢:=(SUM(年认同价,0)/(BARSSINCE(年认同价>0)+239)); 箱顶:=价格中枢*1.2; 箱底:=价格中枢*0.8;
毛利润率:=FINANCE(21)/FINANCE(20); 成长价值:=年认同价*(1+毛利润率); 收益价值:=年认同价+FINANCE(33); 回调认同:=EMA(EXPMA(C,20),13);
多头:=(回调认同>REF(回调认同,1))AND(成长价值>REF(成长价值,1))AND(收益价值>REF(收益价值,1))AND(DYNAINFO(7)>0); 回调条件:=COUNT(C<回调认同,5)>=3;
回调突破:=(REF(C,1)<=REF(回调认同,1))AND(C>回调认同)AND(回调条件)AND 多头; 成长条件:=COUNT(C<成长价值,5)>=3;
成长突破:=(REF(C,1)<=REF(成长价值,1))AND(C>成长价值)AND(成长条件)AND 多头; 收益条件:=COUNT(C<收益价值,5)>=3;
收益突破:=(REF(C,1)<=REF(收益价值,1))AND(C>收益价值)AND(收益条件)AND 多头; 箱底条件:=COUNT(C<箱底,5)>=3;
箱底突破:=(REF(C,1)<=REF(箱底,1))AND(C>箱底)AND(箱底条件)AND 多头; 价格条件:=COUNT(C<价格中枢,5)>=3;
价格突破:=(REF(C,1)<=REF(价格中枢,1))AND(C>价格中枢)AND(价格条件)AND 多头; 箱顶条件:=COUNT(C<箱顶,5)>=3;
箱顶突破:=(REF(C,1)<=REF(箱顶,1))AND(C>箱顶)AND(箱顶条件)AND 多头; 突破买点:(回调突破+成长突破+收益突破+箱底突破+价格突破+箱顶突破);
专买老鼠仓
{老鼠仓}
AA1:=AMOUNT/V; BB1:=L CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L FF1:=BB1 AND CC1 AND DD1 AND EE1; DRAWTEXT(FF1,(LOW* 0.97),'老鼠仓'),COLOR4080FF; 老鼠仓是个很不错的指标,信号发出一般都在一个波段的底部起涨之时。 根据本人的实践,使用指标时候要注意几点: 1 该指标可以添加到任何一个主图里面去,比如MA均线什么的。 2 出现信号当天买进股票,第二天收阳继续持股,直到出阴为止。 3 第二天出阴考虑卖出,非常适合短线操作! 老鼠仓(选股公式) AA1:=AMOUNT/V; BB1:=L CC1:=(C-REF(C,1))/REF(C,1)*100>1.2; DD1:=L 老鼠仓:BB1 AND CC1 AND DD1 AND EE1; 理想选股(选股公式) VAR1:=MA((LOW+HIGH+CLOSE)/3,5); VAR2:=CLOSE=HHV(C,4) AND REF(C,1)=LLV(C,4); VAR3:=REF(C,1)=LLV(C,4) AND C>=REF(C,2) OR REF(C,2)=LLV(C,4) AND REF(C,1)<=REF(C,3) AND REF(C,2)=REF(C,1); VAR4:=VAR1>REF(VAR1,1) AND REF(VAR1,1) VAR5:=LOW VAR6:=VAR5 AND COUNT(VAR4,2); VAR7:=VAR6 AND NOT(REF(VAR6,1)); VAR8:=100*EMA(EMA(C-REF(C,1),6),6)/EMA(EMA(ABS(C-REF(C,1)),6),6); VAR9:=EMA(MA(C,13),13); VAR10:=FILTER((LLV(VAR8,2)=LLV(VAR8,7) AND COUNT(VAR8<0,2) AND CROSS(VAR8,MA(VAR8,2)))=1,5); VAR11:=SMA(EMA((C-REF(C,1))/REF(C,1),5)*100,3,1)*10; VAR12:=FILTER(((CROSS(VAR11,0) OR CROSS(C,VAR9)) AND VAR10)=1,3); VAR13:=MA(C,18)>=REF(MA(C,18),3) AND CROSS(C,MA(C,18)); RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100; K:=SMA(RSV,3,1); D:=SMA(K,3,1); J:=3*K-2*D; 金叉:=CROSS(J,D); 死叉:=CROSS(D,J); 买1:=(VAR12 OR VAR13) AND VAR10; 买2:=(VAR12 OR VAR13) AND VAR3; 买3:=(VAR12 OR VAR13) AND VAR2; 买4:=(VAR2 AND VAR10) OR (VAR3 AND VAR10); 买5:=(金叉 AND VAR3) OR (金叉 AND VAR2) OR (金叉 AND VAR10); ST:=EXIST(C/REF(C,1)>1.06,50); 输出:=(买1 OR 买2 OR 买3 OR 买4 OR 买5 OR VAR7) AND ST; MA5:=MA(C,5),COLORWHITE; X:=(3*C+L+O+H)/6; 多空 线:=(20*X+19*REF(X,1)+18*REF(X,2)+17*REF(X,3)+16*REF(X,4)+15*REF(X,5)+14*REF(X,6) +13*REF(X,7)+12*REF(X,8)+11*REF(X,9)+10*REF(X,10)+9*REF(X,11)+8*REF(X,12) +7*REF(X,13)+6*REF(X,14)+5*REF(X,15)+4*REF(X,16)+3*REF(X,17)+2*REF(X,18)+ REF(X,20))/210,COLORFF00FF,LINETHICK1; AB:=DRAWLINE(HIGH>=HHV(HIGH,10),HIGH,LOW<=LLV(LOW,3),HHV(HIGH,3),1),COLORYELLOW; CROSS(MA5,多空线) and CROSS(C,AB) and 输出 ; 点石成金(选股公式) KS13:=(CLOSE-MA(CLOSE,13))/MA(CLOSE,13)*(-100); RSV:=(CLOSE-LLV(LOW,13))/(HHV(HIGH,13)-LLV(LOW,13))*100; FASTK:=SMA(RSV,3,1);K:=SMA(FASTK,3,1);D:=SMA(K,5,1); Var1:=CLOSE/MA(CLOSE,40)*100<76; Var2:=CLOSE/MA(CLOSE,60)*100<74; Var3:=HIGH>LOW*1.051; Var4:=Var3 AND COUNT(Var3,5)>1; Var4 AND (Var1 OR Var2) AND REF(KS13,1)>=10 AND REF(KS13,1)/KS13>=1.13 AND CLOSE/REF(CLOSE,1)>=1.02; 牛市绝底(选股公式) VAR1:=REF(CLOSE,1); VAR2:=((SMA(MAX((CLOSE - VAR1),0),7,1) / SMA(ABS((CLOSE - VAR1)),7,1)) * 100); VAR3:=((SMA(MAX((CLOSE - VAR1),0),13,1) / SMA(ABS((CLOSE - VAR1)),13,1)) * 100); VAR4:=((100 * (HHV(HIGH,48) - LOW)) / HHV(HIGH,48)); VAR5:=((100 * (HIGH - LLV(LOW,48))) / LLV(LOW,48)); 牛市绝底:VAR2 < 15 AND VAR3 < 20 AND (VAR2 + VAR3) > 20 AND VAR4 > 40 AND BARSCOUNT(CLOSE) > 47; 飞弹一号(选股公式) var1:=c/ma(c,40)*100<78; var2:=c/ma(c,60)*100<74; var3:=h>=l*1.051; var4:=var3 and count(var3,5)>=2; xg:var4 and (var1 or var2) and count(h=l and c=o and c 牛魔无双(选股公式) A4:=(HIGH-LOW)/HIGH*100+(C-REF(C,1))/REF(C,1)*100; B4:=EMA(MA(A4,50),5); c4:=B4>LLV(B4,5)*1.01 AND REF(B4,1) d4:=LLV(LOW,5)=LLV(LOW,50) AND LLV(LOW,5) 火牛神功(选股公式) Var1:=DMA(CLOSE,VOL/SUM(VOL,34)); Var2:=DMA(CLOSE,VOL/SUM(VOL,13)); Var3:=(CLOSE-Var1)/Var1*100; Var4:=(CLOSE-Var2)/Var2*100; Var4<=-12 AND Var3<=-19 ;