以下是通达信条件选股公式八
{每股收益选股 前20名}P1:=INSORT(‘自选股’,’MACD’,3,0);P2:=BLOCKSETNUM(‘自选股’);P1/P2>=5; ==================================== {爆发买点选股}MA4:=MA(CLOSE,90);MA5:=MA(CLOSE,288);九天:=IF(1.1>SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05);逼空:= IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1));雪鹰:=IF(MA(VOL,2)>MA(VOL,3)/2>MA(VOL,5), SMA(HIGH,2,1),SMA(CLOSE,3,1)) ;神枪:= IF(MA(VOL,3)>MA(VOL,5)>MA(VOL,9),SMA(CLOSE,3,1),SMA(CLOSE,5,1));爆发买点:CROSS(雪鹰,九天) OR CROSS(MA4,逼空) OR CROSS(九天,MA5); ====================================== {中线买点和爆发买点} MA2:=MA(CLOSE,6);MA3:=MA(CLOSE,15);MA4:=MA(CLOSE,90);MA5:=MA(CLOSE,288);九天:=IF(1.1>SMA(CLOSE,2,1)/SMA(CLOSE,13,2)>1.05,SMA(HIGH,21,5)*1.05,SMA(HIGH,21,2)*1.05);逼空:= IF(1.09>SMA(CLOSE,5,1)/SMA(CLOSE,15,1)>0.45,SMA(LOW,10,1),SMA(LOW,5,1));雪鹰:=IF(MA(VOL,2)>MA(VOL,3)/2>MA(VOL,5), SMA(HIGH,2,1),SMA(CLOSE,3,1)) ;神枪:= IF(MA(VOL,3)>MA(VOL,5)>MA(VOL,9),SMA(CLOSE,3,1),SMA(CLOSE,5,1));无极:=SMA(LOW,21,2)*0.95; 买点:CROSS(雪鹰,九天) OR CROSS(MA4,逼空) OR CROSS(九天,MA5) OR CROSS(雪鹰,无极) OR CROSS(雪鹰,MA3) OR CROSS(神枪,无极); ========================================= {当日涨停}VAR11:=(0 – ((100 * (HHV(HIGH,17) – CLOSE)) / (HHV(HIGH,17) – LLV(LOW,17))));VAR12:=((CLOSE > (0.899 * REF(CLOSE,1))) AND (CLOSE < (0.901 * REF(CLOSE,1))));VAR13:=(EMA(CLOSE,30) – EMA(CLOSE,17));VAR16:=EMA(VAR13,5);VAR17:=MA(CLOSE,5);VAR18:=MA(CLOSE,10);VAR19:=MA(CLOSE,30);VAR20:=(SUM(((CLOSE * VOL) * 100),28) / SUM((VOL * 100),28));VAR21:=(INTPART((VAR20 * 100)) / 100);短线趋势:=(EMA(CLOSE,5) – EMA(CLOSE,10));中线趋势:=EMA(短线趋势,9);VAR22:=REF(中线趋势,1);VAR23:=中线趋势;VAR24:=(VAR23 – VAR22);VAR25:=REF(短线趋势,1);VAR26:=短线趋势;VAR27:=(VAR26 – VAR25);VAR28:=((CLOSE > MA(CLOSE,60)) AND (MA(CLOSE,10) > REF(MA(CLOSE,10),1)));VAR29:=(((CLOSE – LLV(LOW,27)) / (HHV(HIGH,27) – LLV(LOW,27))) * 100);VAR30:=SMA(VAR29,3,1);VAR31:=SMA(VAR30,3,1);VAR32:=((3 * VAR30) – (2 * VAR31));VAR33:=(((((((VAR31 < 100) AND (VAR32 > (VAR30 * 1.008))) AND (VAR30 > VAR31)) AND (VAR31 > (REF(VAR31,1) * 1.001))) AND (VAR30 > (REF(VAR30,1) * 1))) AND (VAR31 > (REF(VAR31,1) * 1))) AND (CLOSE > (OPEN * (1 + (3 / 100)))));((VAR11 = 0) AND (DATE < 1050630)); ========================================= {见红选股}AA:=CROSS(MA(C,1),MA(C,9));VA:=MAX(REF(C,1),REF(O,1));VA1:=MIN(REF(C,1),REF(O,1));J:=SUM(AMOUNT/100,2)/SUM(V,2);BB:IF(OVA,1,0); ========================================== {果断出击或+5%或+10%}{INPUT:N1(5),N2(10),N3(20); }MA1:=MA(C,N1);MA2:=MA(C,N2);MA3:=MA(C,N3);MA30:=MA(C,30);GX:=MAX(MA1,MAX(MA2,MA3));DX:=MIN(MA1,MIN(MA2,MA3));QSXS:=DX>MA30 AND MA30>REF(MA30,1);均线粘合:=IF(ABS(GX/DX-1)*100<=3,1,0);FL:=V>REF(V,1) OR V>MA(V,5);SZ:=(CROSS(C,MA(C,3)) OR CROSS(C,MA(C,5))) AND C>=O;放量上涨:=IF(FL AND SZ,1,0);果断出击:=FILTER(COUNT(均线粘合,2) AND COUNT(放量上涨,2) AND C>O AND QSXS,2)*100;MRSJ:=BARSLAST(果断出击);ZZ:=MRSJ<20 AND CROSS(H,REF(C,MRSJ)*1.09999);知足:=ZZ AND COUNT(ZZ,MRSJ)=1;DB:=MRSJ<20 AND CROSS(H,REF(C,MRSJ)*1.05);达标:=DB AND COUNT(DB,MRSJ)=1;果断出击 OR 知足 OR 达标; =========================================== {选中线}A:=(3*C+L+O+H)/6;B1:=(5*A+4*REF(A,1)+3*REF(A,2)+2*REF(A,3)+REF(A,5))/15;B2:=(8*A+7*REF(A,1)+6*REF(A,2)+5*REF(A,3)+4*REF(A,4)+3*REF(A,5)+2*REF(A,6)+REF(A,8))/36;E:=COST(70 );成本70:=MA(E,5);F:=COST(90 );F20:=REF(F,60);筹码90:=WINNER( F20)*100;获利盘:=EMA(WINNER(C)*100,5);突破点: CROSS(B2,成本70) AND 筹码90>80; ================================================ {新股海神偷选股}AA:=LLV(LOW,13);BB:=HHV(HIGH,13);风险:=80,COLORFF00FF;狼狗:=87.5,COLOR00FF00;DD:=(EMA(((CLOSE-AA)/(BB-AA))*(4),4))*(25);股海神偷:=DD,COLORRED,LINETHICK2;股海:=(((DD-LLV(DD,21))/(HHV(DD,13)-LLV(DD,21)))*(4))*(25);目标出现:IF(CROSS(股海,90) AND (股海神偷<40),70,0),COLOR00FFFF; ============================================== {四线金叉}EMA30:=EMA(C,30),COLORWHITE,LINETHICK2;EMA60:=EMA(C,60),COLORFF00FF;EMA90:=EMA(C,90),COLORYELLOW;EMA120:=EMA(C,120),COLORFFCC66;EMA250:=EMA(C,250),COLORBLUE;SS:=CROSS(EMA30,EMA60) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(EMA30,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(EMA60,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(EMA30,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 {AND CROSS(EMA30,EMA120)};{DRAWICON(SS,L-0.04,1);} DD:=CROSS(EMA60,EMA90) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(EMA60,EMA250) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(EMA90,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018OR CROSS(EMA60,EMA120) AND C>O AND C>REF(C,1) AND C/REF(C,1)>=1.018 AND CROSS(EMA30,EMA250);{DD:=CROSS(EMA30,EMA250);}{DRAWICON(DD,L-0.04,3);};金叉:SS OR DD; =================================== {方舟}EMA13:=EMA(C,13);EMA34:=EMA(C,34);EMA55:=EMA(C,55);EMA120:=EMA(C,120);AR1:=EMA55>EMA34 AND EMA34>EMA13;AR2:=BARSLAST((C-EMA13)/EMA13*100<-6);AR3:=EMA13>=REF(EMA13,2);AR4:=COUNT(CROSS(C,EMA13),AR2)=1;AR5:=AR1 AND AR2 AND AR3 AND AR4;AR6:=AR5 AND FILTER(AR5,10); ===================================== {决战}周线:=MA(MA(C,13),7);B1:=COUNT(C<周线,90); B2:=CROSS(C,周线); A3:=C/REF(C,1)>1.045;换手:=VOL*100/CAPITAL;放量:B1 AND B2 AND A3 AND 换手>5; ===================================== {要飙突破}{线}主线:=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),COLOR9999CC;集:=EMA(HHV(散,21),5),COLORAAAAAA;马:=EMA(HHV(集,21),6),COLORFF5B5E;界1:=MA(CLOSE,60);K2:=BACKSET(界1界:=IF(K2,界1,界1),COLOR00A600,LINETHICK2; {K线} Y:=CROSS(本,界)};Y1:=CROSS(本,稳);{Y2:=本=急 AND 本=稳 AND 本=投; 转牛:Y>=1;要飙:Y1>=1;突破:C>=Y2};{Y>=1 OR }Y1>=1{ OR Y2}; ======================================= {红箭头 选股}X:=EMA(((SLOPE(CLOSE,21) * 20) + CLOSE),68);Y:=EMA(CLOSE,10);Q:(CROSS(Y,X)); ===================================== {金印组合选股公式} XG:REF(((((MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/MIN(CLOSE,OPEN)*100<1)=1 AND HIGH/LOW >1.03 OR (((MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/MIN(CLOSE,OPEN)*100<1)=1 AND IF(HIGH=LOW,0,1))) AND (HIGH-LOW)/REF(CLOSE,1)*100<5),2) AND REF((((OPEN>=REF(MAX(OPEN,CLOSE),1) AND OPEN(OPEN<=REF(MIN(OPEN,CLOSE),1) AND OPEN>REF(MIN(OPEN,CLOSE),1)*0.99)) AND (CLOSE-REF(CLOSE,1))/REF(CLOSE,1)*100<-3),1) AND (OPENOPEN>REF(CLOSE,1)*0.99) AND ((((MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/MIN(CLOSE,OPEN)*100<1)=1 AND HIGH/LOW >1.03 OR (((MAX(CLOSE,OPEN)-MIN(CLOSE,OPEN))/MIN(CLOSE,OPEN)*100<1)=1 AND IF(HIGH=LOW,0,1))) AND (HIGH-LOW)/REF(CLOSE,1)*100<5); ================================================= {不怕死} 主力做盘轨迹:=(((CLOSE – MA(LLV(LOW,40),40)) / MA(LLV(LOW,40),40)) * 100); BIAS1:=(CLOSE-MA(CLOSE,9))/MA(CLOSE,9)*100; 坚决买:=(主力做盘轨迹-BIAS1)<5.5; AA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1000; BB:=MA(AA,10); 趋势线:=SMA(BB,3,1)/10; JNYY2:=(((CLOSE – LLV(LOW,26)) / (HHV(HIGH,26) – LLV(LOW,26))) * 100); 判断:=SMA(JNYY2,32,1)-20; 不怕死:CROSS(主力做盘轨迹,判断); =================================================== {牛市买入 选股 麒麟中子原创公式集} V3:=(CLOSE-LLV(LOW,8))/(HHV(HIGH,8)-LLV(LOW,8))*100;操盘线:=SMA(V3,2,1);V5:=SMA(操盘线,2,1);抄底:IF(操盘线>REF(操盘线,1) AND REF(操盘线,1)<23 ,18,0) OR (IF(操盘线>REF(操盘线,1) AND CROSS(操盘线,V5) AND V5<50,8,0)); ============================================ {益盟BS 选股 益盟操盘手经典指标} MA3:=MA(C,5),COLORF00FF0;MA10:=MA(C,10),COLORYELLOW;MA21:=MA(C,21),COLORE66878;MA30:=MA(C,30),COLORWHITE;MA120:=MA(C,120),COLOR399C7F;MA240:=MA(C,240),COLOR000999;X1:=(C+L+H)/3;X2:=EMA(X1,6);X3:=EMA(X2,5);B:CROSS(X2,X3); =========================================== {底部构成 选股}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);P:IF((V8>=1) AND (V9>=1) AND (CLOSE>OPEN) AND (REF(CLOSE,1)>REF(OPEN,1)) AND (VOL>REF(VOL,1)),1,0),COLOR00FFFF; ========================================== {坚决买} 主力做盘轨迹:=(((CLOSE – MA(LLV(LOW,40),40)) / MA(LLV(LOW,40),40)) * 100); BIAS1:=(CLOSE-MA(CLOSE,9))/MA(CLOSE,9)*100; 坚决买:(主力做盘轨迹-BIAS1)<5.5; ======================================== {买} AA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1000; BB:=MA(AA,10); 趋势线:=SMA(BB,3,1)/10; JNYY2:=(((CLOSE – LLV(LOW,26)) / (HHV(HIGH,26) – LLV(LOW,26))) * 100); 判断:=SMA(JNYY2,32,1)-20; 买:CROSS(趋势线,判断); ======================================= {建仓} AA:=(CLOSE-LLV(LOW,21))/(HHV(HIGH,21)-LLV(LOW,21))*1000; BB:=MA(AA,10); 趋势线:=SMA(BB,3,1)/10; JNYY2:=(((CLOSE – LLV(LOW,26)) / (HHV(HIGH,26) – LLV(LOW,26))) * 100); 判断:=SMA(JNYY2,32,1)-20; 建仓:CROSS(判断,趋势线);
评论(0)