w1：ma(c,5)ref(ma(c,5),1)；60，n横盘天数，n1横盘的上下幅度REF(((HHV(H,N)-LLV(L,N))/LLV(L,N)),1)=(n1/100)and ref(v,1)ref(ma(v,5),1)and cross(v,ma(v,5))and cross(v,ma(v,10))；81，条件：1：假设大前天创最近新高,要求这天涨幅是超过7%的大阳线,且创最近一个月的新高.2：那么前天,昨天,今天都收小K线,要求小K线实体xg：ref(c,3)/ref(c,4)1.07 and ref(c,3)=hhv(c,20)and count(abs((c-ref(c,1))/ref(c,1)0.02,3)))=3；
mACD公式“防狼术”条件选股公式。V00:= HIGH<REF(HIGH,1) AND LOW<REF(LOW,1);V04:= REF(HIGH,2) <HIGH AND REF(LOW,2) <LOW AND REF(HIGH,2) >REF(HIGH,1) AND REF(LOW,2) <REF(LOW,1);{最近下跌天数}N2:=31;{上涨天数}N3:=55;{平台高点天数}LL:=LLV(L,N1);HH:=REF(HHV(H,N2),N1);H0:=REF(HHV(H,N3),N1+N2);ZF:=(C-REF(C,1))/REF(C,1)*100;缠论三买点:HH=HHV(H,N2+N1) AND LL>=H0 AND SUM(ZF>9.9,30)>1 OR SUM(ZF>8.9,30)>1;

