通达信捕捉妖股异动副图/选股预警 源码

[复制链接]
查看306 | 回复0 | 2021-8-28 00:42:50 | 显示全部楼层 |阅读模式

以下是通达信捕捉妖股异动副图/选股预警 源码(无源码的请下载附件导入)

捕捉妖股异动副图/选股预警 源码 通达信 贴图

VR1:=VOL/CAPITAL;
 VR2:=VOL/700000000;
 VR3:=IF(VR1=0,VR2,VR1);
 VR4:=1.1*(MAX(HIGH,REF(CLOSE,1))/MIN(LOW,REF(CLOSE,1))-1);
 VR5:=2.5*MAX(VR3,VR4);
 VR6:=DMA(CLOSE,VR5);
 VR7:=SMA(20*(VR6/REF(VR6,1)-1),2,1);
 VR8:=EMA(VR7,2);
 VRA:=0.24;
 VRB:=CLOSE>=REF(CLOSE,1);
牛:= IF(VR7>VRA AND VR8>=0.005 AND VRB,1,0);
疯牛:=CROSS(牛,0.5) AND COUNT(牛>0.5,10)=1;
 QB:="KDJ.J"-REF("KDJ.J",1)>30 AND C/REF(C,1)>1.043 AND "MACD.MACD">0 AND "MACD.DEA">0;
 LS:=C/REF(C,1)>1.048 AND C=H AND BETWEEN(FORCAST(V,4),0.2*FORCAST(V,12),2.1*FORCAST(V,12));
 LQ:=FILTER(LS,28)*100 AND L>REF(C,1)*0.93 ;
 XG1:=QB OR LQ AND 疯牛;


涨幅:=9;高度:=20;跨度:=10;N4:=34;
短线:=EMA(CLOSE,17);
 A:=(3*C+L+O+H)/6;
 X:=(20*A+19*REF(A,1)+18*REF(A,2)+17*REF(A,3)+16*REF(A,4)+15*REF(A,5)+
 14*REF(A,6)+13*REF(A,7)+12*REF(A,8)+11*REF(A,9)+10*REF(A,10)+9*REF(A,11)+8*REF(A,12)
 +7*REF(A,13)+6*REF(A,14)+5*REF(A,15)+4*REF(A,16)+3*REF(A,17)+2*REF(A,18)+
 REF(A,20))/210;
中线:=EMA(X,13);
 KKA:=EMA(C,5);
 KKB:=EMA(KKA,8);
 KKC:=EMA(KKB,13);
长线:=EMA(KKC,50);
中期:=100*(C-LLV(L,N4))/(HHV(C,N4)-LLV(L,N4));
 KDD:=REF(中期,1)<1 AND 中期>1;
持股:=3*SMA((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1)-2*SMA(SMA
 ((CLOSE-LLV(LOW,27))/(HHV(HIGH,27)-LLV(LOW,27))*100,5,1),3,1);
支撑:=LLV(持股,3);
中期线:=MA(持股,12);
 VAR1:=1;
 VAR2:=LLV(LOW,10);
 VAR3:=HHV(HIGH,25);
短期线:=EMA((CLOSE-VAR2)/(VAR3-VAR2)*4,4)*VAR1*30;
 AAA:=(3*C+L+O+H)/6;
 C2:=EMA(AAA,6);
 C3:=EMA(AAA,5);
 SHORT:=12;
 LONG:=26;
 MID:=9;
 DIF:=EMA(CLOSE,SHORT)-EMA(CLOSE,LONG);
 DEA:=EMA(DIF,MID);
 MACD:=(DIF-DEA)*2;
 N:=9;
 M1:=3;
 M2:=3;
 RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*100;
 K:=SMA(RSV,M1,1);
 D:=SMA(K,M2,1);
 J:=3*K-2*D;
 KAAA1:=EXIST(KDD,3);
 KBBB1:=C/REF(C,1)>1+0.01*涨幅;
KAAA2:=支撑>中期线 AND 持股=支撑;
KBBB2:=CROSS(C2,C3);
 KCCC2:=EXIST(C/REF(C,1)>1+0.01*涨幅,跨度);
KDDD2:=BARSLAST(中期线>短期线)<跨度;
KAAA3:=REF(C,1)<REF(中线,1) AND C>中线;
KBBB3:=C/REF(C,1)>1+0.01*涨幅;
KCCC3:=中线/长线<1+0.01*高度;
超资:=IF(KBBB1+KCCC2+KBBB3=3,1,0);
 CC:=(H-C)/(C-O)<0.33;
 DD:=(C/REF(C,1)-1)>=0.0502 AND C>REF(C,1) AND (O-L)/(C-O)>=1.48 AND L<REF(L,1) AND L<REF(L,2);
 EE:=(C/REF(C,1)-1)>=0.08;
 AA:=VOL>REF(VOL,1)*1.9 AND C>REF(C,1) AND C/REF(C,1)-1>=0.049 AND CC;
 BB:=(C/REF(C,1)-1)>=0.0502 AND C>REF(C,1) AND V>REF(V,1) AND VOL>REF(VOL,1)*2.5 AND CC;
异动选股:=IF(FILTER(AA OR BB OR DD OR EE,34),1,0) AND 超资;

XG: XG1 OR 异动选股;
 

1355311393.png

1355311393.png

1355566933.png

1355566933.png

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则