以下是通达信条件选股公式十三
{大幅缩量 }REF(C> O,1) AND VOL< REF(VOL,1) AND VOL/REF(VOL,1)< 40/100; ================================ {黑马绝技选股} EMA13:=EMA(C,13); EMA30:=EMA(C,30); EMA60:=EMA(C,60); EMA90:=EMA(C,90); EMA120:=EMA(C,120); EMA250:=EMA(C,250); F1:=EMA30-EMA60<130/1000 AND EMA30-EMA90<230/1000 AND EMA30-EMA120<330/1000; F2:=EMA60-EMA30<130/1000 AND EMA60-EMA90<230/1000 AND EMA60-EMA120<330/1000; F3:=EMA90-EMA30<130/1000 AND EMA90-EMA60<230/1000 AND EMA90-EMA120<330/1000; F4:=EMA120-EMA30<130/1000 AND EMA120-EMA60<230/1000 AND EMA120-EMA90<330/1000; F5:=EMA30-EMA60<100/1000 AND EMA30-EMA90<200/1000; FF1:=F1 AND F2 AND F3 AND F4 AND CROSS(EMA30,EMA60); FF2:=F1 AND F2 AND F3 AND F4 AND CROSS(EMA(C,13),EMA30); FF3:=F5 AND C>EMA250 AND CROSS(EMA30,EMA60); G1:=EMA60-EMA90<220/1000 AND EMA60-EMA120<320/1000 AND EMA60-EMA250<420/1000; G2:=EMA90-EMA30<220/1000 AND EMA90-EMA60<320/1000 AND EMA90-EMA250<420/1000; G3:=EMA120-EMA60<220/1000 AND EMA120-EMA90<320/1000 AND EMA120-EMA250<420/1000; G4:=EMA250-EMA60<220/1000 AND EMA250-EMA90<320/1000 AND EMA250-EMA120<420/1000; GG1:=G1 AND G2 AND G3 AND G4 AND CROSS(EMA13,EMA30); GG2:=G1 AND G2 AND G3 AND G4 AND CROSS(EMA30,EMA60); FF1 OR FF2 OR FF3 OR GG1 OR GG2; ======================================== {信号共振}黑马一:=((((VOL/120)>(MA(VOL,5)/120)) AND (CLOSE>(OPEN*(1+(4.8/100))))) AND (CLOSE<(MA(CLOSE,30)*1.6))); VAR1:=((MA(VOL,5)/120) AND (CLOSE>(REF(CLOSE,1)*1))); VAR2:=((((((CLOSE/REF(CLOSE,1))>=1.05) AND (((VOL/CAPITAL)*100)<10)) AND (CLOSE<18)) AND ((HIGH/CLOSE)<1.01)) AND (VAR1>0)); VAR3:=(((CLOSE-REF(CLOSE,1))/REF(CLOSE,1))*100); VAR4:=((EMA(CLOSE,12)-EMA(CLOSE,26))*100); FNZH:=((VAR4<(0-50)) AND (VAR3>7)); 黑马二:=((VAR2>9) OR FNZH); AR1:=(((CLOSE AND (MA(VOL,5)/120)) AND (CLOSE>(REF(CLOSE,1)*1))) AND CLOSE); VARR:=((((((CLOSE/REF(CLOSE,1))>1.05) AND (((VOL/CAPITAL)*100)<10)) AND (CLOSE<17)) AND ((HIGH/CLOSE)<1.01)) AND (VAR1>0)); 黑马三:=(VARR>90); 黑马一 AND 黑马二 AND 黑马三; ====================================== {周线寻马} VV1:=EMA(C,35)>EMA(C,70) AND EMA(C,35)>EMA(C,170) AND EMA(C,170)>REF (EMA(C,170),1); VV2:=VV1 AND CROSS(EMA(C,70),EMA(C,170));VV3:=EMA(C,35)>EMA(C,170) AND EMA(C,70)>EMA(C,170) AND EMA(C,170)>REF (EMA(C,170),1); VV4:=VV3 AND CROSS(EMA(C,35),EMA(C,70)); VV2 OR VV4; ============================================= {底背离}DIFF:=EMA(CLOSE,12) – EMA(CLOSE,26);DEA:=EMA(DIFF,9);A1:=BARSLAST(REF(CROSS(DIFF,DEA),1));B1:=REF(C,A1+1)>C AND REF(DIFF,A1+1)A2:=BARSLAST(REF(CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3)),1));B2:=REF(C,A2+1)>C AND REF(“KDJ.K”(9,3,3),A2+1)<“KDJ.K”(9,3,3) AND CROSS(“KDJ.K”(9,3,3),”KDJ.D”(9,3,3));A3:=BARSLAST(REF(CROSS(“RSI.RSI1″(6,12,24),”RSI.RSI2″(6,12,24)),1));B3:=REF(C,A3+1)>C AND REF(“RSI.RSI1″(6,12,24),A3+1)<“RSI.RSI1″(6,12,24) AND CROSS(“RSI.RSI1″(6,12,24),”RSI.RSI2″(6,12,24));底背离:B1>0 OR B2>0 OR B3>0;{集成了MACD、KDJ、RSI三个指标的底背离}; =================================== {突破指标.}W1:=C=HHV(C,20); W2:=BARSLAST(W1); W3:=IF(W2>0,REF(C,W2),REF(C,W2)); W4:=CROSS(C,REF(W3,1)); W4 AND COUNT(W4,5)=1; ================================== {波段之星 N=21}VAR2:=(HIGH+LOW+CLOSE*2)/4;VAR3:=EMA(VAR2,N);VAR4:=STD(VAR2,N);VAR5:=((VAR2-VAR3)/VAR4*100+200)/4;VAR6:=(EMA(VAR5,5)-25)*1.56;AK:= EMA(VAR6,2)*1.22;AD1:= EMA(AK,2);AJ:= 3*AK-2*AD1;买进: CROSS(AJ,AD1); =================================== {粘与发选股}主线:=EMA(EMA(C,1),5); 本:=EMA(HHV(主线,5),1); 急:=EMA(HHV(本,21),1); 稳:=EMA(HHV(急,21),2); 投:=EMA(HHV(稳,21),3); 散:=EMA(HHV(投,21),4); 集:=EMA(HHV(散,21),5); 马:=EMA(HHV(集,21),6); V0:=急>稳 AND 稳>投 AND 投>散 AND 散>集; V1:=CROSS(C,马) AND CROSS(C,集) AND CROSS(C,散) AND CROSS(C,投) AND CROSS(C,稳) AND CROSS(C,急); V2:=V0 AND CROSS(C,集) AND CROSS(C,散) AND CROSS(C,投) AND CROSS(C,稳) AND CROSS(C,急); V3:=CROSS(散,马) OR CROSS(散,集); V1 OR V2 OR V3; ==================================== {笑傲江湖}DIFF:=EMA(CLOSE,12) – EMA(CLOSE,26); {选股设JC=10即可}DEA:=EMA(DIFF,9);MACD:=2*(DIFF-DEA);A:=IF(CROSS(0,DEA),1,0);A1:=IF(DIFF<0 AND CROSS(DIFF,DEA),1,0);SS:=IF(A,SUM(A1,0),0);SSB:=HHV(SS,0);SSS:=SUM(A1,0);JC:=IF(SSS-SSB=2 AND SSS>REF(SSS,1),10,0);JC=10; =================================== {牛市专利}VAR1:=REF(CLOSE,3)*0.844;VAR2:=REF(CLOSE,13)*0.767;VAR3:=INDEXC;VAR4:=INDEXV;VAR5:=MIN(VAR1,VAR2);VAR6:=100*VOL/CAPITAL;VAR7:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100;VAR8:=(CLOSE-VAR5)/CLOSE<0.07 AND SUM(VAR6,3)/3<2.345 AND VAR3>MA(VAR3,450) AND MA(VAR4,61)/MA (VAR4,80)>0.923 AND CLOSE>MA(CLOSE,190);VAR9:=VAR3>MA(VAR3,450) AND VAR7<-16.5 AND MA(VAR4,61)/MA(VAR4,80)>0.92 AND CLOSE>MA(CLOSE,215) AND (REF(OPEN,1)>REF(CLOSE,1) OR REF(OPEN,1)REF(CLOSE,2) OR REF (OPEN,2)REF(CLOSE,3) OR REF(OPEN,3) (OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)REF(CLOSE,5) OR REF(OPEN,5) <0.075;(VAR8 OR VAR9); ==================================================== {逆势操作}VAR1:=DMA(CLOSE,VOL/MA(VOL,4)/4);VAR2:=DMA(CLOSE,VOL/MA(VOL,32)/32);VAR3:=(CLOSE-VAR1)/VAR1*100<-8;VAR4:=(VAR1-VAR2)/VAR2*100<-21;VAR5:=VAR3 AND VAR4 AND (OPEN>CLOSE OR OPEN-0.05 AND (REF(CLOSE,1)>REF(OPEN,1) OR REF(CLOSE,1)REF(CLOSE,2) OR REF (OPEN,2)REF(CLOSE,3) OR REF(OPEN,3) (OPEN,4)>REF(CLOSE,4) OR REF(OPEN,4)REF(CLOSE,5) OR REF(OPEN,5) REF(CLOSE,6) OR REF(OPEN,6)REF (CLOSE,7) OR REF(OPEN,7)VAR6:=(CLOSE-MA(CLOSE,70))/MA(CLOSE,70)*100<-23;VAR7:=(INDEXC-LLV(INDEXL,275))/(HHV(INDEXH,275)-LLV(INDEXL,275))*100;VAR8:=SMA(VAR7,50,1);VAR9:=SMA(VAR8,40,1);VARA:=VAR6 AND VAR9<23 AND COUNT(VAR6,2)=1 AND (OPEN>CLOSE OR OPEN >0.96 ;(VAR5 OR VARA) ; ======================================= {蓄势待发} V0:=EMA(C,5); EMA10:=EMA(C,10); EMA20:=EMA(C,20); EMA30:=EMA(C,30); EMA60:=EMA(C,60); M1:=1000*EMA10/EMA60<=1015 AND 1000*EMA10/EMA60>=975; M2:=1000*EMA20/EMA60<=1020 AND 1000*EMA20/EMA60>=980; M3:=1000*EMA30/EMA60<=1015 AND 1000*EMA30/EMA60>=985; M4:=M1 AND M2 AND M3 AND CROSS(V0,EMA10); M5:=M1 AND M2 AND M3 AND CROSS(V0,EMA30); T1:=1000*EMA10/EMA30<=1010 AND 1000*EMA10/EMA30>=990; T2:=1000*EMA20/EMA30<=1010 AND 1000*EMA20/EMA30>=990; T3:=T1 AND T2 AND CROSS(V0,EMA10); T4:=T1 AND T2 AND CROSS(V0,EMA30); M4 OR M5 OR T3 OR T4; ================================= {四线粘合} V0:=EMA(C,5); V1:=EMA(C,10); V2:=EMA(C,15); V3:=EMA(C,30); V4:=EMA(C,60); M1:=1000*V1/V4<=1015 AND 1000*V1/V4>=975; M2:=1000*V2/V4<=1020 AND 1000*V2/V4>=980; M3:=1000*V3/V4<=1015 AND 1000*V3/V4>=985; M4:=M1 AND M2 AND M3 AND CROSS(V0,V1); M5:=M1 AND M2 AND M3 AND CROSS(V0,V3); M4 OR M5; ================================= {底部构成} ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSEM1:=EMA(ABV,12); M2:=EMA(ABV,26); MTGJ:=C-REF(C,1); ZLGJ:=100*EMA(EMA(MTGJ,9),9)/EMA(EMA(ABS(MTGJ),9),9); MAZL:=MA(ZLGJ,5); V1:=(HIGH+OPEN+LOW+(2)*(CLOSE))/(5); V2:=REF(V1,1); V3:=MAX(V1-V2,0); V4:=ABS(V1-V2); V5:=SMA(V3,10,1); V6:=SMA(V4,10,1); V8:=COUNT(((V5)/(V6)<0.2),5); V9:=COUNT((LLV(V1,10)=V1),10); 底部构成:V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND VOL>REF(VOL,1) AND ABV>M2 AND ZLGJ>MAZL; ===================================== {乘胜追击}VAR1:=WINNER(CLOSE)-WINNER(OPEN);VAR2:=REF(CLOSE,1);VAR3:=SMA(MAX(CLOSE-VAR2,0),5,1)/SMA(ABS(CLOSE-VAR2),5,1)*100;VAR4:=CLOSE/MA(CLOSE,3)>=1.05;VAR5:=MA(VOL,8)/MA(VOL,45)>=2.5;VAR6:=WINNER(CLOSE)-WINNER(OPEN);VAR7:=REF(CLOSE,1);VAR8:=SMA(MAX(CLOSE-VAR7,0),5,1)/SMA(ABS(CLOSE-VAR7),5,1)*100;VAR9:=VAR6>=0.3 AND MA(VOL,6)/MA(VOL,26)>=1.9 AND VOL>REF(VOL,1) AND COUNT(VAR8<20,20)>=1 AND CLOSE/MA(CLOSE,3)>=1.07;VARA:=VAR1>=0.4 AND VAR5 AND COUNT(VAR3<20,20)>=1 AND VAR4 AND CLOSE>MA(CLOSE,85) AND VOL>REF(VOL,1);(VARA OR VAR9); ======================================= {拉升在即} ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSEM1:=EMA(ABV,12); M2:=EMA(ABV,26); MTM:=CLOSE-REF(CLOSE,1); MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); A:=((VOL)/(CAPITAL))*(100); S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60)); Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60)); X:=1; 拉升在即:SMML AND ABV>M1 AND CROSS(S,Y); ====================================== {主力轨迹} ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSEM1:=EMA(ABV,12); M2:=EMA(ABV,26); MTM:=CLOSE-REF(CLOSE,1); MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); MTGJ:=C-REF(C,1); ZLGJ:=100*EMA(EMA(MTGJ,9),9)/EMA(EMA(ABS(MTGJ),9),9); MAZL:=MA(ZLGJ,5); 主力轨迹:ABV>M2 AND MMS>MML AND CROSS(ZLGJ,MAZL) AND ZLGJ>REF(ZLGJ,1) AND MAZL>REF(MAZL,1); ========================================= {短中精} ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSEM1:=EMA(ABV,12); M2:=EMA(ABV,26); MTM:=CLOSE-REF(CLOSE,1); MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); MTGJ:=C-REF(C,1); ZLGJ:=100*EMA(EMA(MTGJ,9),9)/EMA(EMA(ABS(MTGJ),9),9); MAZL:=MA(ZLGJ,5); V1:=(HIGH+OPEN+LOW+(2)*(CLOSE))/(5); V2:=REF(V1,1); V3:=MAX(V1-V2,0); V4:=ABS(V1-V2); V5:=SMA(V3,10,1); V6:=SMA(V4,10,1); V8:=COUNT(((V5)/(V6)<0.2),5); V9:=COUNT((LLV(V1,10)=V1),10); 精准买卖:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND MMS>MML AND CROSS(ABV,M2); 短线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND CROSS(MMS,MML) AND ABV>REF(ABV,1); 中线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND ABV>REF(ABV,1) AND MMS>MML AND CROSS(MMM,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1); 主进主买:=ABV>M2 AND ZLGJ>MAZL AND CROSS(MMS,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1); 短中精:精准买卖 OR 短线买点 OR 中线买点 OR 主进主买; ================================== {主力进出} ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSEM1:=EMA(ABV,12); M2:=EMA(ABV,26); MTM:=CLOSE-REF(CLOSE,1); MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6)); MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12)); MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26)); MTGJ:=C-REF(C,1); ZLGJ:=100*EMA(EMA(MTGJ,9),9)/EMA(EMA(ABS(MTGJ),9),9); MAZL:=MA(ZLGJ,5); 主力进出:=MMS>REF(MMS,1) AND ZLGJ>REF(ZLGJ,1) AND CROSS(ABV,M2) AND ABV>REF(ABV,1) AND M1>REF(M1,1) AND M2>REF(M2,1); 主进主轨:=ABV>M2 AND CROSS(ABV,M1) AND CROSS(ZLGJ,MAZL); 主力进出 OR 主进主轨; ==================================== {黑马易找}VAR1:=MA(CLOSE,5);VAR2:=MA(CLOSE,10);VAR3:=MA(CLOSE,30);VAR4:=MA(CLOSE,60);VAR5:=EMA(COST(85),7);VAR6:=EMA(COST(15),7);VAR7:=SUM(CLOSE*VOL*100,4)/SUM(VOL*100,4);VAR8:=INTPART(VAR7*100)/100;VAR9:=SUM(CLOSE*VOL*100,7)/SUM(VOL*100,7);VARA:=INTPART(VAR9*100)/100;VARB:=SUM(CLOSE*VOL*100,28)/SUM(VOL*100,28);VARC:=INTPART(VARB*100)/100;VARD:=EMA(CLOSE,5)-EMA(CLOSE,10);VARE:=EMA(VARD,9);VARF:=(-100)*(HHV(CLOSE,5)-CLOSE)/(HHV(CLOSE,5)-LLV(LOW,5))+100;VAR10:=(-100)*(HHV(CLOSE,10)-CLOSE)/(HHV(CLOSE,10)-LLV(LOW,10))+100;VAR11:=(-100)*(HHV(CLOSE,20)-CLOSE)/(HHV(CLOSE,20)-LLV(LOW,20))+100;VAR12:=(-100)*(HHV(CLOSE,30)-CLOSE)/(HHV(CLOSE,30)-LLV(LOW,30))+100;VAR13:=REF(VARE,1);VAR14:=VARE;VAR15:=VAR14-VAR13;VAR16:=REF(VARD,1);VAR17:=VARD;VAR18:=VAR17-VAR16;VAR19:=OPEN;VAR1A:=CLOSE;黑马易找选股: VAR19<=VAR1 AND VAR19<=VAR2 AND VAR19<=VAR3 AND VAR1A>=VAR1 AND VAR1A>=VARC AND VAR15>0 AND VAR18>0;
评论(0)