以下是通达信条件选股公式六
{放量突破60}N:=6;AA:=SUM(C>MA(C,60),N);韩小宾:=AA=1 AND AA AND V=HHV(V,N);B1:=REF(EVERY(CB2:=(C>=MA(C,60));B3:=V=HHV(V,N);B1 AND B2 AND B3; ================================ {如影随形X}VAR1:=(CLOSE*2+HIGH+LOW)/4;SK:= EMA(VAR1,13)-EMA(VAR1,21);(SK>REF(SK,1) AND REF(SK,1)MA(VOL,10) AND VOL/REF(VOL,1)>0.9 ) ; ==================================== {MACD顶底背}{SHORT=12,LONG=26,MID=9}DIFF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);DEA:=EMA(DIFF,MID);MACD:=(DIFF-DEA)*2;{低位金:=CROSS(DIFF,DEA) AND DIFF<-0.1;}JCCOUNT:=COUNT(CROSS(DIFF,DEA),BARSLAST(DEA>=0));二次金:=CROSS(DIFF,DEA) AND DEA<0 AND COUNT(JCCOUNT=2,34)=1;A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));底背离:=REF(CLOSE,A1+1)>CLOSE AND DIFF>REF(DIFF,A1+1) AND CROSS(DIFF,DEA);A2:=BARSLAST(REF(CROSS(DEA,DIFF),1));顶背离:=REF(CLOSE,A2+1)DIFF AND CROSS(DEA,DIFF);二次金 AND { (底背离 OR 顶背离 AND} DEA<0.2; ========================================= {突破前高X}N:=IF(HHVBARS(H,150)>20,HHVBARS(H,150),0);M:=REF(N,1);M1:=REF(HHV(H,150),1);M2:=REF(LLV(L,M),1);A:=(REF(HHV(H,M),1)-REF(LLV(L,M),1))/REF(LLV(L,M),1)<=(60/100);B:=C>=REF(HHV(H,M),1);A AND B AND N=0 AND REF(N,1)>0; ======================================== {60线选股}CROSS(C,MA(C,60)) OR BETWEEN((C-MA(C,60))/MA(C,60),0,0.02) AND “MACD.MACD”>0 AND “KDJ.K”>”KDJ.D”; ========================================== {箱顶底}{CROSS(C,PEAK(CLOSE,10,1)*0.98);}CROSS(C,TROUGH(CLOSE,10,1)*1.02); ============================================ {发飚}A4:=MA(CLOSE,20);A5:=(CLOSE > MA(CLOSE,5));A6:=(MA(CLOSE,5) > MA(CLOSE,10));A7:=(CLOSE > MA(CLOSE,10));A8:=(MA(CLOSE,5) > MA(CLOSE,20));A9:=(CLOSE > MA(CLOSE,20));A10:=REF(A4,1);A11:=(A4 > A10);AVX:=(((((IF(A5,100,0) + IF(A6,100,0)) + IF(A7,100,0)) + IF(A8,100,0)) + IF(A9,100,0)) + IF(A11,100,0))/6;{VAR1:=REF(CLOSE,1);强弱方向:=SMA(MAX(CLOSE-VAR1,0),5,1)/SMA(ABS(CLOSE-VAR1),5,1)*100,COLORYELLOW;}; 买卖力道:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,3,1)-2*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,3,1);CROSS(买卖力道,70) OR (CROSS(买卖力道,50) AND AVX=100 AND C>MA(C,5) AND C>MA(C,10) AND C>MA(C,20) AND C>MA(C,30) AND C>MA(C,60)) ; ==================================== {突破在即}A1:=BARSLAST(C=HHV(C,20));A2:=REF(C,A1);A3:=CROSS(C,REF(A2,1));(COUNT(A3,5)=1 AND A3) AND C=H AND V>=MA(V,5)*2.5; =================================== {调整结束:}AA:=CROSS(MACD.DIF,MACD.DEA) AND MACD.DEA<0.2;BB:=LLV(ASR.ASR,21)>50;CC:=MACD.DIF>-1;AA AND BB AND CC AND V>REF(V,1)*1.2; ======================================= {热门股}{N:2、20、9}{N1:1、1000、26}{Z:1、20、5}QJJ:=(VOL / (((HIGH – LOW) * 2) – ABS((CLOSE – OPEN))));XVL:=(IF((CLOSE > OPEN),(QJJ * (HIGH – LOW)),IF((CLOSE < OPEN),(QJJ * ((HIGH – OPEN) + (CLOSE – LOW))),(VOL / 2))) + IF((CLOSE > OPEN),(0 – (QJJ * ((HIGH – CLOSE) + (OPEN – LOW)))),IF((CLOSE < OPEN),(0 – (QJJ * (HIGH – LOW))),(0 – (VOL / 2)))));ZLL:=(VOL / CAPITAL);HSL1:=IF((ZLL > 10),10,ZLL);HSL:=((XVL / 20) / 1.15);攻击流量:=(((HSL * 0.55) + (REF(HSL,1) * 0.33)) + (REF(HSL,2) * 0.22));流量基线:=EMA(攻击流量,8); LLJX:=EMA(攻击流量,3); 周流量:=SUM(LLJX,5);BB1:=REF(周流量,1);ZQZJJ:=(((周流量 – BB1) / BB1) * 100);周增幅:=IF(((周流量 > 0) AND (BB1 < 0)),ABS(ZQZJJ),IF((((周流量 < 0) AND (BB1 < 0)) AND (周流量 < BB1)),(0 – ZQZJJ),ZQZJJ)); {建仓减仓}A1:=IF(C>OPEN,VOL,0);A2:=IF(C正成交量:=MA(A1,10)/2000;负成交量:=MA(A2,10)/2000; {红牛白马}VAR3A:=EMA(100*(CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100)),5);VAR4A:=(CLOSE-LLV(CLOSE,N1))/(HHV(CLOSE,N1)-LLV(CLOSE,N1))*100;VAR5A:=EMA(CLOSE,2)-EMA(CLOSE,150);VAR6A:=EMA(VAR5A,100);VAR7A:=2*(VAR5A-VAR6A);VAR8A:=POW(VAR7A,3)*0.1+POW(VAR7A,1);VAR9A:=SQRT(SQRT(LOW*HIGH*OPEN*CLOSE));VARAA:=EMA(VAR9A*0.97,3);VARBA:=(HIGH+LOW+CLOSE)/3;VARCA:=(VARBA-MA(VARBA,14))/(0.015*AVEDEV(VARBA,14));白马:=IF(VAR7A>0.1,VAR8A,0)*5;红牛白马:=H/MA(C,55)<1.3 AND COUNT(HHV(HHV(MA((L+H+C)/3,5),13),89)=REF(HHV(HHV(MA((L+H+C)/3,5),13),89),1),7)=7 AND LHHV(HHV(MA((L+H+C)/3,5),13),89); {主力扫描仪}AA:=(2*OPEN+2*CLOSE+2*HIGH+2*LOW)/8;BB:=((VOL)*((AA)*(2) – HIGH – LOW))/(HIGH – LOW);CC:=IF((HIGH = LOW) AND (AA < REF(AA,1)),((-1))*(VOL),VOL);A:=IF((HIGH = LOW),CC,BB);B:=SUM(A,11);BBD:=(((B)/((CAPITAL)*(11)))*(10000));BBB:=IF((BBD < 150) AND (BBD > (-150)),BBD,150);主动买量:=IF((BBB > 0),BBB,0); 红牛白马 AND 白马>45 AND CROSS(周流量,流量基线) AND 周增幅>5 AND 正成交量>负成交量 AND 主动买量>0; ==================================================== {天量柱选股}A1:=IF(REF(V,1)=MAX(V,0),REF(C,1),0);A2:=IF(REF(V,1)=HHV(V,250),REF(C,1),0);A3:=C>REF(C,1);(A1 OR A2) AND A3; ====================================================== {★立桩量★}T1:=IF(REF(V,1)=HHV(V,100),REF(H,1),DRAWNULL);T2:=C>T1 AND VT1 AND T2; ======================================================= {【资金增量】}VAR1:=MA(((WINNER((CLOSE * 0.9)) * 100) * CLOSE),3);VAR2:=(IF((VAR1 > 10),VAR1,0) / 2);【资金比】:=VAR2;【资金均量】:=MA(VAR2,5);CROSS(VAR2,10) AND 【资金比】>【资金均量】; ====================================================== {周线突破}MA6:=MA(C,5);MA7:=MA(C,10);MA2:=MA(C,21);压力线:=HHV(HHV(MA((L+H+C)/3,5),13),89);DIFF := EMA(C,12) – EMA(C,26);DEA := EMA(DIFF,9);MACD := 2*(DIFF-DEA);RSV:=(CLOSE-LLV(LOW,34))/(HHV(HIGH,34)-LLV(LOW,34))*100;K:=SMA(RSV,5,1);D:=SMA(K,3,1);J:=3*K-2*D;周3:=MA6>REF(MA6,1) AND MA7>REF(MA7,1) AND MA2>REF(MA2,1) AND MAX(MAX(MA6,MA7),MA2)/MIN(MIN(MA6,MA7),MA2)<1.03 AND C>O AND C>MAX(MAX(MA6,MA7),MA2) AND H/C<1.05 AND V>REF(V,1);周5:=CROSS(MA6,MA7) AND C>压力线 AND O<压力线 AND MIN(MA6,MA7)>MA2 AND COUNT(压力线=REF(压力线,1),10)=10 AND C>O AND H/C<1.07 AND COUNT(MA2>REF(MA2,1),2)=2;周7:=OMAX(MAX(MA6,MA7),MA2) AND REF(HHV(C,3)/LLV(O,3),1)<1.1 AND REF(COUNT(C/O<0.9,3),1)=0 AND REF(HHV(H,3)/LLV(L,3),1)<1.25 AND REF(COUNT(C>O,3),1)>0 AND REF(COUNT(C0 AND COUNT(MA7>MA2,4)=4;周3 OR 周5 OR 周7; ======================================== {5分钟XG}A1:=C#MIN5;A2:=HHV(A1,3);B1:=V#MIN5;B2:=HHV(B1,4); A1>A2 AND B1/REF(B1,1)>1.2 AND B1>B2 AND CROSS(“KDJ.K”,”KDJ.D”) AND “KDJ.D”<=20 AND “KDJ.J”<=60; ============================================ {短线套利选股}MA6:=MA(C,6);MA18:=MA(C,18);买进价:=((C-REF(MA6,1))/6+MA6)*1.004;白买进:=CROSS(C,买进价) AND 买进价>REF(买进价,1);加码价:=((C-REF(MA18,1))/18+MA18)*1.004;黄加码:=CROSS(C,加码价) AND 加码价>REF(加码价,1);白买进 OR 黄加码; ============================================ {均线选股}{N日内出现10日均线上穿30日均线的条件 N=5}EXIST(CROSS(MA(C,5),MA(C,10)) AND CROSS(MA(C,10),MA(C,20)) ,N); ============================================== {均线选股5}{N日内出现5日均线上穿10日均线的条件 N=5}EXIST(CROSS(MA(C,5),MA(C,10)) ,N); ============================================ {均线选股10}{N日内出现10日均线上穿20日均线的条件 N=5}EXIST(CROSS(MA(C,10),MA(C,20)) ,N); ========================================== {均线选股20}{N日内出现60日均线上穿120日均线的条件 N=5}EXIST(CROSS(MA(C,60),MA(C,120)) ,N);
评论(0)