cross(ref(ma(c,5),1),ref(ma(c,10),1)) and c>ma(c,5);xg:ref(c,1)>ma(c,20) and cross(ma(c,20),c);xg:(ref(c,3)-ref(c,4))/ref(c,3)>0.05 and count((h-l)/l.xg:cross(c,ma(c,10)) and cross(c,ma(c,20)) and cross(c,ma(c,30)) and v>ref(v,1)*3;xg:ma(c,30)>ref(ma(c,30),1);count(abs(c-ref(c,1)/ref(c,1))ref(c,1),3)=3;xg:ma(c,20)>ref(ma(c,20),1);XG:(HHV(C,5)-LLV(C,5))/LLV(C,5)REF(V,1)*2 AND C/REF(C,1)>1.05;
XG:REF(T1,1);MACD金叉死叉的日期的公式。a and count(a,barslast(macd.macd>0))=1 and macd.macd涨停后的第一次跌破5日线公式。XG:C>O AND V>REF(V,1) AND REF(O>C,1) AND REF(C>O,2) AND REF(V,2)>REF(V,1) AND MA(C,20)>REF(MA(C,20),1);XG:C>O AND REF(MIN(C,O),1)> C AND O-L>2*(H-C) AND REF(L,1)>H AND C股价上穿三线10日线向上的选股公式。XG:CROSS(C,MA5) AND CROSS(C,MA10) AND CROSS(C,MA20) AND MA10>REF(MA10,1);
AA7:=MA((AA4*0.96+AA5*96+AA6*0.96+AA1*0.558+AA2*0.558+AA3*0.558)/6,17);AA8:=MA((AA4*1.25+AA5*1.23+AA6*1.2+AA1*0.55+AA2*0.55+AA3*0.65)/6,17);AA9:=MA((AA4*1.3+AA5*3+AA6*1.3+AA1*0.68+AA2*0.68+AA3*0.68)/6,17);MACD6:= 2*(DIFF6-DEA6);MA(CLOSE,30)>REF(MA(CLOSE,30),1) and diff>0 and dea>0 AND MACD>REF(MACD,1) and b;MA(CLOSE,30)>REF(MA(CLOSE,30),1) AND DIFF>0 AND DEA>0 AND MACD>REF(MACD,1) AND B;
count(c<>72、今天收盘价在昨天收盘价-2%~2%之间c/ref(c,1)>0.98 and c/ref(c,1)<>73、收盘价在5日均线以上5天 count(c>ma(c,5),5)=5;74、N天前换手率大于8% REF(VOL/CAPITAL*100,N)>8;75、一条均线18MA 股价上涨后“缩量”回调到18MA XG:COUNT(V<>MA(C,18); N “缩量”回调的天数76、1.昨日量是n天以来最低量（n可调）；(MA30>REF(MA30,1)) AND (REF(MA30,1)<=ref ="">REF(C,2)>REF(O,2) AND REF(C,1)
（为大家节约时间&nbsp...[转载]通达信公式  125个选股公式，解决选股难题！vol/ma(vol,10)3，两天内,累计下跌等于或超过20%选股.xg:(ref(c,2)-c)/c>0.2;4，股价是25天以来新低.xg:c5，选股：ＥＸＰＭＡ　５日与１０日金叉　并且第二天的收盘价在ＥＸＰＭＡ的５日线以上．cross(ref(ema(c,5),1),ref(ema(c,10),1)) and c>ema(c,5);6，请编买入公式：1. 将BIAS指标的参数设置为24日，将KD指标的参数设置为9；
2、当日最低价在20日均线上下0.05%内，收盘价在均线上方 abs(l-ma(c,20))<0.005and c>ma(c,20);3、20日均线相差M个百分点 w1:abs(c-ma(c,20)/ma(c,20)*1004、股价回调到20日均线abs(c-ma(c,20))/ma(c,20)<0.005;6、当日收盘价突破20日均线5% cross(c,ma(c,20)*1.05);7、股价上涨后“缩量”回调到20MA：XG:COUNT(VMA(C,20); N“缩量”回调的天数8、缩量：vol/ma(vol,10)<0.3;1、20日均线走平或走高 xg:ma(c,20)>ref(ma(c,20),1);

A11:=LLV(C,A1)<REF(LLV(C,A1+1),A1+1) AND LLV(DIFF,A1)>REF(LLV(DIFF,A1+1),A1+1);LLV(DIFF,A1)>REF(LLV(DIFF,A1+A2+2),A1+A2+2);DIBL1:=(A11 OR A22 OR A33 OR A44 OR A55) AND DIFF<0 AND DIFF<DEA AND DIFF>REF(DIFF,1)AND DIFF>REF(DIFF,2);B11:=HHV(C,B1)>REF(HHV(C,B1+1),B1+1) AND HHV(DIFF,B1)<REF(HHV(DIFF,B1+1),B1+1);DINGBL1:=(B11 OR B22 OR B33 OR B44 OR B55) AND DIFF>0 AND DEA<DIFF AND DIFF<REF(DIFF,1)
GT:=DEA>REF(DEA,1) AND REF(DEA,1)<REF(DEA,2);GT2:=DEA<REF(DEA,1) AND REF(DEA,1)>REF(DEA,2);
xg:c>ref(c,1)v<ref(v,1)ref(v,1)>ref(v,2)*2;83，5日均线倾角大于60度---经典X:(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926)>60;也可以这样：X:(ATAN((EMA(C,5)/REF(EMA(C,5),1)-1)*100)*180/3.14115926)>60;利用指标排序：X:(ATAN((MA(C,5)/REF(MA(C,5),1)-1)*100)*180/3.14115926); 84，"中阴之后，跳拉阳" c/ref(c,1)>1.05;127，30日线开始上翘---- ㊣MA30:MA(C,30);(MA30>REF(MA30,1))(REF(MA30,1)<=REF(MA30,2));
DRAWTEXT(FILTER(B1>0,5),diff,''<-底背离''),COLORyellow;A5:=BARSLAST(ref(cross(dea,diff),1));B2:=ref(h,A5+3)<ref(h,3) and ref(diff,A5+3)>ref(diff,3) and cross(dea,diff);DRAWTEXT(FILTER(B2>0,5),diff,''<-顶背离''),COLORgreen;REF(CLOSE,T1)>CLOSE AND REF(DIFF,T1)<DIFF ANDREF(MACD,1)<MACD AND ALL(DIFF<0,T) AND T1>15 ANDCOUNT(JC,T)>=1;AA1:=DIFF<0 AND DIFF>=DEA AND DEA>REF(DEA,1)AND MACD>REF(MACD,1);
aa:=cross(ma(c,5),ma(c,20)) and cross(ma(c,5),ma(c,30)) and cross(ma(c,5),ma(c,60));老鼠仓:bb1 and cc1 and dd1 and ee1; ===================================MA5:MA(CLOSE,5),COLORF00FF0;MA13:MA(CLOSE,13),COLORWHITE;MA60:MA(CLOSE,60),LINETHICK2,COLORYELLOW;MA90:MA(C,90),LINETHICK2,COLORF0F000;MA120:MA(CLOSE,120),COLOR00FF00;===================================这一段是画5、13、60、90、120均线。
VAR01:4*SMA((CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100,5,1)-3*SMA(SMA((CLOSE-LLV(LOW,n))/(HHV(HIGH,n)-LLV(LOW,n))*100,5,1),3.2,1),COLOR0099FF,LINETHICK1;
ma(v,13)>ref(ma(v,13),1);MA20穿120：cross(ma(c,20),ma(c,30)) or cross(ma(c,20),ma(c,60)) or cross(ma(c,20),ma(c,120)) ;（059）、多头排列 MA(c,5)>MA(c,10) and MA(c,20)<MA(c,10) and MA(c,5)>ref(MA(c,5),1) and MA(c,10)>ref(MA(c,10),1)and MA(c,20)>ref(MA(c,20),1)空头排列 MA(c,5)<MA(c,10) and MA(c,20)>MA(c,10) and MA(c,5)<ref(MA(c,5),1) and MA(c,10)<ref(MA(c,10),1)and MA(c,20)<ref(MA(c,20),1)
5、MACD指标图形为空中加油技巧最好.A4:=MA(C,4);A10:=MA(C,10);A20:=MA(C,20);A62:=MA(C,62);A133:=MA(C,133);B1:=A10>REF(A10,1)*1.003 AND A20>REF(A20,1)*1.003 AND(A10-A20)<C/10;B2:=C<A10 AND C>A20 AND A4<=A10;B3:=A62>=REF(A62,1) AND A133>=REF(A133,1);B4:=V/MA(V,10)>1.2;B1 AND B2 AND B3 AND B4;MACD指标图形为空中加油形态未编。aa:=qj1 and qj2 and qj3 and qj4;qj0 and qj1 and qj2 and qj3 and qj4;