以下是通达信1选股指标(01)
{底背离}
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三个指标的底背离};
======================================================
{顶天立地 出击选股 三角形符号}
VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR21:=SMA(VAR1F,3,1);
趋势:=SMA(VAR21,3,1);
人气:=SMA(趋势,3,1);
出击:CROSS(趋势,人气)AND (趋势<30);
{(趋势<30)修改这个50可选出开始起步的,改为30可选出爆发力更强的};
======================================================
{笑傲江湖}
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;
======================================================
{顶天立地 追涨选股}
VAR1F:=((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27)))*(100);
VAR21:=SMA(VAR1F,3,1);
趋势:=SMA(VAR21,3,1);
人气:=SMA(趋势,3,1);
出击:CROSS(趋势,人气)AND (趋势>30)AND (趋势<40);
{(趋势<30)修改这个50可选出开始起步的,改为30可选出爆发力更强的};
======================================================
{追涨买入选股}
空:=EMA(C,5);
均衡:=EMA(空,5);
中轨:=HHV(MA(H,13),13);
选股:FILTER(均衡>REF(均衡,1)AND 中轨REF(C,1),11);
======================================================
{筹码突破选股}
主筹估算:=EMA(WINNER(C)*70,3);
散筹估算:=EMA((WINNER(C*1.1)-WINNER(C*0.9))*70,3);
选股:CROSS(主筹估算,散筹估算);
======================================================
{黑马起步选股2}
VAR5:=EMA(SMA((CLOSE-LLV(LOW,100))/(HHV(HIGH,100)-LLV(LOW,100))*100,8,1),3);
选股:CROSS(VAR5,30) OR CROSS(VAR5,35) OR CROSS(VAR5,40);
======================================================
{老鼠仓}
AA1:=AMOUNT/VOL;
BB1:=L< AA1*0.9;
CC1:=(C-REF(C,1))/REF(C,1)*100> 1.2;
DD1:=L< MA(C,5)*0.921;
EE1:=VOL< MA(V,5)*1.5;
老鼠仓:BB1 AND CC1 AND DD1 AND EE1;
======================================================
{出手就赢1}
RSV:= (CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
CROSS(K,D) AND D<30;
======================================================
{短线之王}
VAR1:=(-100)*(HHV(HIGH,3)-CLOSE)/(HHV(HIGH,3)-LLV(LOW,3));
CROSS(VAR1,-87) AND OPEN=1.099*REF(CLOSE,1) AND INDEXC>0.98*REF(INDEXC,1) AND CLOSE<=1.47*LLV(CLOSE,58);
======================================================
{套利狐狸}
VAR1:=DMA(EMA(CLOSE,12),SUM(VOL,5)/3/CAPITAL);
VAR2:=REF(HIGH,10)/CLOSE>1.35;
V3: (CLOSE-VAR1)/VAR1*100<-30 AND VAR2;
======================================================
{跟庄建仓选股}
VAR3:=3*SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1)-2*SMA(SMA((C-LLV(L,55))/(HHV(H,55)-LLV(L,55))*100,5,1),3,1);
趋势:=EMA(VAR3,3)-10;
VAR4:=(趋势-REF(趋势,1))/REF(趋势,1)*100;
买入:FILTER((趋势<=13 AND VAR4>13),10);
======================================================
{先发制人}
VAR1:=COST(10);
VAR2:=REF(INDEXC,1);
VAR3:=SMA(MAX(INDEXC-VAR2,0),6,1)/SMA(ABS(INDEXC-VAR2),6,1)*100;
VAR4:=COUNT(VAR3<20,10)>=3;
VAR5:=(MA(CLOSE,5)-REF(MA(CLOSE,5),1))/REF(MA(CLOSE,5),1)*100;
VAR6:=MA(VAR5,22);
VAR7:=HHV(VAR6,55)<=0.8 AND LLV(VAR6,55)>=-0.8 AND HHV(VAR6,55)-LLV(VAR6,55)<=1.2;
VAR8:=BARSCOUNT(CLOSE)>=89;
VAR9:=VAR7 AND VAR8;
VARA:=COUNT(VAR9,30)>=5;
COUNT(VOL>=3*MA(VOL,30) AND VOL/CAPITAL>=0.04 AND CLOSE/REF(CLOSE,1)>=1.099,3)>0 AND VAR4 AND COUNT(VARA,5)>0 ;
======================================================
{以逸待劳}
VAR1:=COST(10);
VAR2:=REF(CLOSE,7)/MA(REF(CLOSE,7),3)>=1.07 AND REF(CLOSE,7)=HHV(REF(CLOSE,7),3) AND MA(REF(VOL,7),2)/MA(REF(VOL,7),40)>=3 AND MA(REF(VOL,7),2)=HHV(MA(REF(VOL,7),2),3) AND REF(VOL,7)>REF(REF(VOL,7),1) AND REF(CLOSE,7)>REF(REF(CLOSE,7),1);
VAR3:=REF(REF(CLOSE,7),1);
VAR4:=SMA(MAX(REF(CLOSE,7)-VAR3,0),5,1)/SMA(ABS(REF(CLOSE,7)-VAR3),5,1)*100;
VAR5:=COUNT(VAR4<20,20)>=1;
VAR6:=(INDEXC-LLV(INDEXL,89))/(HHV(INDEXH,89)-LLV(INDEXL,89))*100;
VAR7:=SMA(VAR6,8,1);
VAR8:=SMA(VAR7,10,1);
VAR9:=REF(INDEXC,1);
VARA:=SMA(MAX(INDEXC-VAR9,0),6,1)/SMA(ABS(INDEXC-VAR9),6,1)*100;
VARB:=VARA>=75 AND VARA<90 AND VAR7>VAR8 AND BARSLAST(CROSS(VAR7,VAR8))<=21;
VAR2 AND VAR5 AND VARB;
======================================================
{金箔金10}
VAR1:=9999999999999;
VAR2:=COST(10)*0;
VAR3:=(MA(AMOUNT,5)/MA(VOL,5)/100-MA(AMOUNT,125)/MA(VOL,125)/100)/(MA(AMOUNT,5)/MA(VOL,5)/100);
VAR4:=MA((LLV(LOW,45)-CLOSE)/(HHV(HIGH,45)-LLV(LOW,45))*100,5);
CROSS(-5,VAR4) AND VAR3<-0.4 AND (CLOSE-MA(CLOSE,30))/MA(CLOSE,30)<-0.19;
======================================================
{短线之王3}
VAR1:=(CLOSE-LLV(LOW,6))/(HHV(HIGH,6)-LLV(LOW,6))*100;
VAR2:=SMA(VAR1,2,1);
VAR3:=SMA(VAR2,2,1);
VAR4:=3*VAR2-2*VAR3;
VAR5:=MA(CLOSE,5);
VAR6:=MA(CLOSE,10);
VAR5>REF(VAR5,1)*1.01 AND VAR6>REF(VAR6,1)*1.005 AND VAR3<90 AND
VAR4>VAR2*1.05 AND VAR2>VAR3 AND VAR4>REF(VAR4,1)*1.1 AND
VAR2>REF(VAR2,1)*1.05 AND VAR3>REF(VAR3,1)*1.05 AND CLOSE>REF(CLOSE,1)*1.3;
======================================================
{绝杀2}
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:=BARSLAST(VAR3<20)<=3 AND CROSS(VAR2,VAR3);
VAR5:=(CLOSE-MA(CLOSE,20))/MA(CLOSE,20)*100<-12.5;
VAR6:=LLV(LOW,5);
VAR7:=HHV(HIGH,5);
VAR8:=EMA((CLOSE-VAR6)/(VAR7-VAR6)*100,4);
VAR9:=EMA(0.667*REF(VAR8,1)+0.333*VAR8,2);
VAR4 AND VAR5 AND CROSS(VAR8,VAR9) AND VAR8<=25;
======================================================
{乘胜追击}
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);
======================================================
{逆势操作}
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) ;
======================================================
{牛市专利}
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);